roblox-mcp
Official sources:
The official Roblox Studio MCP server lets a connected AI client inspect and edit an open place. It provides tools for scripts, instances, Luau execution, assets, and playtesting.
What the Studio MCP server is
Roblox Studio implements a
Model Context Protocol (MCP) server using
transport. The server runs as a local process on your machine and proxies requests from a supported AI client into the active Studio session. It is the bridge between your editor's agent and Studio: Script Sync handles disk-to-Studio file syncing, while MCP handles everything else (Explorer selection, instance inspection, script editing, Luau execution, play mode, input simulation, and asset insertion).
Prerequisites
- Latest Roblox Studio. Update through the launcher or download from the Creator Hub.
- An MCP-capable AI client. Cursor, VS Code with Claude Code, Claude Desktop, Codex CLI, Gemini CLI, Antigravity, or any client that supports transport.
- A Roblox account signed into Studio.
- Git (recommended) for the file-based workflow.
Enabling the server in Studio
- Open Studio and load the place you want the agent to work on.
- Open Assistant (button in the upper right).
- Click ⋯ → Manage MCP Servers.
- Turn on Enable Studio as MCP server.
- The panel shows quick-connect options and manual configuration snippets. A green indicator appears when a client connects.
If you do not see MCP options, restart Studio after updating to the latest version.
Connecting your client
Choose the method that matches your client:
Quick connect supports Antigravity, Codex CLI, Claude Code, Claude Desktop, Cursor, Gemini CLI, and Visual Studio Code.
- In Studio: Assistant → ⋯ → Manage MCP Servers → Quick connect.
- Turn on your installed client.
- Restart the client if the tools do not appear immediately.
For clients that read an
or similar config file, see
references/setup-and-connection.md for per-OS, copy-paste configurations.
For clients that need a raw CLI command, see references/setup-and-connection.md for Windows and macOS commands.
After connecting, verify with:
Use the Roblox MCP to read the current game tree in Roblox Studio. List what's in Workspace.
What you can do with the MCP tools
The server exposes tools in several categories. The current tool names and usage guidance are in references/tool-reference.md.
| Category | Examples |
|---|
| Scripts | , , , |
| Data model | , , () |
| Luau execution | |
| Asset generation & insertion | , , generate_procedural_model
, , , , , |
| Playtesting | , , , , () |
| Input simulation | , , |
| Documentation | , |
| Instance discovery | ; pass on subsequent calls |
Work with MCP and Script Sync
Script Sync maps folders on disk (
,
,
, etc.) to Studio services, so
files you edit locally appear in Studio automatically. MCP covers everything Script Sync cannot reach: editing
, inserting models, running commands, playtesting, and inspecting instances.
Typical agent loop:
- Edit disk files through Script Sync for reusable modules and scripts.
- Use MCP to inspect instances, run Luau snippets, start play mode, and capture output/screenshots.
- Use MCP to edit scripts that live in containers not covered by Script Sync (for example, ).
See references/script-sync-integration.md for the full setup and a starter-project layout.
Multi-instance handling
Call
to discover connected windows, their Studio instance IDs, and place IDs. Local places without a place ID are listed by name. Pass the selected instance's
on every subsequent tool call; do not rely on a shared active window or infer the target from an object path. Re-list instances when a window closes or the target changes.
Security and trust
MCP clients can read and modify your open places. Treat MCP connections like any privileged integration:
- Only connect clients you trust.
- Work on test places or version-controlled projects.
- Review agent edits before publishing.
- Keep and other place files out of Git (use the starter ).
- Disconnect or disable the MCP server when it is not in use.
- Treat as privileged code: it can publish places, write to DataStores, make HTTP requests, and access credentials loaded in Studio.
See references/security-and-troubleshooting.md for the full security checklist and troubleshooting steps.
Verification checklist
Scripts
scripts/MCPReadyChecker.lua
: a diagnostic snippet you can run with to verify Script Sync status and basic model health.
scripts/StudioModelProbe.lua
: a reusable utility for summarizing the game tree, useful as a pattern for agent exploration prompts.
How to proceed
- Confirm prerequisites and enable MCP in Studio.
- Connect your client using quick connect or the manual config in references/setup-and-connection.md.
- Verify the connection with a simple tree-read or call.
- If using a file-based workflow, set up Script Sync per references/script-sync-integration.md.
- Use the tool reference to craft precise agent prompts and the security guide to keep the workflow safe.
<!-- catalog:references:start -->
Reference index
- script-sync-integration.md: Combine files on disk with Studio MCP edits and playtests.
- security-and-troubleshooting.md: Investigate MCP connection failures or review Studio access.
- setup-and-connection.md: Enable Studio MCP and connect a client on Windows or macOS.
- tool-reference.md: Choose a Studio MCP tool and identify the target Studio instance.
<!-- catalog:references:end -->