Roblox Studio MCP Server

Roblox Studio MCP Server

A free, open-source MCP server that lets Claude, Cursor, Codex, or Gemini operate Roblox Studio — debug live playtests, bulk-edit places, and scaffold whole games — with a built-in safety layer.

Category
访问服务器

README

Roblox Studio MCP Server

A free, open-source MCP server that lets Claude, Cursor, Codex, or Gemini operate Roblox Studio — debug live playtests, bulk-edit places, and scaffold whole games — with a built-in safety layer.

CI NPM Version

What this is

Your AI assistant connects over MCP to a Node/TypeScript server, which bridges (local HTTP long-poll) to a Roblox Studio plugin that operates the open place: Workspace, ServerScriptService, ReplicatedStorage, StarterGui, Terrain, Lighting, and more.

Claude Code / Codex / Cursor / Gemini
        ↓  MCP (stdio)
Node/TypeScript MCP server  ── localhost dashboard, --doctor
        ↓  local HTTP bridge (long-poll)
Roblox Studio plugin
        ↓
Your place: Workspace · ServerScriptService · ReplicatedStorage · StarterGui · Terrain · Lighting …

Why this vs. WEPPY?

  • Free and open-source (MIT). No Pro subscription, no paywalled tools, no account gating.
  • Self-hostable. Everything runs locally; the plugin talks only to your machine.
  • Own your safety policy. Dry-run, confirmation gating, script backups, operation history, and hard limits are built in and configurable — not a black box.
  • No proprietary code. This project shares no code with, and does not attempt to bypass, any closed-source tool.

Setup

  1. Enable Allow HTTP Requests in Game Settings → Security.
  2. Wire up your AI client. @latest floats to the newest release; --auto-install-plugin copies the matching Studio plugin into Roblox Studio's Plugins folder on start.
# Claude Code
claude mcp add robloxstudio -- npx -y @princeofscale/robloxstudio-mcp@latest --auto-install-plugin

# Codex CLI
codex mcp add robloxstudio -- npx -y @princeofscale/robloxstudio-mcp@latest --auto-install-plugin

# Gemini CLI
gemini mcp add robloxstudio npx --trust -- -y @princeofscale/robloxstudio-mcp@latest --auto-install-plugin

Cursor — add .cursor/mcp.json to your project:

{
  "mcpServers": {
    "robloxstudio": {
      "command": "npx",
      "args": ["-y", "@princeofscale/robloxstudio-mcp@latest", "--auto-install-plugin"]
    }
  }
}

Manual plugin install: npx -y @princeofscale/robloxstudio-mcp@latest --install-plugin. Set MCP_PLUGINS_DIR first to override the target folder (works on Windows, macOS, WSL).

Fully close and reopen Studio after the plugin is first installed or updated. The plugin shows Connected when ready.

CLI flags

Flag Purpose
--auto-install-plugin Install/refresh the bundled plugin on start.
--install-plugin Install the plugin and exit.
--port <n> Override the bridge port (default 58741).
--debug Verbose logging.
--doctor Run diagnostics and exit.
--pollinations-key <k> Pollinations API key for AI image generation (or set POLLINATIONS_API_KEY).
--open-cloud-key <k> Roblox Open Cloud key for Creator Store + asset upload (or ROBLOX_OPEN_CLOUD_API_KEY).

Optional keys

Everything core works key-free. Two optional integrations unlock more:

  • AI image generation — set POLLINATIONS_API_KEY (a server-side sk_ key from enter.pollinations.ai). Default model is zimage; pick any from the model list. Free models like flux/zimage work immediately; premium models (seedream5, nanobanana, …) need account credits.
  • Creator Store & asset upload — set ROBLOX_OPEN_CLOUD_API_KEY (with asset:write) for search_assets, upload_asset, and image_generate_and_upload. The free marketplace_search + insert_asset need no key.

Verify it works: --doctor

npx -y @princeofscale/robloxstudio-mcp@latest --doctor

Checks Node version, server package, whether the Studio plugin is installed, whether the local bridge is running, and whether Studio is reachable — with a clear pass/warn/fail line for each.

Dashboard

While the server is running, open http://localhost:58741/dashboard for a live view: Studio connection status, server version, pending requests, recent operations, and buttons to refresh, clear the log view, and export diagnostics JSON.

What you can ask

"What's the structure of this game?" "Create an obby game with 6 checkpoints." "Add a checkpoint system and a timer HUD." "Fix all script errors." (uses diagnose_scripts) "Add background music and play a wave animation on the NPC." "Create a shop UI that's mobile-friendly." "Generate an island map with mountains and water." "Search the marketplace for a low-poly tree and insert one into Workspace." "Set the lighting to a horror preset and add a day-night cycle." "Start a multiplayer test with 2 clients and tell me why the round never starts."

How it compares to WEPPY

Capability This MCP WEPPY
Price Free, MIT, self-hosted Free tier + paid Pro
Scripts / instances / properties / selection / tags
Multi-place routing instance_id
Terrain generation ✅ baseplate/island/mountains/water/paint, volume-limited
Lighting / atmosphere / sky ✅ + 8 presets + day-night script
UI builder ✅ + mobile-friendly preset ✅ (UI Studio, Pro)
Audio / animation
Apply image/texture by class
AI image generation ✅ Pollinations (any model)
Playtest control (F5/F8) + log capture ✅ + multiplayer tests ✅ (Pro)
Error reporting → script:line diagnose_scripts
Bidirectional local sync + conflict detection ✅ (free) ✅ (Pro)
Change history / backups / undo ✅ + script backups & restore ✅ (Pro)
Dashboard /dashboard
Free marketplace search (no key) marketplace_search
Game templates (obby/simulator/tycoon/round)
Safety layer (dry-run, confirm, limits, protected services) ✅ configurable partial
--doctor diagnostics
Read-only inspector edition

Where we lead: a real safety layer, game-template generators, free marketplace search, free sync/history (Pro-gated in WEPPY), --doctor, and a read-only edition — all MIT and self-hosted.

Tool catalog (121 tools)

  • Browse & inspect: file tree, services, instances, properties, attributes, tags, descendants, scene/memory analysis.
  • Edit: create/delete/duplicate/move instances, set properties (typed), bulk operations, script read/patch/replace, grep.
  • Runtime: execute_luau, server/client runtime eval, playtest start/stop, multiplayer tests, runtime logs, screenshots, input simulation.
  • Safety layer: dry-run and confirmation gating on destructive ops, automatic script backups, get_operation_history, list_script_backups, restore_script_backup, undo/redo, hard limits (objects per op, script size, terrain volume), protected-service guards, dangerous-Luau detection.
  • UI builder: ui_create_screen_gui, ui_create_frame, ui_create_text_label/text_button/image_label/image_button, ui_apply_layout, ui_make_mobile_friendly.
  • Environment: environment_set_time_of_day, environment_set_lighting_preset (sunny, sunset, night, horror, cyberpunk, obby, simulator, realistic), environment_set_atmosphere, environment_set_sky, environment_create_day_night_cycle_script.
  • Terrain: terrain_generate_baseplate/island/mountains/water, terrain_paint_material, terrain_clear_region (volume-limited; clear requires confirmation).
  • Game templates: template_create_obby_game, template_create_simulator_game, template_create_tycoon_game, template_create_round_game.
  • Media: audio_create_sound, audio_play_sound, animation_create, animation_play, asset_apply_texture (auto-picks Image/Texture/Decal/MeshPart property).
  • AI image generation: image_generate (Pollinations text-to-image, default zimage, saves a local file) and image_generate_and_upload (generate → upload to Roblox → returns assetId for asset_apply_texture).
  • Diagnostics: diagnose_scripts — captures the output log and returns errors/warnings mapped to script + line, to drive "fix all script errors".
  • Local sync: sync_pull (Studio → .server.lua/.client.lua/.module.lua files), sync_status (three-way diff), sync_push (files → Studio, conflict-aware, dry-run).
  • Free marketplace (no key): marketplace_search (public toolbox search for models/decals/audio/meshes) and marketplace_search_and_insert (find + insert the top match), plus key-free insert_asset/preview_asset.
  • Creator Store (Open Cloud key): search_assets, get_asset_details, get_asset_thumbnail, upload_asset, build import/export, .rbxm import/export.

Security

This server lets an AI run Luau and mutate your place. Safeguards are on by default:

  • Destructive operations are gated. Deleting a protected service (Workspace, ServerScriptService, …), large bulk changes, terrain clears, and Luau matching destructive patterns (ClearAllChildren, :Destroy, DataStore writes, os.*) require confirm: true.
  • Script overwrites are backed up before they run; restore with restore_script_backup.
  • Dry-run everywhere that mutates significantly: pass dryRun: true to preview.
  • Hard limits cap objects-per-operation, script size, and terrain volume even when confirmed.

Still: only connect this to places you own, and review what the AI proposes before confirming destructive steps. For browsing or code review with zero write risk, use the read-only inspector edition below.

Inspector edition (read-only)

NPM Version

Same plugin family, read-only tool set — no writes, no script edits, no creation/deletion. Safe for browsing, code review, and debugging.

npx -y @princeofscale/robloxstudio-mcp-inspector@latest --install-plugin

claude mcp add robloxstudio-inspector -- npx -y @princeofscale/robloxstudio-mcp-inspector@latest --auto-install-plugin
codex mcp add robloxstudio-inspector -- npx -y @princeofscale/robloxstudio-mcp-inspector@latest --auto-install-plugin
gemini mcp add robloxstudio-inspector npx --trust -- -y @princeofscale/robloxstudio-mcp-inspector@latest --auto-install-plugin

Install only one variant at a time — don't leave both MCPPlugin.rbxmx and MCPInspectorPlugin.rbxmx in the Plugins folder. The CLI installers remove the other variant first.

Troubleshooting

Symptom Fix
Plugin never shows "Connected" Enable Allow HTTP Requests (Game Settings → Security); fully restart Studio after first install.
--doctor says nothing on the port The bridge only runs while your MCP client has started the server. Launch the client, then re-run.
Yellow banner in the plugin Server/plugin versions differ. Re-run --auto-install-plugin and restart Studio.
Tool call hangs Multiple Studio places connected — pass instance_id (see get_connected_instances).
Editing the plugin in an IDE shows red type errors Install plugin deps: cd studio-plugin && npm install. It is a roblox-ts package separate from the root workspaces.
npx not found on Windows Wrap the command with cmd /c.

Building from source

npm install && cd studio-plugin && npm install && cd ..
npm run build                                            # node packages
npm run typecheck && npm test                            # 184 unit tests
cd studio-plugin && npm run build && cd ..               # plugin TS → Luau
node scripts/build-plugin.mjs                            # → MCPPlugin.rbxmx
node scripts/build-plugin.mjs --variant inspector        # → MCPInspectorPlugin.rbxmx

Releasing

Publishing is automated. Push a version tag and GitHub Actions runs the quality gate, sets the version from the tag, and publishes both packages to npm:

git tag v2.17.0 && git push origin v2.17.0

Requires a repo secret NPM_TOKEN (an npm Automation token, which bypasses 2FA). Dependency PRs are opened weekly by Dependabot.

License & credits

MIT Licensed. Based on Chrrxs/robloxstudio-mcp, itself based on boshyxd/robloxstudio-mcp. Safety layer, UI/terrain/environment/template builders, local sync, --doctor, and the dashboard are additions in this fork.

Report Issues

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选