rbx-mcp
An MCP server that bridges any MCP-capable AI host to Roblox Studio. The AI executes Lua live in Studio, reads output/errors, and iterates.
README
rbx-mcp
Let an AI agent (Claude) write Lua and execute it live inside Roblox Studio, read the result, and iterate — over the Model Context Protocol.
rbx-mcp is a small bridge with two halves in one process:
- an MCP server (stdio) that exposes Studio actions to Claude as tools
(
execute_lua,read_studio_state,get_errors), and - a localhost HTTP server that a tiny Roblox Studio plugin polls — it runs
the Lua via
loadstring()and reports back output, return values, and errors (with tracebacks).
The plugin is deliberately dumb and universal: it just runs whatever Lua it's given, so it never needs updating for new tasks. All the intelligence stays on the AI side.

Status
Stable. Published on npm as @lolofuk123/rbx-mcp.
Design docs and the phased build plan live in work/;
start with work/README.md and the concept doc PROJECT_CONCEPT_1.md.
Repo layout
server/ Node/TS package, published to npm as `rbx-mcp`
(MCP side + localhost HTTP side; bundles & auto-installs the plugin)
plugin/ single-file Studio plugin: src/rbx-mcp.server.luau (no build step)
work/ specs + implementation plan
Setup
Prerequisites: Node.js ≥ 20, Roblox Studio, and an
MCP-capable AI host (see below). rbx-mcp is model-agnostic — bring Claude,
GPT, or any model your host drives; the server only exposes MCP tools, the model
just calls them. The host must run a local stdio server on the same
machine as Studio (the plugin talks to localhost).
1. Add the MCP server to your AI host
Claude Desktop / Claude Code — top-level key mcpServers:
{
"mcpServers": {
"rbx-mcp": { "command": "npx", "args": ["-y", "@lolofuk123/rbx-mcp"] }
}
}
- Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.json(Windows) /~/Library/Application Support/Claude/claude_desktop_config.json(macOS). - Claude Code:
.mcp.jsonat the project root, orclaude mcp add rbx-mcp -- npx -y @lolofuk123/rbx-mcp.
VS Code / GitHub Copilot (agent mode) — note the different key (servers) and
type. File .vscode/mcp.json (or Command Palette → MCP: Add Server):
{
"servers": {
"rbx-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "@lolofuk123/rbx-mcp"] }
}
}
(Cursor / Windsurf are similar — e.g. .cursor/mcp.json, same mcpServers shape as Claude.)
2. Open Roblox Studio
On first launch the server auto-installs the plugin into your local Plugins folder; Studio loads it on (re)start. Then open the rbx-mcp panel → click Start. If HttpService is off, the panel tells you exactly where to enable it (Experience settings → Security → Allow HTTP Requests); it connects automatically once you do.
That's it. See server/README.md for env vars, an optional
auth token, and manual plugin install.
Setup on a managed / corporate machine (Claude Code)
On org-managed machines, enterprise policy often blocks Claude Code from
registering MCP servers (both claude mcp add and .mcp.json loading). The
workaround: start the server yourself with the dev route enabled, then let
Claude Code drive Studio via direct HTTP calls instead of MCP tools.
Prerequisites
- Node.js ≥ 20 installed
- Roblox Studio installed
- Claude Code CLI
Step 1 — Start the server manually
Open a terminal (keep it running in the background) and start the server with the dev route enabled:
# bash / macOS / Linux
RBXMCP_DEV=1 npx -y @lolofuk123/rbx-mcp
# PowerShell (Windows)
$env:RBXMCP_DEV=1; npx -y @lolofuk123/rbx-mcp
On first run the server writes the Studio plugin into your local Plugins folder:
%LOCALAPPDATA%\Roblox\Plugins\rbx-mcp.lua (Windows)
~/Documents/Roblox/Plugins/rbx-mcp.lua (macOS)
Step 2 — Open Roblox Studio and connect the plugin
- Restart Studio — it only scans the Plugins folder at launch, so a full restart is required after the first run in Step 1.
- Enable HttpService — Game Settings → Security → Allow HTTP Requests. The plugin cannot do this for you; it is a one-time manual step per experience.
- Open the rbx-mcp panel (Plugins toolbar) → click Start.
Verify in a browser that both sides are up:
http://127.0.0.1:30700/v1/health
"pluginConnected": true means you're ready.
Step 3 — Tell Claude Code to use the dev route
Because MCP tools are blocked, Claude Code executes Lua by posting directly to the server's dev endpoint. Tell Claude Code at the start of your session:
"The rbx-mcp server is running with
RBXMCP_DEV=1. MCP tools are blocked by policy on this machine. Execute Lua in Studio by posting tohttp://127.0.0.1:30700/v1/_dev/enqueuewith body{"code": "..."}and reading the result from the response."
Claude Code uses its PowerShell or Bash tool to POST to that endpoint and reads the result synchronously from the response — no MCP handshake needed. You're live.
Troubleshooting
VS Code / Copilot (Windows):
- MCP tools don't appear / no "Start" shows up — MCP tools only work in
Copilot Agent mode (not Ask/Edit). Start the server via Command Palette →
MCP: List Servers →
rbx-mcp, and enable it in the chat's 🔧 Tools picker. node/npx"not recognized" in VS Code's terminal (but fine in a normal terminal) — VS Code launched with a stale PATH from before Node was installed. Fully quit and reopen VS Code (reboot if it persists) so it picks up Node.spawn npx ENOENTwhen starting the server — on Windowsnpxis actuallynpx.cmd, which VS Code's direct spawn can miss. Wrap it incmd:(or set{ "servers": { "rbx-mcp": { "type": "stdio", "command": "cmd", "args": ["/c", "npx", "-y", "@lolofuk123/rbx-mcp"] } } }"command": "npx.cmd").
Roblox Studio:
- No rbx-mcp toolbar button after install — fully restart Studio; it only
scans the Plugins folder at launch. (The installed file must be
.lua, which the auto-installer handles.) - Stuck on "HTTP service disabled" — enable it (Experience settings → Security → Allow HTTP Requests); the plugin connects automatically once it's on.
pluginConnected: falsein/v1/health— open the rbx-mcp panel and click Start; check Host/Port (and Token, if set) match the server.
Development
cd server
npm install
npm test # vitest
npm run build # tsc -> dist/
npm run dev # run the server locally (stdio MCP + HTTP on 127.0.0.1:30700)
License
See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。