Skip to main content

How do I use Claude Code or Codex with Roblox Studio?

Updated

Roblox Studio has a built-in MCP server. Open Assistant, choose ... > Manage MCP Servers and turn on Enable Studio as MCP server. Then use Quick connect, which lists Claude Code, Codex CLI and Cursor, or add the server by hand with its launch path. Your agent can then read and edit scripts, run Luau, playtest and capture the screen.

12 facts: 7 from the Roblox docs, 3 measured in Studio and 2 our rules of thumb

Turn on Studio's MCP server

  1. Update Roblox Studio to the latest version.
  2. Open Assistant.
  3. Click ... > Manage MCP Servers.
  4. Turn on Enable Studio as MCP server.

The server is built into Studio and talks to your agent over stdio, so it works with any client that supports stdio. Once it is on, the settings panel shows Quick connect and setup steps per client.

Connect your agent

Quick connect is the easy path. Its list includes Claude Code, Codex CLI and Cursor. If your client is missing, install it and restart Studio.

To add it by hand, point the client at Studio's launcher. These are the commands we use:

# Claude Code, macOS
claude mcp add Roblox_Studio -s user -- /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP

# Claude Code, Windows
claude mcp add Roblox_Studio -s user -- cmd.exe /c "%LOCALAPPDATA%\Roblox\mcp.bat"

# Codex, macOS
codex mcp add Roblox_Studio -- /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP

# Check that Claude Code sees it
claude mcp list

In Cursor, add the server to mcp.json:

{
  "mcpServers": {
    "Roblox_Studio": { "command": "/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP" }
  }
}

Then test it by name. Ask the agent to call list_roblox_studios and nothing else. A vague request such as "list my Studio windows" can look like a pass with nothing connected.

What the agent can do in Studio

Roblox's page lists 30 tools in groups. The ones you will use most:

GroupTools
Scriptsscript_read, multi_edit, script_search, script_grep
Explore the placesearch_game_tree, inspect_instance, subagent
Run Luauexecute_luau
Playtestget_studio_state, start_stop_play, get_console_output, screen_capture
Player inputcharacter_navigation, user_keyboard_input, user_mouse_input
Generate and insertgenerate_mesh, generate_material, generate_procedural_model, search_asset, insert_asset
Docs and sessionshttp_get, skill, save_place, list_roblox_studios

A separate tool, open_cloud_invoke, lets the agent call Open Cloud with permissions you switch on per game.

Keep it safe

  • Roblox warns that MCP clients can read and modify content in your open places. Connect only clients you trust.
  • Open Cloud permissions are saved per game, and Studio enforces them on every request. Each game starts at Balanced.
  • Studio uses your live data stores, so writes from the agent change real player data.
  • Our rule: keep script-running tools on "ask first" in your agent's permissions.

A first session that works

  1. Open the place you want to work on. With several Studio windows open, have the agent call list_roblox_studios and name the window to use.
  2. Start with a small job you can check, such as "find the script that awards coins and explain it".
  3. For a change, let the agent read the scripts, edit them in Edit mode, then start a playtest.
  4. Have it read the console output and take a screen capture before it calls the change done.
  5. Judge phone UI in Studio's Device Simulator, not in the desktop view.

Edit and Play do not overlap: stop the playtest before the next edit, and send those calls one at a time.

Where a design MCP fits

Studio's server gives the agent hands: it edits, runs, plays and captures. It does not tell the agent what a phone HUD should measure, how top games lay out a shop, or what a genre's thumbnail shows.

RoDesigner is a design MCP for that gap. It serves measured layouts from top games, layout and type rules, a screen linter for four devices, and store art. Add it next to Studio's server:

claude mcp add --transport http --scope user --callback-port 3118 rodesigner https://rodesigner.com/api/mcp

codex mcp add rodesigner --url https://rodesigner.com/api/mcp

In Cursor, add it to mcp.json:

{
  "mcpServers": {
    "rodesigner": {
      "url": "https://rodesigner.com/api/mcp"
    }
  }
}

Then ask the agent to read RoDesigner's design_guide with topic "tools" first. It says which tool to use for each job.

Questions

Can I use Cursor or Codex instead of Claude Code?

Yes. Studio's Quick connect lists Codex CLI and Cursor too, and the server works with any client that supports stdio.

Do I need a plugin to connect an agent to Studio?

No. The MCP server is built into Roblox Studio; you only turn it on and connect the client.

Is it safe to let an agent edit my place?

Roblox warns that a connected client can read and modify your open places, so connect only clients you trust. Keep script-running tools on ask-first.

What does a design MCP add on top of Studio's server?

Design knowledge the Studio tools do not carry: measured layouts from top games, size and type rules, a screen linter and store art.

Where these numbers come from

  1. The Roblox Studio MCP server is built into Roblox Studio.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  2. Enable it: open Assistant, click ... > Manage MCP Servers, turn on Enable Studio as MCP server; the panel then shows Quick connect and setup instructions.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  3. Quick connect supports Claude Code, Codex CLI and Cursor among its clients; a missing client needs installing and a Studio restart.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  4. Launcher: /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP on macOS, cmd.exe /c %LOCALAPPDATA%\Roblox\mcp.bat on Windows; the server uses stdio transport.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  5. The page lists 30 tools in groups: scripts, generation, data model exploration, Luau execution, playtesting, input, docs and skills, place and session management, feedback.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  6. MCP clients can read and modify content in your open Roblox places.

    from the Roblox docscreate.roblox.com/docs/.../mcp

  7. open_cloud_invoke; permissions saved per game and enforced by Studio; each game starts at Balanced; Studio uses live data stores.

    from the Roblox docscreate.roblox.com/docs/.../mcp-open-cloud

  8. The claude mcp add and codex mcp add lines for Studio's launcher.

    measured in StudioOur setup, roblox-studio-ai-tools skill, section 1

  9. Test the connection by asking for list_roblox_studios by name; a vague request can look like a pass with nothing connected.

    measured in StudioOur field note, roblox-studio-ai-tools skill, section 1

  10. Work order: read, edit in Edit mode, start Play, read the console, capture; Edit and Play calls do not overlap and go one at a time.

    measured in StudioOur field notes, roblox-studio-ai-tools skill, section 2

  11. Keep script-running tools on ask-first in the agent's permissions.

    our rule of thumbOur rule, roblox-studio-ai-tools skill, section 1

  12. RoDesigner's connect commands for Claude Code, Codex and Cursor.

    our rule of thumbrodesigner.com/llms.txt (the same constants build the page)