rbx-studio-plus
Provides tools for interacting with Roblox Studio, including running Luau code, inspecting and editing instances and scripts, managing selection and undo/redo history, syncing scripts to local files, and starting/stopping playtests while collecting console errors.
Click on "Deploy 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., "@rbx-studio-plus pull the scripts and playtest the game"
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.
๐งฑ rbx-studio-plus
The Roblox Studio MCP server that coding agents actually enjoy using.
Edit your Roblox scripts as local files, run Luau with real output, playtest in one call. Works with Claude Code, Codex, Cursor, opencode, or any MCP client.
Why
Roblox Studio ships a built-in MCP server. It is powerful, but it was not designed with coding agents in mind:
every call needs a
studio_idand adatamodel_type;print()output is lost;results over 100 KB are silently truncated;
syntax errors only say "Failed to parse command code";
scripts can only be edited through tool calls, never as files.
rbx-studio-plus sits between your agent and Studio and fixes all of that. It also adds the workflow agents are good at: edit files โ push โ playtest โ read errors โ fix.
flowchart LR
A["๐ค Agent<br/>Claude Code ยท Codex ยท Cursor"] -- MCP stdio --> P["๐งฑ rbx-studio-plus"]
P -- MCP stdio --> S["๐ฎ Roblox Studio<br/>built-in MCP"]
P <-- "two-way sync" --> F["๐ roblox-src/<br/>*.server.luau ยท *.client.luau ยท *.luau"]
A -- "Read / Edit / grep / git" --> FRelated MCP server: Roblox Studio MCP
โจ Highlights
Built-in Studio MCP | rbx-studio-plus | |
๐ฏ Targeting |
| automatic (or |
๐งช Running Luau | return value only, |
|
๐ Syntax errors | "Failed to parse command code" |
|
๐ Scripts | tool calls only | two-way file sync (Rojo layout), 3-way conflict detection, live watch |
โถ๏ธ Playtesting | start / stop |
|
๐ Output | whole log, no levels |
|
๐ ๏ธ Editing | raw Luau |
|
Every other Studio tool (generate_mesh, insert_asset, screen_capture, input simulation, subagentโฆ) is still available under the same name, without studio_id.
๐ Quick start
1. Enable Studio's MCP server. In Roblox Studio, go to Assistant โ โฆ โ Manage MCP Servers and turn on Enable Studio as MCP server.
2. One-line install (clones/updates, builds, links rbx-studio-plus, and registers "roblox-plus" in Claude Code + Codex):
Windows (PowerShell):
irm https://raw.githubusercontent.com/noan-hbt/rbx-studio-plus/main/install.ps1 | iexmacOS / Linux:
curl -fsSL https://raw.githubusercontent.com/noan-hbt/rbx-studio-plus/main/install.sh | bashgit clone https://github.com/noan-hbt/rbx-studio-plus.git
cd rbx-studio-plus
npm install && npm run build
node dist/src/index.js install --claude --codex # also supports --cursor, --project, --printOr paste into your client's MCP config:
{
"mcpServers": {
"roblox-plus": {
"command": "node",
"args": ["/absolute/path/to/rbx-studio-plus/dist/src/index.js"]
}
}
}Re-run the one-line installer anytime to update to the latest main. You can pass flags via RBX_PLUS_INSTALL_ARGS="--cursor" (or curl ... | bash -s -- --cursor).
3. Restart your agent, then ask it something like "pull the scripts and playtest the game".
๐งฐ Tools
Tool | What it does |
| Start here. Connected studios, play mode, PlaceId, datamodels, script-sync state |
| Pick one Studio when several are open |
| One-call snapshot: services, script counts, Remotes/Bindables, CollectionService tags, Lighting & StarterPlayer |
| Run Luau (inline or a local |
| New Output lines per datamodel; |
|
|
| Start the game, optionally |
| Compact hierarchy, or flat search with |
| Properties, attributes, CollectionService tags, and children of an instance (works in Edit & Playtest) |
| Batch-set properties/attributes/tags by |
|
|
| Read with line numbers, create/replace, atomic search/replace ( |
| Compile every script + static |
| Read or set what the user has selected in Studio |
| Undo / redo |
| Script โ file sync + Rojo |
Paths accept Workspace.Model.Part, game.Workspaceโฆ or Workspace/Model/Part. Duplicate sibling names are addressed as Name~2.
๐ Script sync
roblox-src/
โโโ ServerScriptService/
โ โโโ Main/
โ โโโ init.server.luau โ Script "Main" (it has children)
โ โโโ Helper.luau โ ModuleScript
โโโ StarterPlayer/StarterPlayerScripts/
โ โโโ Client.client.luau โ LocalScript
โโโ .rbxsyncignore โ optional ignore globs (e.g. ReplicatedStorage/Packages)
โโโ .rbxsync.json โ sync state (do not edit)sync_pullexports every script (unlimited count), by default to./roblox-src(orRBX_SYNC_DIR). Passsourcemap: trueto also generatesourcemap.jsonfor Luau LSP /luau-analyze.Edit the files with any tool, then
sync_push. New files become new scripts: the class comes from the suffix (with optional--!runcontext client|serverheader) and missing Folders are created. Deleted files are removed in Studio only withdelete_missing: true.No silent overwrites. If a script changed both locally and in Studio, the push is refused. A pull writes
<file>.studionext to your file: merge it, delete it, then push withforce: true.sync_watch on=trueturns on live sync: saved files are pushed instantly and Studio edits are pulled every 3 s.Each folder is bound to one place. Pulling a different place into it requires
force.
๐ก Example
> luau_run code: "for _, p in workspace.Map:GetChildren() do print(p.Name) end return #workspace:GetDescendants()"
โ ok ยท 3 ms ยท Edit
--- output ---
Spawn
Bunker
Trees
--- result ---
4182> playtest duration_s: 6
โ FAIL ยท ran 8s ยท 1 error(s), 0 warning(s)
--- console ---
[Client] [E] OnClientEvent is not a valid member of RemoteEvent "ReplicatedStorage.Remotes.RoundUpdate"โจ๏ธ CLI
The same engine also works without an agent:
rbx-studio-plus install [--claude] [--codex] [--cursor] [--project] [--print]
rbx-studio-plus doctor
rbx-studio-plus init [--dir D] [--studio S]
rbx-studio-plus sourcemap [--dir D] [--out sourcemap.json] [--luaurc]
rbx-studio-plus status
rbx-studio-plus sync pull|push|status|watch [--dir D] [--studio S] [--force] [--dry-run] [--delete-missing] [--sourcemap]
rbx-studio-plus run script.luau [--context server]Env var | Purpose |
| Default target studio (name substring or place id) |
| Default sync folder |
| Per-call timeout (default 60000) |
| JSON array overriding the Studio bridge command |
๐ง How it works
Studio connection. rbx-studio-plus is an MCP client of Studio's bridge (
%LOCALAPPDATA%\Roblox\mcp.bat, orStudioMCPon macOS). It reconnects automatically and applies timeouts.Luau execution. Your code is wrapped in a one-line prelude, so line numbers stay correct. The prelude shadows
print/warn, catches errors with a traceback, and serializes results safely.Large results. Results bigger than the bridge's limit are paged through
_G. Large inputs are uploaded in chunks.Change detection. Uses the same FNV-1a hash in Luau and in Node, so changes are detected without transferring source.
Undo. Every edit runs inside Studio's change history. Deletions use
Parent = nilso they can be undone.
๐งช Development
npm test # unit tests
node scripts/live-e2e.mjs <tmp-dir> --playtest # end-to-end against an open StudioThe end-to-end test writes only under ServerStorage.__rbxplus_test and deletes it at the end.
๐ License
MIT. Not affiliated with Roblox Corporation.
Available Tools
23 toolsconsoleA
Read Studio's Output window. By default returns only lines that are new since your previous console call (tracked per datamodel). Errors are prefixed [E], warnings [W]. Studio plugin noise is hidden by default.
Inputs: tail, level, since, filter, +3 more.
game_overviewB
One-call architectural overview of the place: PlaceId, services with script/child counts, all Remotes & Bindables, all CollectionService tags, Lighting & StarterPlayer settings.
Inputs: studio, context.
historyA
Undo or redo the last change(s) in Studio (every tool edit is recorded as an undo step).
Inputs: action (required), steps, studio.
inspectC
Properties, attributes, CollectionService tags, and children summary of an instance (supports ~N disambiguation, dots in names, and playtest datamodels).
Inputs: path (required), props, studio, context.
instanceA
Create (with optional recursive children tree & tags), delete, move (reparent), clone or rename instances. Undoable. For scripts prefer script_write or file sync.
Inputs: op (required), name, path, tags, +6 more.
luau_runA
Run Luau in Studio and get back print/warn output, the return value (Instances, Vector3, tablesโฆ are serialized) and errors with line numbers. Use for queries and one-off edits; changes are undoable (history action=undo). Code runs on Studio's main thread: in long loops call task.wait() every ~1000 iterations. Top-level return works.
Inputs: code, file, studio, context, +1 more.
playA
Start or stop a playtest (waits until Studio has actually switched), or report the current mode.
Inputs: action (required), studio.
playtestA
One-shot verification: starts a playtest, optionally waits for player/character spawn, runs optional server and/or client Luau assertions, waits, collects errors/warnings/prints from BOTH Server and Client Output, then stops. Use after changes to verify runtime behaviour.
Inputs: code, studio, context, duration_s, +4 more.
script_checkA
Compile every script (or those under given paths) for syntax errors AND statically check require() cycles, broken require() paths, and GetService() typos. Optionally runs local luau-analyze/selene if synced.
Inputs: dir, mode, paths, studio.
script_editA
Exact search/replace edits in one script (atomic, supports ~N & dots in names). Each old must match exactly once unless all=true. Undoable.
Inputs: path (required), edits (required), studio.
script_grepA
Search across all scripts in Studio (or under paths) for a substring or /regex/. Returns ~N-safe paths, line numbers, and matching lines.
Inputs: query (required), max, paths, studio.
script_readA
Read a script's source (includes unsaved editor changes), with line numbers. Prefer the local files if the place is synced (sync_pull).
Inputs: path (required), end, start, studio.
script_writeA
Replace a script's whole source, creating the script (and missing parent Folders) if needed. Undoable.
Inputs: path (required), source (required), class, studio, +1 more.
selectionA
Get the instances the user currently has selected in Studio (great for 'fix this'), or set the selection.
Inputs: set, studio.
set_propsA
Set properties, attributes, and/or CollectionService tags on one instance (path), several (paths), or all instances with a tag. Supports: Size:[2,3,4], Color:[255,0,0] or "#ff0000", Material:"Neon", CFrame:[x,y,z] or [x,y,z,rx,ry,rz] (deg), UDim2:[xs,xo,ys,yo], Rect:[x0,y0,x1,y1], ColorSequence:["#f00","#00f"], NumberSequence:[0,1], Font:"GothamBold", PhysicalProperties:[d,f,e], {"Enum":"Material.Neon"}, {"ref":"Workspace.Other"}, {"nil":true}. Undoable.
Inputs: tag, path, tags, paths, +3 more.
studio_selectA
Choose which open Studio instance all following calls target (only needed when several are open).
Inputs: studio (required).
studio_statusA
START HERE. One call shows: connected Studio instances (and which one is targeted), play mode, available datamodels, PlaceId, script-sync state and recent sync activity.
Inputs: studio.
sync_pullA
Export the place's scripts to a local folder (Rojo-style: .server.luau / .client.luau / .luau) so you can read/edit/grep them with your normal file tools. Safe to re-run: only changed files are rewritten; files edited on both sides produce a .studio conflict copy instead of being overwritten.
Inputs: dir, force, paths, studio, +1 more.
sync_pushA
Send locally edited/new script files to Studio. Refuses to overwrite scripts that were also changed in Studio since the last sync (conflict) unless force. New files are created (class from suffix, optional --!runcontext client|server). Deleted files are only deleted in Studio with delete_missing.
Inputs: dir, files, force, studio, +3 more.
sync_sourcemapA
Generate a Rojo-compatible sourcemap.json (and optional .luaurc) from Studio so Luau LSP, luau-analyze, and coding agents resolve require() paths and instances.
Inputs: dir, out, luaurc, studio, +1 more.
sync_statusB
What differs between the local folder and Studio: local edits, Studio edits, new/removed scripts, conflicts. Read-only.
Inputs: dir, studio.
sync_watchA
Live two-way sync: local file saves are pushed to Studio automatically, and edits made in Studio are pulled every few seconds. Pulls first if the folder is not synced yet.
Inputs: on (required), dir, studio, sourcemap, +1 more.
treeA
Compact view of the instance hierarchy (Name [Class] (+N hidden children)). With class/name/tag filters, lists matching instances with full ~N-disambiguated paths. Faster and terser than search_game_tree.
Inputs: max, tag, name, path, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 23 tools
Most tools have clearly distinct targets: script_read/write/edit/grep/check, instance, set_props, inspect, tree, and the sync_* family each do one obvious thing. The only genuinely confusable pairs are play vs playtest (start/stop a session vs one-shot verified run) and tree vs game_overview vs inspect, but descriptions disambiguate them (agents directed to tree as faster/terser, game_overview as a single architecture dump).
There are strong prefix families (script_*, sync_*, studio_*), but the overall convention is mixed: noun_verb (script_read, luau_run, game_overview), verb_noun (set_props, sync_pull), and bare nouns/verbs (tree, inspect, instance, selection, history, play, playtest, console). Readable overall but no single predictable pattern an agent can extrapolate from.
23 tools is on the heavy side, but the surface spans several genuinely different concerns (script I/O, hierarchy inspection, playtesting, undo, local sync), and each tool maps to a real operation. The five sync_* tools are the only cluster that could arguably be trimmed for a lighter footprint.
Coverage of the core domain is strong: read/write/edit scripts, create/delete/clone/reparent instances, set properties and tags, search, lint, playtest verification, output reading, undo/redo, and local file sync. Gaps are peripheral rather than blocking: no screenshot/visual capture, no place save/publish or open/close operations, and no asset/marketplace tooling.
Maintenance
Related MCP Connectors
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
A real-time, multiplayer filesystem for agents and humans: shared files, live edits, history.
Inspect, edit, and simulate an open Modeloop control-system model from your coding agent.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, scene rendering, and integration with the Roblox Creator Store.612MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Roblox Studio, enabling them to interact with instance hierarchy, edit Luau scripts, manage properties, and sync files over a local connection.28 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to explore, edit, and automate Roblox Studio sessions locally, including browsing instance hierarchies, reading and modifying scripts, manipulating properties, creating instances, building terrain, and running playtests.MIT
- AlicenseAqualityCmaintenanceEnables an AI agent to drive Roblox Studio, including running Luau code, syncing Rojo projects, starting solo or multiplayer play tests, and retrieving logs, screenshots, and GUI information.11MIT