Skip to main content
Glama
2021 Roblox Studio MCP Bridge

2021 Roblox Studio MCP Bridge

2021 Roblox Studio MCP Bridge ๐ŸŽฎ๐Ÿค–

Connect AI coding assistants (OpenCode, Claude Desktop / Claude Code, Cursor, Codex, Windsurf, Gemini CLI, and browser AIs via ZeroScript) directly to 2021 Roblox Studio (Octane / Aisaka) using Anthropic's Model Context Protocol (MCP).


๐ŸŒŸ Features

  • screen_capture: Captures high-res screenshots of your Studio viewport/GUI directly into the AI chat.

  • execute_luau: Executes arbitrary Luau code in Studio edit mode with automatic ChangeHistoryService undo checkpoints.

  • read_script & write_script: Reads and overwrites the full source code of scripts, local scripts, and module scripts.

  • script_grep: Global regex search across all scripts in the place.

  • inspect_instance: Deep property inspector (CFrames, colors, attributes, tags, children).

  • audit_scene_assets: Scans all 3D scene objects (sounds, meshes, decals, particles, clothing) for asset IDs.

  • Playtest Suite (run_playtest, start_playtest, stop_playtest): Autonomous AI playtesting with gameplay screenshots and console error diagnostics.

  • Stability Suite: HTTP Long-Polling (94% less traffic), Studio heartbeat tracking, infinite-loop guard, and UTF-8 sanitization.


Related MCP server: Roblox Studio MCP

๐Ÿš€ Quick Setup Guide

โœจ NEW: Native Desktop Setup & Control Center App (Octane Studio MCP Setup.exe) Double-click Octane Studio MCP Setup.exe to open the native Windows GUI installer & control center! It includes:

  • โšก 1-Click Studio Plugin Installer (automatically copies MCPBridge2021.lua into %localappdata%\Roblox\Plugins)

  • ๐Ÿ“ฆ Built-in npm install Runner (installs server dependencies right inside the app)

  • ๐Ÿค– 1-Click AI Client Configurator (auto-configures OpenCode, Claude Desktop, Cursor, Windsurf, Claude Code, Codex, and the ZeroScript Browser Extension)

  • ๐Ÿงช Live Studio Connection Tester (ping 2021 Studio, inspect Workspace, read logs, and test screenshots live)

1. Install the Studio Plugin

  1. Open Windows Run (Win + R), type:

    %localappdata%\Roblox\Plugins

    and press Enter.

  2. Copy MCPBridge2021.lua into that folder.

  3. Open 2021 Roblox Studio (Octane).

  4. Check your Output window in Studio; you should see:

    [MCP 2021] Bridge initialized. Connecting to http://127.0.0.1:3021 ...

    (Note: The plugin automatically enables HttpService on launch).


2. Install Dependencies

Open your terminal (PowerShell or Command Prompt) in the repository folder and run:

npm install

๐Ÿ”Œ Connect to Your AI Client

Option 1: OpenCode

Add this to opencode.json (or ~/.config/opencode/opencode.jsonc):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "Roblox_2021": {
      "type": "local",
      "command": ["node", "C:/path/to/server.js"],
      "enabled": true
    }
  }
}

Option 2: Claude Desktop

Add this to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "roblox-2021": {
      "command": "node",
      "args": ["C:/path/to/server.js"]
    }
  }
}

Option 3: Cursor

In your project folder, create .cursor/mcp.json (or add in Cursor Settings > Features > MCP):

{
  "mcpServers": {
    "roblox-2021": {
      "command": "node",
      "args": ["C:/path/to/server.js"]
    }
  }
}

Option 4: Codex CLI

Run in your terminal:

codex mcp add roblox-2021 -- node "C:/path/to/server.js"

Option 5: Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "roblox-2021": {
      "command": "node",
      "args": ["C:/path/to/server.js"]
    }
  }
}

Option 6: Claude Code CLI

Run in your terminal:

claude mcp add roblox-2021 -- node "C:/path/to/server.js"

๐Ÿ›  Available Tools for the AI

Tool

Description

screen_capture

Captures a high-resolution screenshot of the Studio window or active screen for visual AI inspection.

execute_luau

Executes arbitrary Luau code in Studio's edit context with undo waypoint tracking.

get_tree

Traverses and returns the DataModel hierarchy (game.Workspace, game.StarterGui, etc.).

read_script

Reads the complete .Source text of any Script, LocalScript, or ModuleScript.

write_script

Writes or overwrites the .Source of any script with automatic undo checkpoints.

create_instance

Creates new instances (Part, Model, ScreenGui, etc.) with initial properties.

delete_instance

Destroys instances in the DataModel safely.

get_output_log

Retrieves recent output log messages from Studio.

script_grep

Global search across all scripts in the place for matching text/regex lines.

inspect_instance

Inspects detailed properties, children, attributes, and tags of any instance.

audit_scene_assets

Scans all 3D scene objects (sounds, meshes, decals, particles, clothing) and reports external asset IDs.

start_playtest

Starts a playtest in Studio (mode: "play" [F5] or "run" [F8]).

stop_playtest

Stops the active playtest simulation and returns to Edit mode (Shift+F5).

run_playtest

Autonomous AI test: launches test, monitors for console errors over N seconds, takes gameplay screenshot, and returns to Edit mode.


๐Ÿ“„ License

MIT License

Available Tools

19 tools
audit_scene_assetsA

Scans all 3D objects in the scene (sounds, meshes, decals, animations, clothing) and reports all external asset IDs

Inputs: service.

create_instanceD

Creates a new Instance in the DataModel

Inputs: className (required), name, parent, properties.

delete_instanceC

Deletes an instance from the DataModel

Inputs: path (required).

execute_luauB

Executes Luau code in 2021 Roblox Studio edit context and returns output

Inputs: code (required).

get_output_logC

Retrieves recent messages from Studio's output log

Inputs: limit.

get_studio_stateB

Gets the state of 2021 Roblox Studio (Edit/Play mode)

Inputs: no named parameters.

get_treeC

Scans and returns the hierarchy tree starting at root path

Inputs: root, maxDepth.

inspect_instanceB

Inspects detailed properties, children, attributes, and tags of an instance

Inputs: path (required).

list_roblox_studiosB

Lists connected 2021 Roblox Studio instances

Inputs: no named parameters.

multi_editC

Edits or creates scripts in Studio

Inputs: edits (required), file_path (required).

read_scriptC

Reads the complete Source text of a Script

Inputs: path (required).

run_playtestA

Runs an autonomous test: starts playtest, monitors for runtime errors over duration, captures screenshot, and stops test

Inputs: mode, duration, capture_screen.

screen_captureB

Captures a screenshot of the 2021 Roblox Studio / Aisaka window

Inputs: no named parameters.

script_grepB

Searches all Scripts, LocalScripts, and ModuleScripts across the place for a text pattern or keyword

Inputs: pattern (required), root, max_matches, case_sensitive.

script_readC

Reads a script from the Roblox workspace

Inputs: target_file (required).

search_game_treeC

Explore the Roblox game hierarchy tree

Inputs: path, max_depth.

start_playtestC

Starts a playtest in Roblox Studio (F5 for Play Solo, F8 for Run / Server Simulation)

Inputs: mode.

stop_playtestA

Stops the active playtest simulation in Roblox Studio and returns to Edit mode (Shift+F5)

Inputs: no named parameters.

write_scriptC

Updates or overwrites the Source text of an existing Script in Studio

Inputs: path (required), source (required).

Tool Schema Changelog

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

Loading tool schema changelogโ€ฆ

    TDQS

    C2.7/5.0

    Scored across 19 tools

    Disambiguation2/5

    read_script and script_read are near-duplicates, get_tree and search_game_tree overlap, write_script and multi_edit both edit/create scripts, and execute_luau can subsume many specific operations. These unclear boundaries create real misselection risk.

    Naming Consistency3/5

    All tools use snake_case, but the verb/noun ordering is inconsistent: read_script vs script_read, get_tree vs search_game_tree, write_script vs multi_edit, and script_grep. This is readable but not a predictable pattern.

    Tool Count3/5

    19 tools is on the heavy side for this bridge, and several overlapping/duplicate tools inflate the count. The domain is complex enough to justify many tools, but consolidation would make the set cleaner.

    Completeness4/5

    Core coverage is strong: connection/state, script read/write/edit/search, instance create/delete/inspect, output logs, scene asset audit, and playtest lifecycle. Direct property/attribute setters and instance reparenting are absent, but execute_luau provides a workaround.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Connects Roblox Studio to AI coding editors via the Model Context Protocol, allowing AI agents to understand and interact with live Roblox Studio sessions through scene manipulation, scripting, and optional Roblox Open Cloud API integration.
      66
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to control Roblox Studio by running Luau code, creating and editing instances, reading the scene tree, and managing scripts via an MCP server with a long-polling plugin bridge.
      MIT