Roblox Studio MCP
Allows AI agents to control Roblox Studio, including managing instances, scripts, code execution, playtesting, world building, and installing game system scaffolds.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Roblox Studio MCPGenerate a flat terrain at the origin."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Roblox Studio MCP
A production Model Context Protocol (MCP) integration that lets AI agents control Roblox Studio and autonomously build, test, and debug Roblox games.
With this project connected, an AI assistant (Claude, Cursor, Claude Code, or any MCP client) can operate like a full Roblox development team โ programmer, level designer, UI developer, gameplay engineer, tester, and debugger โ inside a live Studio session:
๐ณ Explorer control โ create, inspect, clone, move, rename, and delete instances; batch-build hundreds of objects with one undo waypoint; bulk
mass_set_propertiesacross a whole map๐ Script management โ create/read/edit/patch/search/refactor
Script,LocalScript, andModuleScript; project-widefind_and_replace_in_scriptswith dry-run; compile-check the whole placeโ๏ธ Code execution โ run arbitrary Luau in Studio (plugin security level) with captured output and serialized return values
๐ Runtime debugging โ during play-solo / multiplayer tests every DataModel connects as its own peer:
eval_server_runtime/eval_client_runtimeinspect live game state mid-playtest, per-peerget_output_logs/get_errorsread each side's logs (including boot-time prints), andset_log_breakpointinstruments code without pausing๐งช Test & debug loop โ start/stop playtests, read output logs and errors with Luau stack traces, fix, and retest โ fully autonomously
๐ Official API docs โ
get_roblox_docsfetches real Roblox engine reference (classes, datatypes, enums) so the agent checksProximityPromptorCFramesemantics instead of hallucinating them๐ World building โ procedural terrain (Perlin-noise hills, blocks, spheres), lighting presets, catalog asset insertion, camera control
๐งฉ Game system scaffolds โ one command installs production-grade systems: DataStore player profiles, currencies, inventory, shop, quests, progression + achievements, global leaderboards, combat, NPCs, round/matchmaking loops, settings, and a themed UI kit (HUD, menus, notifications)
๐ Every MCP client โ stdio for local clients (Claude Code, Claude Desktop, Cursor, Codex, Gemini) plus a Streamable HTTP transport (
--transport http) for AI platforms that only accept a server URL, publishable through Cloudflare Tunnel / ngrok / Tailscale (docs/remote-access.md)๐ Security-first โ bearer-token authentication on both the plugin bridge and the HTTP MCP endpoint, localhost-only binds by default, command validation, rate-limited remotes in generated code, script-stripping on asset inserts
Architecture
AI Agent (Claude / Cursor / URL-only platforms / any MCP client)
โ MCP over stdio โ or โ Streamable HTTP at /mcp (bearer token)
โผ
MCP Server (Node.js + TypeScript)
โ local HTTP bridge on 127.0.0.1 (bearer-token auth)
โผ long-polling (plugins can only make outbound requests)
Roblox Studio Plugin (Luau) โ one peer per DataModel:
โโ edit session (building + Run-mode simulation)
โโ playtest server (eval_server_runtime, server logs)
โโ playtest client(s) (eval_client_runtime, client logs)
โ command executors + ChangeHistory waypoints
โผ
Roblox Studio (your open place)See ARCHITECTURE.md for the full design, protocol, data flow, and security model.
Related MCP server: Roblox MCP
Quick start
1. Requirements
Node.js โฅ 18.17
Roblox Studio
An MCP client (Claude Desktop, Claude Code, Cursor, โฆ)
2. Install & build
git clone https://github.com/Meganugger/roblox-studio-mcp.git
cd roblox-studio-mcp
npm install
npm run buildThis builds the server, the shared package, and the Studio plugin artifact at
studio-plugin/dist/RobloxStudioMCP.rbxmx.
3. Install the Studio plugin
One command:
node server/dist/index.js --install-pluginThis copies the built plugin into your local Studio plugins folder
(Windows: %LOCALAPPDATA%\Roblox\Plugins, macOS: ~/Documents/Roblox/Plugins;
override with MCP_PLUGINS_DIR). Fully close and reopen Studio afterwards.
Manual alternative: drop studio-plugin/dist/RobloxStudioMCP.rbxmx into the same folder.
4. Connect your AI client
Add the server to your MCP client config. Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"roblox-studio": {
"command": "node",
"args": ["/absolute/path/to/roblox-studio-mcp/server/dist/index.js"]
}
}
}Claude Code:
claude mcp add roblox-studio -- node /absolute/path/to/roblox-studio-mcp/server/dist/index.jsMore client configs in examples/client-configs/.
5. Pair Studio with the server
Start your MCP client โ the server prints its auth token to stderr on startup (also saved at
~/.roblox-studio-mcp/token).In Roblox Studio, open your place and click the MCP toolbar button.
Paste the token into the widget and press Connect. (The plugin needs Allow HTTP Requests; it enables it for you when possible.)
Ask your AI: "Check the Roblox Studio connection" โ it calls
get_studio_status. โ
6. Build a game
Try the acceptance prompt:
"Create a polished Roblox simulator game."
The agent will lay out the map with generate_terrain + create_instances_batch, install data
profiles/currency/shop/quests/UI with install_scaffold, write game-specific scripts, then loop
analyze_scripts โ start_playtest โ get_errors โ fix โ retest until everything runs clean.
A full walkthrough lives in examples/simulator-game.md.
Tool suite (48 tools)
Category | Tools |
Connection |
|
Explorer |
|
Scripts |
|
Code execution |
|
Project |
|
Test & debug |
|
World |
|
Game systems |
|
Reference |
|
Full reference with parameters and examples: docs/tools.md.
Runtime debugging (per-peer)
When the user starts a play-solo or multiplayer playtest (F5 / Test tab), Studio runs the plugin inside every DataModel. Each auto-connects with the saved token as its own peer, so the agent can:
get_connected_peers โ edit + server + client:Player1 (+ client:Player2 โฆ)
eval_server_runtime code=โฆ โ inspect live server state (e.g. MatchService round data)
eval_client_runtime code=โฆ โ inspect a client's PlayerGui / camera / character
get_output_logs peer=server โ server-side logs incl. boot-time prints
get_errors peer=client โ client-side errors with Luau stack traces
set_log_breakpoint path=โฆ line=โฆ โ instrument code without pausing, reproduce, read logsAsk things like: "Start reading the server logs, reproduce the hit, and tell me why the damage function never fires" โ the agent sets a log breakpoint, reads per-peer logs, and fixes the code.
Remote URL access (URL-only AI platforms)
Some AI platforms can't spawn a local process and only accept an MCP server URL. Run:
node server/dist/index.js --transport httpThis serves the full tool suite over Streamable HTTP at http://127.0.0.1:3668/mcp, protected by a
bearer token (printed on startup; persisted at ~/.roblox-studio-mcp/http-token). Publish it with a
reverse tunnel โ no inbound firewall holes, TLS terminated by the tunnel:
cloudflared tunnel --url http://127.0.0.1:3668 # or ngrok http 3668 / tailscale funnel 3668Then give the platform https://<your-tunnel-host>/mcp with header
Authorization: Bearer <http-token>. Full guide, security model and provider comparison:
docs/remote-access.md.
Configuration
Environment variables read by the server:
Variable | Default | Purpose |
|
| Local bridge port (127.0.0.1 only) |
| auto-generated | Shared secret (โฅ 16 chars) between server and plugin |
|
|
|
|
| Streamable HTTP MCP port ( |
|
| HTTP MCP bind host (keep local; use a tunnel to publish) |
| auto-generated | Bearer token for the HTTP MCP endpoint |
|
| Where generated tokens are persisted |
|
| Set |
|
| Set |
|
|
|
| OS default | Override Studio plugins folder for |
Repository layout
server/ MCP server: tools, HTTP bridge, auth, scaffold library (TypeScript)
studio-plugin/ Roblox Studio plugin: bridge loop, executors, UI (Luau, Rojo-compatible)
shared/ Wire protocol, command names, property encoding (TypeScript)
scripts/ Plugin packer (source tree โ .rbxmx)
tests/ Vitest suite incl. full-stack MCP + bridge integration tests
docs/ Installation, usage, tool reference, troubleshooting
examples/ Client configs, prompt playbooks, simulator-game walkthroughDevelopment
npm run typecheck # strict TS across workspaces
npm test # 62 tests: unit + multi-peer bridge + HTTP transport + MCP client integration
npm run build # server + shared + plugin artifactThe plugin sources are Rojo-compatible (studio-plugin/default.project.json), so
rojo build studio-plugin -o RobloxStudioMCP.rbxmx produces an equivalent artifact if you
prefer the Rojo toolchain. Every Luau file (plugin + all generated scaffold code) compiles
clean with the official Luau compiler; the test suite verifies this when luau-compile
is available.
Troubleshooting
Common issues (plugin won't connect, HTTP disabled, token mismatch, port conflicts, playtest caveats) are covered in docs/troubleshooting.md.
Prior art & attribution
This project builds on the architecture proven by Roblox/studio-rust-mcp-server (official, Rust) and boshyxd/robloxstudio-mcp (TypeScript) โ in particular the stdio-MCP + local-HTTP-bridge + long-polling-plugin pattern that works within Roblox Studio's outbound-only HTTP constraint. The per-peer runtime-debugging model (one plugin peer per playtest DataModel) was pioneered by Chrrxs/robloxstudio-mcp. This implementation is written from scratch and combines those ideas with token authentication, atomic batch building, a script patch/refactor toolchain, an autonomous test/debug loop, log breakpoints, official-docs lookup, a Streamable HTTP transport for URL-only platforms, and a production gameplay scaffold library.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Meganugger/roblox-studio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server