Studio Bridge

Studio Bridge

Connects Claude directly to Roblox Studio for building UI, editing scripts, running code, playtesting, and viewing the game in real-time.

Category
访问服务器

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.

Node Platform Roblox Studio License

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+

  1. Download this repo (Code → Download ZIP) and extract it anywhere permanent
  2. Double-click install.cmd
  3. Open (or restart) Roblox Studio → the Studio Bridge panel connects by itself → click Allow if Studio asks for HTTP permission
  4. 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:

  • 🏗️ Buildcreate_instance spawns 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_asset inspects 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选