Roblox Studio Ultimate MCP Server
Provides comprehensive control over Roblox Studio with 41 tools for script operations, instance manipulation, validation, backup/restore, and safety mechanisms, enabling AI assistants to directly interact with Roblox game development environments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Roblox Studio Ultimate MCP ServergetScript Summary for the main player controller script"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎮 Roblox Studio Ultimate MCP Server
English | 日本語
The most comprehensive MCP (Model Context Protocol) server for Roblox Studio. 41 tools for complete Studio control from Claude Code or any MCP-compatible AI assistant.
✨ Why This Exists
The default Roblox Studio MCP only provides run_code — forcing you to manipulate script sources via string operations (gsub). This leads to:
❌ Pattern matching failures
❌ Broken
end)statements❌ Silent rollbacks when scripts revert
❌ No syntax checking before writes
❌ Hours wasted on simple edits
This MCP solves all of that.
🚀 Features
Script Operations (The Game Changer)
Tool | Description |
| Get full source code |
| Replace entire source (with syntax check + auto backup) |
| Edit specific line range (partial edit!) |
| Insert code after a specific line |
| Remove specific lines |
| Find & replace text (plain text, safe) |
| Get only specific line range (lightweight) |
| List all functions with line numbers |
| Overview: functions, requires, globals |
| List all scripts in the game |
| Get all script sources at once |
| Search keyword across all scripts |
| Find all usages of a variable/function |
| List require() dependencies |
Safety Mechanisms
Feature | Description |
🔒 Syntax Check | Auto-validates before writing. Rejects bad code. |
💾 Auto Backup | Saves previous version before every edit (10 generations) |
🛑 Play Mode Guard | Blocks writes during Play mode (prevents silent rollbacks) |
📝 UpdateSourceAsync | Uses ScriptEditorService for conflict-free writes |
Backup & Restore
Tool | Description |
| Restore from auto-saved backup |
| List available backups |
Validation
Tool | Description |
| Check syntax without writing |
| Verify line count / source length |
| Batch syntax check all scripts |
Instance Operations
Tool | Description |
| Get instance hierarchy |
| List children (lightweight) |
| Get/set properties |
| Create new instance |
| Delete instance |
| Clone instance |
| Rename instance |
| Move to different parent |
| Search instances by name/class |
Other
Tool | Description |
| Execute Luau code (with output capture) |
| Execute multiple commands at once |
| Attribute operations |
| Error log management |
| Undo/redo operations |
| Get current selection |
| Get Studio info |
📦 Installation
1. Clone & Build
git clone https://github.com/YOUR_USERNAME/roblox-studio-ultimate-mcp.git
cd roblox-studio-ultimate-mcp
npm install
npm run build2. Install Studio Plugin
Copy the plugin file to your Roblox Plugins folder:
Mac:
cp plugin/UltimateMCP.rbxmx ~/Documents/Roblox/Plugins/Windows:
copy plugin\UltimateMCP.rbxmx %LOCALAPPDATA%\Roblox\Plugins\Or generate it from source:
bash generate-plugin.sh3. Enable HTTP in Studio
Open Roblox Studio, then in the Command Bar (View → Command Bar):
game:GetService("HttpService").HttpEnabled = true4. Register with Claude Code
Add to your ~/.claude.json under the appropriate project:
{
"mcpServers": {
"roblox_ultimate": {
"type": "stdio",
"command": "node",
"args": ["/path/to/roblox-studio-ultimate-mcp/dist/index.js"],
"env": {}
}
}
}5. Restart
Restart Roblox Studio (to load the plugin)
Restart Claude Code (to connect to the MCP)
🏗️ Architecture
Claude Code ←(stdio)→ MCP Server (Node.js) ←(HTTP)→ Studio Plugin (Luau)
Port 3002MCP Server (
src/index.ts): Translates MCP tool calls to HTTP commandsStudio Plugin (
plugin/RobloxMCP.lua): Polls the server, executes commands inside StudioCommunication: HTTP polling (300ms interval)
🔧 Usage with Other MCP Servers
This server is designed to work alongside the official Roblox Studio MCP:
Use Case | Which MCP |
Script read/write | Ultimate (getScript/setScript) |
Play testing | Official (start_stop_play) |
Console output | Official (get_console_output) |
Instance manipulation | Ultimate |
Property changes | Ultimate |
📝 Real-World Impact
Before this MCP, a simple one-line fix in a 260-line script required:
run_codeto get the sourcegsubpattern matching (often fails)run_codeto write backPray it worked
Repeat 3-5 times
Now: editScript(path, 103, 103, "new code") → Done. First try.
🤝 Contributing
PRs welcome! Especially for:
New tools
Better error handling
Performance improvements
Documentation
📄 License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jundayoo/roblox-studio-ultimate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server