Guide
Log inStart free

How to use AI coding agents with Roblox Studio (MCP)

MCP (Model Context Protocol) is an open standard that lets an AI agent call tools in another program. Roblox documents a built-in Studio MCP server that you switch on in Studio's Assistant settings, after which clients such as Claude Code, Codex CLI or Cursor can read and edit your open place. A second MCP server, such as Polyspawn, can add generated assets like thumbnails, icons and 3D models to the same agent.

Steps

  1. Understand what MCP does for you

    An MCP server offers a list of tools, for example "read this script" or "generate an icon". An MCP client (Claude Code, Codex, Cursor, Claude Desktop) shows that list to the AI model, which decides when to call a tool. You talk in plain language, and the agent does the clicking. This is different from a plugin where you press the buttons yourself. You can run several MCP servers at once, so one server can control Studio while another creates assets.

  2. Turn on the Studio MCP server

    Per the Roblox documentation, open Roblox Studio, open Assistant, choose Manage MCP Servers and switch on Enable Studio as MCP server. The docs list quick connect for several clients, including Claude Code, Claude Desktop, Codex CLI and Cursor, plus JSON and command-line setup for other clients. Restart Studio and your client after the change. Because Roblox updates this feature, follow the current page on create.roblox.com rather than a screenshot or an old tutorial.

  3. Start with a small, safe task

    Open a test place, not your live game, and give the agent one small job: explain an existing script, rename a few parts or write a simple touch-to-collect coin script. Read the changes it makes. The Roblox docs warn that MCP clients can read and modify content in your open places, so only connect clients you trust. Save a copy of the place first, so you can roll back if a change goes wrong.

  4. Add an asset server for pictures and 3D

    A coding agent can write Luau, but it does not draw. Polyspawn runs as a remote MCP server, so Claude Code, Codex, Claude Desktop and Cursor can generate assets (thumbnails, icons, GUI kits, 3D models) and list your assets. In Claude Code the setup is one command that points at the Polyspawn MCP address, and the Docs page in the app shows the exact line for your client. MCP and API access start with the Pro plan.

  5. Let the agent chain the steps, but approve each one

    A good prompt names the goal and the limit: "Make a daily reward menu in a cartoon style and place it in StarterGui, then write a script that shows it once per day." The agent can ask the asset server for the picture and the Studio server for the placement. Check the cost the asset tool shows before you confirm, since every generation uses credits, and read the script before you run it in play mode.

  6. Review, test and publish yourself

    Treat the agent as a fast junior helper. Playtest every change, check the Output window for errors, and review what was added to the data model. Roblox reviews every upload on its own, so generated images and audio can still be rejected. Responsibility for what ends up in your game stays with you, including testing on mobile and checking that no script touches data it should not.

Examples

GUI kit example: a pirate inventory with item grid and stats
A menu picture an agent can request
3D model example: a black pirate ship with sails
A 3D model an agent can request
Thumbnail example: Pirate Tycoon, two pirates fighting on a ship deck
A thumbnail an agent can request

Where Polyspawn falls short

  • MCP and API access to Polyspawn are part of the Pro plan and the plans above it. Free and lower plans do not include them.
  • Polyspawn is not connected to Roblox. The Studio MCP server is Roblox's own feature and works independently of Polyspawn.
  • Agents can misread a task or change more than you intended. Always work on a copy and review the changes.
  • Generations still cost credits when an agent triggers them. Check the prices in Settings › Usage before you let a long chain of steps run.

Questions and answers

Which clients work with the Studio MCP server?

The Roblox docs list quick connect for Antigravity, Codex CLI, Claude Code, Claude Desktop, Cursor, Gemini CLI and Visual Studio Code. Other clients that support the stdio transport can use the JSON or command-line setup.

Is it safe to let an agent edit my game?

Only as safe as your review. Roblox warns that connected clients can read and modify content in open places. Use a test place, keep backups and read the changes before you publish.

Do I need Polyspawn to use the Studio MCP server?

No. The Studio server comes from Roblox. Polyspawn only adds generated assets and is optional.

How does Polyspawn's MCP differ from the Studio plugin?

The plugin sends your finished assets into Studio when you click Send to Studio. The MCP server lets an AI agent create those assets from a prompt. You can use either or both.

Related pages

Sources

Start free