In short
In Roblox Studio, open Assistant, click … > Manage MCP Servers and turn on Enable Studio as MCP server. Then connect your client. Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, Visual Studio Code and Antigravity each have a one-switch Quick connect in that panel. Any other client that supports stdio can use the JSON config or command that Roblox documents.
- A green indicator in the same panel shows how many clients are connected. If yours does not appear, restart both Studio and the client.
- ChatGPT is not on the quick connect list, and Roblox documents no ChatGPT setup. The OpenAI routes Roblox does document are Codex CLI over MCP (OpenAI offers Sign in with ChatGPT for it), or an OpenAI API key inside Assistant.
- A connected client can edit scripts, run Luau, insert assets and start playtests in any place you have open. Save a version first, and connect only clients you trust.
On this page
What the Studio MCP server does
MCP (Model Context Protocol) is an open standard that lets AI tools talk to other applications. Roblox builds an MCP server into Studio. When it is on, an AI client on your computer can explore the place you have open, read and write scripts, run Luau and test the game in play mode, all through tools the server exposes.
The server runs as a local process on your machine and talks to the client over stdio (standard input and output). Nothing happens on its own: every action starts as a request from your client, and the client decides which tool to call. You need the latest version of Roblox Studio and the MCP client you want to use, both installed on the same computer.
Two ways to use Claude or GPT with Studio
| Studio MCP server | Assistant with your own API key | |
|---|---|---|
| Where you type | In your AI client, for example Claude Desktop, Claude Code or Cursor | In Studio's Assistant panel |
| What you set up | Turn on the server in Studio, then connect the client | Assistant > … > Manage API Keys, then choose the model |
| Models | Whatever your client uses | Anthropic, OpenAI or Google Gemini |
| What you need | The client and its own sign-in | An API key from that provider |
| Who acts in Studio | Your client, through the MCP tools | Assistant, using the model you picked |
This guide is about the first route. If all you want is a Claude or OpenAI model answering inside Studio, the second is shorter: get an API key from the provider, open Assistant, click … > Manage API Keys, choose the provider, paste the key, and select the model in the Model drop-down.
Step 1: Turn on the MCP server in Studio
- Open Roblox Studio and open a place. If Studio offers an update, install it first: the server needs the latest version.
- Click Assistant at the top right of Studio (the right side of the mezzanine bar) to open the Assistant window.
- Click … and choose Manage MCP Servers.
- Turn on Enable Studio as MCP server.
The panel now shows a Quick connect option and setup instructions for different clients. Keep it open. You need it for the next step, and it is where the connection indicator appears.
Step 2: Connect your AI client
Roblox gives three ways to connect, in this order: quick connect if your client is on the list, a JSON configuration if the client reads MCP config files, and a CLI command for clients that need one.
Quick connect
Quick connect supports seven clients (as listed on 30 September 2026): Antigravity, Codex CLI, Claude Code, Claude Desktop, Cursor, Gemini CLI and Visual Studio Code.
- In the panel from Step 1 (Assistant Settings > MCP Servers), expand the Quick connect drop-down. It lists the supported clients that are installed on your computer.
- Turn on the client you want.
- If your client is missing from the list, install it and restart Roblox Studio. If you installed it while Studio was open, you may need to restart Studio, the client, or both.
Setup by client
| Client | Route | Notes |
|---|---|---|
| Claude Desktop (Anthropic) | Quick connect | The desktop app. Roblox does not describe using Claude in a web browser. |
| Claude Code (Anthropic) | Quick connect | Roblox's coding harness guide uses it as a Visual Studio Code extension, signed in with an Anthropic account. |
| Cursor | Quick connect | Has its AI assistant built in. Sign in with your Cursor account. |
| Visual Studio Code | Quick connect | Needs an AI extension, such as Claude Code. |
| Codex CLI (OpenAI) | Quick connect | The OpenAI client on Roblox's list. OpenAI's Codex documentation offers Sign in with ChatGPT the first time you run it. |
| Gemini CLI (Google) | Quick connect | |
| Antigravity | Quick connect | |
| Any other client with stdio support | JSON config, or the CLI command | See the next section. Finish setup with the client's own documentation, then restart it. |
| ChatGPT | Not documented | Not on the quick connect list. See What about ChatGPT? |
Roblox's coding harness guide pairs the MCP connection with an editor: Cursor, or Visual Studio Code with an extension such as Claude Code. If you want the agent to write code as files as well as drive Studio, see Script Sync and Git below.
Other clients: JSON config or CLI command
The server works with any client that supports stdio transport. If yours has no quick connect, add Roblox Studio to its MCP configuration. These are the complete configurations Roblox documents. If Roblox Studio is your only MCP server, use them exactly as they are.
{
"mcpServers": {
"Roblox_Studio": {
"command": "cmd.exe",
"args": [
"/c",
"%LOCALAPPDATA%\\Roblox\\mcp.bat"
]
}
}
}
{
"mcpServers": {
"Roblox_Studio": {
"command": "/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP"
}
}
}
Where the config file lives depends on the client (Roblox's example calls it mcp.json). Roblox's instructions say to finish setup with your client's own documentation, then restart the client so it picks up the change.
CLI command
Some clients take a command instead of a config file. This is the command that starts the server, for you to register the way your client's documentation describes:
cmd.exe /c %LOCALAPPDATA%\Roblox\mcp.bat
/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP
Both point at a file that Studio installs. On Windows, %LOCALAPPDATA% is your user's local app data folder. On macOS, the path runs inside RobloxStudio.app in /Applications. If the file is not there, the client cannot start the server: see Troubleshooting.
Step 3: Check the connection
- In Studio, open Assistant and click … > Manage MCP Servers.
- Under Enable Studio as MCP server, look for the green indicator. It shows the number of connected clients.
- In your client, start with a request that only reads, so a wrong setup cannot change anything. For example: Using the Roblox Studio MCP tools, list what is in Workspace. Do not change anything.
On a fresh Baseplate the answer should list the default Camera, Terrain, Baseplate and SpawnLocation. Your client may ask you to approve the tool call, or offer to add the tool to an allowlist. Approving it once is enough for this test.
What about ChatGPT?
As of 30 September 2026, Roblox's documentation does not describe connecting ChatGPT to Studio, and ChatGPT is not on the quick connect list. This is what is and is not covered.
- Documented: Codex CLI, OpenAI's command-line coding agent, is a quick connect client. Set it up like the others in Step 2. OpenAI's Codex documentation offers Sign in with ChatGPT the first time you run it, so this is the closest documented way to bring a ChatGPT account to Studio.
- Documented: Assistant accepts an OpenAI API key. Open Assistant, click … > Manage API Keys, choose OpenAI, paste the key and pick a model. Assistant then uses that model inside Studio.
- Not documented: the ChatGPT app or website. Roblox says the server works with any client that supports stdio transport, so if an OpenAI app you use can add a local stdio MCP server, the JSON configuration or command above is what it needs. Whether it can is a question for OpenAI's documentation, not Roblox's.
Copying code from a ChatGPT chat into a Script still works, but nothing on that route reads your place or checks the result in Studio. The guide to using AI in Roblox Studio compares the options side by side.
What tools the server gives your client
Roblox lists 26 tools in eight groups (as of 30 September 2026). Your client chooses which to call; you do not call them by hand. Every call carries a studio_id that names the Studio window it targets.
| Group | Tools | What they do |
|---|---|---|
| Scripts | script_read, multi_edit, script_search, script_grep | Read a script by a path such as game.ServerScriptService.MyScript, whole or by line range. Apply several edits in one go, creating the script if the path does not exist. Find scripts by name (up to 10 results) or search text across every script (up to 50 matches). |
| Data model | search_game_tree, inspect_instance, subagent | Walk the instance hierarchy with filters and a depth limit, read all readable properties and attributes of one instance, or hand a multi-step job to an explore or playtest subagent. |
| Luau execution | execute_luau | Runs Luau in Studio in the Edit, Client or Server data model and returns the result or the error. |
| Playtesting | get_studio_state, start_stop_play, get_console_output, screen_capture | Check the play state, start or stop a playtest, read the Output log, and capture the viewport as an image. |
| Player input | character_navigation, user_keyboard_input, user_mouse_input | Move the character to a position or instance, and send key presses, text, clicks and scrolls. |
| Assets and generation | generate_mesh, generate_material, generate_procedural_model, wait_job_finished, search_asset, insert_asset, upload_image, store_image | Generate meshes, materials and procedural models from text. Search the Creator Store and your inventories, and insert an asset by ID. Upload images from URLs to Roblox, or load a local image to use as a reference. |
| Docs and skills | http_get, skill | Fetch pages from allowed Roblox documentation sites, and load reference material for tasks such as debugging and device simulation. |
| Sessions | list_roblox_studios | List the connected Studio windows with their names, Studio instance IDs and place IDs. |
Two kinds of tool deserve attention. First, the ones that change things: multi_edit and execute_luau change your place directly, insert_asset brings outside content into it by asset ID, and upload_image sends images to Roblox's asset server. Second, the playtest tools, which let an agent check its own work: Roblox's StudioTestService reference says start_stop_play starts a single Play Client session, and the input tools drive the character while it runs.
Roblox also routes other Studio features through the server: Scene Analysis data through SceneAnalysisService, MicroProfiler analysis, control of the Device Simulator, and an AI skill that converts a game to streaming.
Working with more than one Studio window
One client can connect to several running Studio windows at once. Because every tool call names its target with studio_id, the agent has to know which window you mean. It can call list_roblox_studios to see each window's name, Studio instance ID and place ID. Local places with no place ID are listed by name only, and when two windows share a name, the place ID tells them apart.
In practice: name the place in your prompt, and close any place you do not want touched. The server can reach every open place, not only the one you are looking at.
Work safely: back up, approve, review
Roblox's own warning is short: MCP clients can read and modify content in your open places, so connect only clients you trust. With tools that run code, insert assets and start playtests, one misread instruction can do real damage. These habits keep it recoverable.
- Save a version before each session. File > Save to Roblox with Notes (Ctrl+Alt+S, or Cmd+Option+S on Mac) creates a named checkpoint. To go back, open Window > Version History, click ⋮ next to that version, choose Open Local Copy, then use File > Save to Roblox As in the copy to restore it over the place. File > Save to File keeps a copy on your computer as well.
- Do not count on Ctrl+Z. Roblox's MCP page does not say whether a client's edits land in Studio's undo history, so treat your saved version as the way back.
- Work in a test copy, not the live game. With Enable Studio Access to API Services on (File > Experience Settings > Security), Studio reads and writes the same data stores as your live game, and Roblox advises turning it on only for a separate test version. That includes code an agent runs and playtests it starts.
- Keep approvals on for tools that change things. Allowlisting read tools such as
script_readandsearch_game_treeis low risk. Keep approvingmulti_edit,execute_luau,insert_assetandupload_imagecall by call until you trust the workflow. - Review before you keep it. Read the scripts it changed, check the Explorer for new or missing objects, and playtest yourself. An agent's playtest shows what it chose to check, not everything a player will do.
For bigger projects: Script Sync and Git
Roblox's coding harness guide adds two pieces to the MCP connection. Script Sync links Studio services to folders on disk, so your editor and agent work on .luau files that appear in Studio as scripts. Git then records each change you commit, which gives your code a history and a way back that does not depend on Studio.
- The coding harness guide treats Script Sync as a beta: choose File > Beta Features, enable Script Sync, click Save, and restart Studio when asked. Roblox's main Script Sync page does not mention a beta, so if Script Sync already appears when you right-click a service in the Explorer, skip this step.
- In the Explorer, right-click ServerScriptService, choose Script Sync > Sync to, and pick your project folder: the top-level folder that holds folders named after each service, not one of the folders inside it. Repeat for ReplicatedStorage and StarterPlayerScripts.
- Commit a clean state before you ask the agent for anything big.
git add .
git commit -m "Checkpoint before agent session"
Script Sync covers the scripts in those services. The MCP connection covers what it cannot reach, such as StarterGui and StarterPack, along with playtests and the Output.
Troubleshooting: when the client will not connect
Roblox's own checklist has three items: restart both Studio and the client, check that the command or binary path is correct and the file exists, and check the JSON syntax. These are the situations behind it.
I cannot find Manage MCP Servers
Update Roblox Studio to the latest version, then open Assistant from the top right of Studio and click …. Manage MCP Servers is in that menu.
My client is not in the Quick connect list
The list shows only supported clients that are installed on your computer. Install the client, then restart Studio. If it is not one of the seven supported clients, use the JSON configuration or CLI command instead.
The client shows no Roblox tools, or says the server failed to start
Check that the file in your config exists: %LOCALAPPDATA%\Roblox\mcp.bat on Windows, /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP on macOS. If Studio is installed somewhere other than /Applications on your Mac, change the path to match. Then restart the client, which Roblox says is needed to apply config changes, and restart Studio.
The config file stopped loading after I added Roblox Studio
A missing comma between two entries in mcpServers, or a stray bracket, makes the file invalid JSON and stops it loading. Check the file with a JSON validator, fix the line it reports, and restart the client.
There is no green indicator in Studio
The client has not connected. Check that Enable Studio as MCP server is still on and that you restarted the client after adding the server, then restart both Studio and the client.
The agent edited the wrong place
With more than one Studio window open, the client picks a target by studio_id. Ask it to run list_roblox_studios and name the place you mean, or close the other windows. Restore the place it changed from Version History.
The client asks for permission on every step
That is your client, not Studio. Roblox notes that you may need to approve a command or add the MCP tool to an allowlist. Allowlist the read-only tools if the prompts slow you down, and keep approving the ones that change your place.
Or skip the MCP setup: RoCode
RoCode (RoCode.app) is a different route, and it is not an MCP product. It is an independent AI agent for Roblox Studio: you describe a change in a web chat at rocode.app, and a free RoCode plugin from the Creator Store carries out the steps in the place you have open. There is no config file, command line or MCP server to set up. You pair the chat and the plugin once with the 8-character code shown in the plugin panel, and allow the plugin's HTTP and Script Injection permissions in Studio.
The trade-offs, stated plainly. RoCode cannot connect a Claude, Claude Code or ChatGPT subscription: it runs third-party models through OpenRouter as RoCode v3.3, v3.6 and v4.0. It does not run code in Studio, start playtests, insert Creator Store models or generate meshes, all of which the Studio MCP tools above can do. The free Starter plan includes 250,000 tokens a day. For how it compares with other tools, see Roblox AI tools compared.
I just playtested and got an error in RoundManager. Find the cause and fix it.
- Reads the Output from the playtest you ran with Check Output, including Server and Client lines, then opens the script around that line with Read Script
- Fixes the failing code in place with Edit Script, in the Studio window that is connected
- Compile-checks the script inside Studio with Check Script before it finishes. That is a compile check, not a type check or a playtest
- Sends its changes in batches, and each batch is an undo point in Studio's own history
RoCode does not start playtests, so press Play yourself to confirm the fix. How the plugin and pairing work. RoCode is an independent product, not affiliated with or endorsed by Roblox Corporation.
Questions
Is the Roblox Studio MCP server free?
It is built into Roblox Studio, and Roblox's MCP documentation mentions no charge or sign-up for it. The AI model comes through your client, so any limits or cost are those of the client's own account or plan.
Can I use ChatGPT with the Roblox Studio MCP server?
Not the ChatGPT app or website, as far as Roblox documents on 30 September 2026. The documented OpenAI route over MCP is Codex CLI, which is on the quick connect list and which OpenAI lets you sign in to with a ChatGPT account. The other route is an OpenAI API key in Assistant, through Manage API Keys.
Do I need an API key to connect Claude to Roblox Studio?
Not for MCP. Roblox's setup has no API key step, and your client uses its usual sign-in: the coding harness guide signs in to Claude Code with an Anthropic account. An API key is only needed for the other route, a Claude model inside Studio's Assistant through Manage API Keys.
Can the AI playtest my game through MCP?
Yes. start_stop_play starts and stops a playtest, get_console_output reads the Output, screen_capture captures the viewport, and the input tools move the character and send keys and clicks. The playtest subagent can run a gameplay scenario and check the outcome. Play it yourself too before you publish.
Does the Studio MCP server work on Mac?
Yes. Roblox documents a macOS configuration that points at /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP, next to the Windows one.
Sources and further reading
- Roblox Creator Docs: Connect to the Roblox Studio MCP server. enabling the server, quick connect, JSON and CLI setup, the tool list, multiple Studio windows and troubleshooting
- Roblox Creator Docs: MCP servers (Assistant). using your own Anthropic, OpenAI or Google API key in Assistant
- Roblox Creator Docs: Build with a coding harness. Script Sync, MCP with Cursor or Visual Studio Code, and Git
- Roblox Creator Docs: Version History. saving with notes and restoring a previous version
- Roblox Creator Docs: Data stores. why Studio access to API services belongs on a test copy
- Roblox Engine API: StudioTestService. how the start_stop_play tool compares with scripted multi-client tests
- OpenAI: Codex CLI. signing in to Codex CLI, including Sign in with ChatGPT
- Model Context Protocol: Introduction. the open standard the Studio server implements