Roblox Studio MCP Server (Posuceius Fork)

Roblox Studio MCP Server (Posuceius Fork)

Connects AI assistants like Claude and Gemini to Roblox Studio, enabling game structure exploration, script editing, UI generation, style extraction, and bulk changes locally and safely.

Category
访问服务器

README

Roblox Studio MCP Server (Posuceius Fork)

Connect AI assistants like Claude and Gemini to Roblox Studio


What is This?

An MCP server that lets AI explore your game structure, read/edit scripts, build UIs, extract styles, and perform bulk changes - all locally and safely.

Forked from boshyxd/robloxstudio-mcp with significant enhancements for UI generation, style extraction, and AI-assisted development.

Setup

1. Install the Studio Plugin

Download MCPPlugin.rbxmx and place it in your Roblox Plugins folder:

  • Windows: %LOCALAPPDATA%/Roblox/Plugins/
  • macOS: ~/Documents/Roblox/Plugins/

2. Enable HTTP Requests

In Roblox Studio: Game Settings > Security > Allow HTTP Requests = ON

3. Connect Your AI

Claude Code:

claude mcp add robloxstudio -- npx -y robloxstudio-mcp@latest

Codex CLI:

codex mcp add robloxstudio -- npx -y robloxstudio-mcp@latest

Gemini CLI:

gemini mcp add robloxstudio npx --trust -- -y robloxstudio-mcp@latest

<details> <summary>Other MCP clients (Claude Desktop, Cursor, etc.)</summary>

{
  "mcpServers": {
    "robloxstudio-mcp": {
      "command": "npx",
      "args": ["-y", "robloxstudio-mcp@latest"]
    }
  }
}

Windows users: If you encounter issues, use cmd:

{
  "mcpServers": {
    "robloxstudio-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "robloxstudio-mcp@latest"]
    }
  }
}

</details>

Plugin shows "Connected" when ready.

What Can You Do?

Ask things like:

  • "What's the structure of this game?"
  • "Find scripts with deprecated APIs and replace them"
  • "Create a shop UI with cards and buttons"
  • "Extract the style from my existing UI and match it"
  • "Import this Luau UI code into Studio"
  • "How many parts and scripts are in this game?"
  • "What does the output log say?"
  • "What scripts depend on this module?"

New Features in This Fork

UI Generation

  • create_ui_tree - Create entire UI hierarchies from nested JSON in one call with style sugar shortcuts
  • get_ui_tree - Recursively serialize a full UI tree in one call (all properties, defaults stripped)
  • import_luau_ui - Parse Luau code (Instance.new style) and create instances in Studio
  • set_properties - Set multiple properties on a single instance in one call

Style System

  • extract_ui_style - Extract design tokens from existing UI (colors, fonts, radii, strokes, spacing by frequency)
  • Hex color support - Use "#ff0000" anywhere a Color3 is expected
  • Style sugar on create_ui_tree - Shorthand keys auto-create modifier instances:
    • cornerRadius: 12 -> UICorner
    • padding: {top: 10, bottom: 10} -> UIPadding
    • stroke: {color: "#000", thickness: 2} -> UIStroke
    • gradient: {color: [[0,"#1a1a2e"],[1,"#16213e"]], rotation: 90} -> UIGradient
    • layout: {type: "list", direction: "Vertical", padding: 8} -> UIListLayout
    • aspectRatio: {value: 1.5} -> UIAspectRatioConstraint
    • sizeConstraint: {minSize: [100,50]} -> UISizeConstraint
    • scale: 1.2 -> UIScale

AI Development Tools

  • find_replace_in_scripts - Find and replace text across all scripts in one call (with dry run mode)
  • get_game_stats - Instance count statistics (parts, scripts, UI objects, models, top classes)
  • get_output_log - Read Studio Output log without requiring a playtest
  • get_script_dependencies - Trace require() chains (what a script depends on and what depends on it)

Improved Responses

  • Default property stripping - get_instance_properties with stripDefaults: true removes noise
  • Organized property serialization - Returns class-specific properties (GUI, text, image, scroll, modifiers)
  • Structured values - Color3, UDim2, Vector2, Vector3 returned as objects instead of raw strings
  • LLM-friendly script output - get_script_source returns formatted headers with type, location, and line info

MCP Prompts

  • roblox_ui_guide - Comprehensive Roblox UI development guide (properties, layout, modifiers, patterns)
  • roblox_style_extraction - Guide for extracting and matching styles from existing games

All Tools

Read Tools (35)

get_file_tree, search_files, get_place_info, get_services, search_objects, get_instance_properties, get_instance_children, search_by_property, get_class_info, get_project_structure, mass_get_property, get_script_source, grep_scripts, get_attribute, get_attributes, get_tags, get_tagged, get_selection, get_playtest_output, search_assets, get_asset_details, get_asset_thumbnail, get_ui_tree, extract_ui_style, get_game_stats, get_output_log, get_script_dependencies, get_build, list_library, search_materials, preview_asset, export_build, capture_screenshot, start_playtest, stop_playtest

Write Tools (29)

set_property, set_properties, mass_set_property, set_calculated_property, set_relative_property, create_object, mass_create_objects, create_ui_tree, import_luau_ui, delete_object, smart_duplicate, mass_duplicate, set_script_source, edit_script_lines, insert_script_lines, delete_script_lines, find_replace_in_scripts, set_attribute, delete_attribute, add_tag, remove_tag, execute_luau, insert_asset, undo, redo, create_build, generate_build, import_build, import_scene


<!-- VERSION_LINE -->v3.1.0 - 64 tools, UI generation, style extraction, AI dev tools, MCP prompts

Report Issues | MIT Licensed

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选