How to connect Claude and Cursor to Roblox Studio with MCP
AI apps like Claude and Cursor are good at writing Luau, but most of the time they only see what you paste into a chat. The fix is to give them direct, safe access to your game's scripts. That's what a Roblox MCP server does, and this guide walks through setting one up with RoIDE.
What you need
- Windows 10 or 11 with Roblox Studio installed.
- One of Claude Desktop, Claude Code or Cursor. Any app that supports MCP (the Model Context Protocol) works; these three are set up for you.
- A free RoIDE account, which you use to download the app and sign in.
Step 1: install RoIDE
Download the installer from your account page and run it. RoIDE lives in the system tray. On first launch it asks you to sign in, which opens robloxide.com in your browser; once you're in, the app is ready. The installer also adds the RoIDE plugin to Roblox Studio, so there's nothing to copy by hand.
Step 2: open or create a project
A RoIDE project is a folder on your computer that holds your game's scripts as files. Pick an existing folder or start a new one from the tray panel. Each script becomes a file named after its type:
Name.server.luaufor a ScriptName.client.luaufor a LocalScriptName.luaufor a ModuleScript
Folders mirror your game's hierarchy, starting from services such as ServerScriptService and ReplicatedStorage. Only scripts and the folders that hold them are synced; your map, models and UI stay in Studio.
Step 3: connect your AI app
In the RoIDE app, choose the AI app you use and click set up. RoIDE writes the MCP configuration for Claude Desktop, Claude Code or Cursor, so you don't have to edit JSON files. Restart the AI app if it was already open, and you'll see RoIDE listed as a running MCP server.
For another MCP client, point it at the RoIDE server the same way; the app shows what to use.
Step 4: open your place in Studio
Open the place you want to work on. The RoIDE plugin connects to the app on its own, and from then on every change syncs both ways: save a file and it's in Studio, edit a script in Studio and the file updates.
Step 5: ask your AI to work on the game
Now your AI can use RoIDE's tools. A good first prompt is simply asking it to look around:
Look at my Roblox project and summarize how the game is structured: which services have scripts, and what the main systems do.
Through the MCP server it can see your game's tree, read and search scripts, write new ones, edit existing code, move or delete scripts, and read Studio's Output. Try something concrete next:
Add a leaderstat called Coins that starts at 0, and give the player 10 coins when they touch any part tagged "Coin". Put the server code in ServerScriptService.
You'll see the new script appear in Studio as soon as the AI writes it. Play test, and if something breaks, ask it to check the Output and fix the error.
Tips for good results
- Start small. One feature or fix per request is easier to review than a whole system at once.
- Let it read first. Asking the AI to read the relevant scripts before changing them leads to code that fits your game.
- Use git. Your scripts are files, so you can commit before a big change and roll back if you don't like it. See how to use git with Roblox Studio.
- Test in Studio. The AI can read the Output after you play test, which makes fixing errors much faster.
Is it safe?
RoIDE only syncs scripts and the folders that contain them. Parts, models, terrain and UI are never touched, so the AI can't rearrange your map. Everything runs on your computer; the AI app you connect sends what it reads to its own provider under its own terms.
Ready to try it? Read more about the Roblox MCP server, or see how people use AI on Roblox games.