Studio Bridge
Connects Claude directly to Roblox Studio for building UI, editing scripts, running code, playtesting, and viewing the game in real-time.
README
<div align="center">
π§ Studio Bridge
Connect Claude directly to Roblox Studio β fast, reliable, multi-session.
An MCP (Model Context Protocol) server + Studio plugin that lets Claude build UI, edit scripts, run code, playtest and see your game β live, with zero configuration.
by JuanArtxz
</div>
Why another Studio MCP?
Existing bridges break under real use. Studio Bridge was engineered around the failure modes that made them unusable on large projects:
| Problem elsewhere | Studio Bridge |
|---|---|
| Multiple Claude sessions fight over ports β agents time out | One shared broker on one fixed port. Any number of sessions multiplex through it, zero config |
| Slow commands get re-delivered and execute 2-10Γ | Exactly-once leasing. A command is handed to one poll and never re-delivered β if Studio freezes you get a clear error, never a duplicate |
Big scripts corrupt in transit (\n escapes mangled) |
Verbatim transfer + 600 KB chunking both ways. 2 MB scripts and 1080p screenshots just work |
| Two agents clobber each other's script edits | Optimistic hashing. Reads return a hash; edits take expectedHash and fail loudly if the script changed |
| Dead plugin = 30 s timeouts on every call | Fast-fail in ~2 s with an actionable message |
| Hardcoded list of ~40 properties | Official Roblox API dump β every scriptable property of every class, cached 7 days |
Install (2 clicks)
Requirement: Node.js 18+
- Download this repo (Code β Download ZIP) and extract it anywhere permanent
- Double-click
install.cmd - Open (or restart) Roblox Studio β the Studio Bridge panel connects by itself β click Allow if Studio asks for HTTP permission
- Restart Claude (Code or Desktop) β done
Nothing to configure: the installer builds the plugin, copies it into your Roblox Plugins folder, and registers the MCP with both the Claude Code CLI and the Claude Desktop app. New Claude sessions load the tools automatically β just ask:
"build a shop UI in Studio with a grid of item buttons"
To remove everything: uninstall.cmd.
What Claude can do with it
32 tools covering the full Studio workflow:
- ποΈ Build β
create_instancespawns a whole hierarchy (a complete UI!) in one call; clone with offsets, move models, mass-edit properties with a full datatype codec (Vector3, CFrame, UDim2, ColorSequence, Font, Enum, β¦) - π Script β read with line numbers + content hash, surgical multi-edits (atomic), full-project grep and find/replace (dry-run by default)
- βΆοΈ Test β start/stop playtests, read output incrementally (
sinceSeqβ no re-dumped walls of text), run Luau in edit/server/client contexts with captured prints and tracebacks, simulate input - ποΈ See β move the camera (
focusPath= pressing <kbd>F</kbd> on an object) and take PNG screenshots to verify its own work - π Explore β tree with smart summarization for huge places, search by name/class/tag/property, stable
ref:handles that survive renames - π‘οΈ Safety β every write is an undo waypoint,
preview_assetinspects toolbox assets (and flags scripts) before inserting
Architecture
Claude session #1 ββstdioββ> MCP shim ββ
Claude session #2 ββstdioββ> MCP shim ββΌβHTTPββ> broker daemon βββlong-pollββ Studio plugin
Claude session #3 ββstdioββ> MCP shim ββ (127.0.0.1:33361)
- The first shim that needs it spawns the broker; everyone else reuses it. It exits on its own after 20 min idle.
- The plugin long-polls the broker (instant wake-up, ~50-200 ms per command), executes reads in parallel and writes in strict FIFO (race-free), and reconnects automatically with backoff.
- Everything stays on
127.0.0.1β nothing ever leaves your machine. - 100% official plugin APIs (same category as Rojo). No injection, no client modification β Roblox themselves ship an MCP with this exact plugin+local-server design.
Config & troubleshooting
| What | Where |
|---|---|
| Port | STUDIO_BRIDGE_PORT env var + the Port field in the plugin panel (default 33361) |
| Broker logs | %LOCALAPPDATA%\StudioBridge\broker.log |
| Bridge status | node server\cli.js status |
| Panel stuck on "Looking for bridge" | Open any Claude session (the broker starts with it) |
| Panel stuck on "Permission needed" | Click Allow in Studio's HTTP permission popup |
| Tools missing in Claude | Fully restart Claude (including the tray icon) β MCP configs load at startup |
| Moved the folder after installing | Run install.cmd again (registration points at the folder path) |
Development
npm run build-plugin # plugin/*.lua β dist/StudioBridge.rbxmx (no Rojo needed)
npm test # broker integration: exactly-once, chunking, leases, 30-way concurrency
node test/mcp-smoke.test.js # MCP handshake + API dump
Luau static analysis (all plugin code passes clean):
luau-lsp analyze --definitions=globalTypes.d.luau --sourcemap=sourcemap.json plugin/*.lua plugin/Commands/*.lua
License
MIT Β© JuanArtxz
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.