The Roblox Studio MCP plugin is the bridge between your AI assistant and Studio. It polls the local MCP server for work and executes Studio API calls on behalf of your AI.
-
Download
MCPPlugin.rbxmxfrom the latest release -
Save to your plugins folder:
OS Path Windows %LOCALAPPDATA%\Roblox\Plugins\macOS ~/Documents/Roblox/Plugins/Or in Studio: Plugins tab → Plugins Folder → drop the file in
-
Restart Roblox Studio — plugin appears in your toolbar
npm run build:pluginThen copy studio-plugin/MCPPlugin.rbxmx to your plugins folder and restart Studio.
- Open
plugin.server.luauon GitHub - Copy the entire file contents
- In Studio → create a new Script in ServerScriptService
- Paste the code
- Right-click the script → Save as Local Plugin…
- Name it
Roblox Studio MCP
Plugin appears immediately — no restart needed.
Game Settings → Security → ✅ Allow HTTP Requests
This must be enabled for every place you want to use with MCP.
Click the MCP Server button in the Plugins toolbar:
| Status | Meaning |
|---|---|
| 🟢 Green | Connected — server is running and responding |
| 🔴 Red | Disconnected — normal when MCP server isn't running yet |
Set up your MCP client to launch the server. Quick options:
Claude Code:
claude mcp add robloxstudio -- npx robloxstudio-mcpGemini CLI:
gemini mcp add robloxstudio npx --trust -- -y robloxstudio-mcpGeneric JSON config:
{
"mcpServers": {
"robloxstudio-mcp": {
"command": "npx",
"args": ["-y", "robloxstudio-mcp@latest"]
}
}
}Full client configurations: docs/CLIENTS.md
Windows: npx not found?
Wrap with cmd:
{
"command": "cmd",
"args": ["/c", "npx", "-y", "robloxstudio-mcp@latest"]
}AI calls tool → MCP server queues request → Plugin polls (500ms) → Plugin executes → AI receives result
- Your AI invokes an MCP tool (e.g.
get_script_source) - The MCP server queues the request on
localhost:3002 - The Studio plugin polls for pending work every 500ms
- The plugin executes the corresponding Studio API call
- Results flow back through the bridge to your AI
37+ tools cover instance trees, scripts, properties, attributes, tags, object creation, and diagnostics.
| Feature | Details |
|---|---|
| Visual status | Toolbar indicator shows connection state in real-time |
| Smart polling | Exponential backoff on failed connections to reduce overhead |
| Error recovery | Automatic retry with 30-second request timeouts |
| Debug logging | Comprehensive output in Studio's Output window |
| Configurable | Server URL (default http://localhost:3002) and poll interval (default 500ms) are editable |
-- In plugin source code:
local DEBUG_MODE = true| Problem | Fix |
|---|---|
| Plugin missing | Verify .rbxmx is in the correct plugins folder → restart Studio |
| HTTP 403 | Enable Allow HTTP Requests in Game Settings → Security |
| Shows disconnected | Start the MCP server — red status is normal until then |
| Connection refused | Check Windows Firewall isn't blocking localhost:3002 |
| Old plugin version | Rebuild (npm run build:plugin), recopy, and fully restart Studio |
| Errors in Output | Check Studio's Output window for detailed error messages |
- Local-only — plugin only communicates with
localhost:3002 - No external servers — nothing leaves your machine
- Explicit actions — tools run only when your MCP client invokes them
- No data collection — your projects remain completely private