Roblox Studio MCP Server
Bridges AI assistants to Roblox Studio with 51 tools for exploring, editing, and automating game development, all locally via HTTP polling.
README
Roblox Studio MCP Server
Bridge AI assistants to Roblox Studio — 51 tools for exploring, editing, and automating your game.
Works with Claude Code, Claude Desktop, Cursor, Gemini, Codex, and any MCP-compatible client.
What It Does
An MCP (Model Context Protocol) server that gives AI full access to your Roblox Studio session. Explore game hierarchies, read and edit scripts, manipulate properties, create instances, build terrain, run playtests — all locally via HTTP polling. No external servers, no data collection.
Quick Start
1. Install the Studio Plugin
Option A — Creator Store (easiest): Install from Roblox Creator Store
Option B — Manual:
Download MCPPlugin.rbxmx from Releases and drop it into your Plugins folder:
- Windows:
%LOCALAPPDATA%/Roblox/Plugins/ - macOS:
~/Documents/Roblox/Plugins/
2. Enable HTTP Requests
Game Settings > Security > Allow HTTP Requests = ON
3. Connect Your AI
Claude Code:
claude mcp add robloxstudio -- npx -y robloxstudio-mcp@latest
Codex:
codex mcp add robloxstudio -- npx -y robloxstudio-mcp@latest
Gemini:
gemini mcp add robloxstudio npx --trust -- -y robloxstudio-mcp@latest
<details> <summary>Claude Desktop, Cursor, Windsurf, or other MCP clients</summary>
Add to your MCP config file:
{
"mcpServers": {
"robloxstudio-mcp": {
"command": "npx",
"args": ["-y", "robloxstudio-mcp@latest"]
}
}
}
Windows users — if you encounter issues, wrap with cmd:
{
"mcpServers": {
"robloxstudio-mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "robloxstudio-mcp@latest"]
}
}
}
</details>
Plugin shows "Connected" when ready.
51 Tools
Exploration & Queries (10)
| Tool | Description |
|---|---|
get_file_tree |
Browse instance hierarchy as a tree |
search_files |
Search instances by name, class, or script content |
get_place_info |
Get place ID, name, and game settings |
get_services |
List available Roblox services |
search_objects |
Find instances by name, class, or property |
search_by_property |
Find instances with specific property values |
get_instance_properties |
Get all properties of an instance |
get_instance_children |
List children with class types |
get_class_info |
Get available properties/methods for a class |
get_project_structure |
Full hierarchy with configurable depth |
Instance Management (8)
| Tool | Description |
|---|---|
create_object |
Create a new instance |
create_object_with_properties |
Create instance with initial properties |
mass_create_objects |
Bulk create instances |
mass_create_objects_with_properties |
Bulk create with properties |
delete_object |
Delete an instance |
smart_duplicate |
Duplicate with naming, positioning, property variations |
mass_duplicate |
Multiple duplication operations at once |
reparent_instance |
Move instance to a new parent (no delete/recreate) |
Cloning & Assets (2)
| Tool | Description |
|---|---|
clone_instance |
Deep copy an instance to a different parent |
insert_asset |
Insert a Roblox asset by ID (models, meshes, images) |
Properties (5)
| Tool | Description |
|---|---|
set_property |
Set any property on an instance |
mass_set_property |
Set same property on multiple instances |
mass_get_property |
Read same property from multiple instances |
set_calculated_property |
Set properties via math formulas |
set_relative_property |
Modify properties relative to current values |
Scripts (6)
| Tool | Description |
|---|---|
get_script_source |
Read script source (supports line ranges) |
set_script_source |
Replace entire script source |
edit_script_lines |
Replace specific lines |
insert_script_lines |
Insert lines at a position |
delete_script_lines |
Delete specific lines |
search_replace_scripts |
Find/replace text across all scripts |
UI Building (1)
| Tool | Description |
|---|---|
create_ui |
Batch-create UI elements with proper UDim2 sizing |
Terrain (4)
| Tool | Description |
|---|---|
fill_terrain |
Fill rectangular region with terrain material |
fill_terrain_sphere |
Fill spherical region with material |
clear_terrain |
Clear terrain (region or all) |
get_terrain_materials |
List available terrain materials |
Attributes & Tags (8)
| Tool | Description |
|---|---|
get_attribute / set_attribute |
Read/write instance attributes |
get_attributes |
Get all attributes on an instance |
delete_attribute |
Remove an attribute |
get_tags / add_tag / remove_tag |
Manage CollectionService tags |
get_tagged |
Find all instances with a specific tag |
Undo/Redo (2)
| Tool | Description |
|---|---|
undo |
Undo last action (Ctrl+Z) |
redo |
Redo last undone action (Ctrl+Y) |
Code Execution & Playtest (5)
| Tool | Description |
|---|---|
execute_luau |
Run arbitrary Luau code in Studio |
get_selection |
Get currently selected objects |
start_playtest |
Start play/run session with log capture |
stop_playtest |
Stop session and return output |
get_playtest_output |
Poll logs without stopping |
Architecture
AI Assistant <--stdio--> MCP Server (Node.js)
<--HTTP--> Bridge (Express on port 58741)
<--polling--> Studio Plugin (roblox-ts)
<--API--> Roblox Studio
- Stateless HTTP bridge with UUID-tracked requests
- 500ms polling — reliable, no WebSocket complexity
- 30-second timeouts per request
- ChangeHistoryService integration — every mutation creates an undo waypoint
- All local — nothing leaves your machine
Development
npm install # Install dependencies
npm run build:all # Build server + plugin
npm run dev # Dev mode with tsx
npm test # Run tests
npm run build:plugin # Rebuild Studio plugin only
Troubleshooting
| Issue | Fix |
|---|---|
| Plugin missing from toolbar | Verify .rbxmx is in Plugins folder, restart Studio |
| HTTP 403 errors | Enable "Allow HTTP Requests" in Game Settings > Security |
| Plugin shows "Disconnected" | Normal until MCP server is running — start your AI client |
| Connection timeout | Check firewall isn't blocking localhost:58741 |
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。