Skip to main content
Glama

Roblox Studio MCP

Connect your coding agent directly to Roblox Studio. It can edit places, run Luau in live server and client contexts, start and stop playtests, and collect logs, screenshots, memory reports, and profiler captures from each peer.

NPM Version

What it can do

Debug a running game

  • Run Luau with eval_server_runtime or eval_client_runtime. Both tools execute in a live server or client context and use the same require cache as your game scripts.

  • Instrument live code with breakpoints. It records each hit without pausing the playtest.

  • Read output from edit mode, the server, or a specific client with get_runtime_logs, including messages logged during startup.

Automate playtests

  • Start, inspect, and stop solo or multi-client sessions with solo_playtest and multiplayer_playtest.

  • Open or close Studio windows with manage_instance. It can launch a baseplate, a local place file, a published place, or an older place revision.

Find performance problems

  • Record server or client CPU timings with capture_script_profiler and capture_micro_profiler. MicroProfiler captures are saved for re-analysis, and capture_micro_profiler also analyzes .gprx dumps from Studio's MicroProfiler.

  • Break down memory use with get_memory_breakdown or attribute scene cost with get_scene_analysis.

Work in edit mode

  • Run Luau in Studio's edit context with execute_luau.

  • Use set_properties for instance properties and find_and_replace_in_scripts for script text. For project-specific bulk edits, use execute_luau.

  • For large generated Luau, use the verified chunk-staging workflow: explicit instance routing, UTF-8 byte/hash readback, ownership-checked cleanup, and bounded recovery without blindly replaying mutations.

  • Use selection to inspect or update Studio selection and frame a part or model before capturing the viewport.

  • Capture the viewport with capture_screenshot, then send mouse or keyboard input. See Configuration.

  • Record the viewport to MP4 with capture_video to review cutscenes, tweens, or animations. Each recording returns a storyboard image of evenly spaced frames. Requires Windows or WSL, plus FFmpeg 8+; see Video recording.

Inspect Creator Store assets

  • Find public assets with search_assets, then read the full catalog metadata with get_asset_details.

  • Check an asset's hierarchy, media metadata, and security scan with preview_asset before adding it to the place.

  • Add an asset with insert_asset. The tool removes scripts and package links, verifies the cleaned result, and then parents it in Studio.

Manage monetization

  • List, create, and update developer products and game passes with manage_monetization. New items stay off sale unless you ask, and a name that already exists is refused because Roblox cannot delete these items. Requires an Open Cloud API key; see Configuration.

Manage experience settings

  • Read and change the experience title, description, server size, devices, voice chat, private server price, and social links with manage_experience. Private server price changes need confirm, which the agent sets itself, so it is not a human approval step. It cannot make an experience public or private: Open Cloud ignores visibility changes, and Roblox can refuse to make an experience public through an API key, so change visibility in Creator Hub. The agent can use every permission the key grants, so give the key only the scopes you want an agent to use. Requires an Open Cloud API key; see Configuration.

Look up Roblox APIs

  • Fetch official engine API documentation as Markdown with get_roblox_docs.

  • List and retrieve Roblox-authored skills with get_roblox_skills.

See the complete tool list.

Related MCP server: Roblox Studio MCP

Setup

1. Connect your client

Choose your MCP client below. Each setup installs the matching Studio plugin automatically.

The server is published on npm as @envnyx/robloxstudio-mcp. The inspector edition is not on npm yet, so its commands build it from the GitHub repo: the first run takes a few minutes, git must be signed in to GitHub (the repo is private), and --allow-git=all is needed because npm 12 refuses git installs by default.

codex mcp add robloxstudio -- npx -y @envnyx/robloxstudio-mcp@latest --auto-install-plugin
claude mcp add robloxstudio -- npx -y @envnyx/robloxstudio-mcp@latest --auto-install-plugin
agy mcp add robloxstudio -- npx -y @envnyx/robloxstudio-mcp@latest --auto-install-plugin
{
  "mcpServers": {
    "robloxstudio-mcp": {
      "command": "npx",
      "args": ["-y", "@envnyx/robloxstudio-mcp@latest", "--auto-install-plugin"]
    }
  }
}

2. Restart Studio

Fully close and reopen Studio after installation or updates. When the plugin displays Connected, you're ready.

Custom Plugins folder. Set MCP_PLUGINS_DIR to use a custom location.

Manual plugin installation.

npx -y @envnyx/robloxstudio-mcp@latest --install-plugin

Both editions prefer the bundled plugin. If it is missing, installation downloads the GitHub release matching the installed npm package version and validates the plugin's version and edition before replacing the installed file. This also applies to development versions; a missing matching release is an error.

On native Linux, Studio runs under Wine. To let the server launch and close it, set ROBLOX_STUDIO_WINE_LAUNCHER to an executable script and ROBLOX_STUDIO_EXE to RobloxStudioBeta.exe inside your Wine prefix. The server runs <launcher> <RobloxStudioBeta.exe path> <Studio arguments...>; the launcher sets up the prefix and display, then must exec wine "$@" so Studio keeps its PID. See Native Linux with Wine.

Code mode (fewer tokens)

Add --code-mode (or set ROBLOX_MCP_CODE_MODE=1, which also works for the inspector edition) to replace the full tool list with two tools, following Cloudflare's Code Mode and its search/execute server:

  • search: keywords in, TypeScript signatures out (an empty query lists every tool).

  • execute: JavaScript that calls studio.<tool_name>(input), chains calls and returns only what the model needs. Inputs are checked against each tool's schema.

claude mcp add robloxstudio -- npx -y @envnyx/robloxstudio-mcp@latest --auto-install-plugin --code-mode

With the 51 standard tools, the tools/list payload drops from 53,463 to 1,002 characters. The code runs in a node:vm context with only studio and console in scope and a 5 minute limit. That is not a security sandbox, so code mode is off by default and meant for agents you already trust with execute_luau.

Inspector edition

Read-only access to the DataModel.

NPM Version

No DataModel or script edits. The selection tool can change editor selection and camera framing; export and profiler tools can write files only to explicit local paths, except that capture_micro_profiler keeps its 10 most recent captures in the system temp directory.

Install only one variant at a time (the installers remove the other automatically):

Codex CLI

codex mcp add robloxstudio-inspector -- npx -y --allow-git=all -p github:envnyx/robloxstudio-mcp robloxstudio-mcp-inspector --auto-install-plugin

Claude Code

claude mcp add robloxstudio-inspector -- npx -y --allow-git=all -p github:envnyx/robloxstudio-mcp robloxstudio-mcp-inspector --auto-install-plugin

Antigravity CLI

agy mcp add robloxstudio-inspector -- npx -y --allow-git=all -p github:envnyx/robloxstudio-mcp robloxstudio-mcp-inspector --auto-install-plugin

Other clients (Cursor, Claude Desktop, etc.)

{
  "mcpServers": {
    "robloxstudio-inspector": {
      "command": "npx",
      "args": ["-y", "--allow-git=all", "-p", "github:envnyx/robloxstudio-mcp", "robloxstudio-mcp-inspector", "--auto-install-plugin"]
    }
  }
}

Documentation


Report issues · Report a security vulnerability · MIT Licensed · Based on boshyxd/robloxstudio-mcp v2.7.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers