rbx-mcp-engine

fxrrysalim/rbx-mcp-engine

3.2

If you are the rightful owner of rbx-mcp-engine and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Roblox Studio MCP Server (Ultimate Edition) is a high-performance bridge between Roblox Studio and AI Agents, utilizing WebSocket for real-time communication.

Tools
9
Resources
0
Prompts
0

Roblox Studio MCP Server (Ultimate Edition)

MCP Roblox Rust License

The most advanced, high-performance bridge between Roblox Studio and AI Agents (Cursor, Claude, Windsurf, etc.). Built for speed, reliability, and deep engine access.

🚀 Key Evolution: This engine replaces the traditional HTTP polling mechanism with a persistent WebSocket architecture, enabling zero-latency communication and real-time event listening.


🌟 Features

⚡ Performance & Stability

  • Real-time WebSocket: Instant execution. No more 15-second polling delays found in standard implementations.
  • Auto-Healing Connection: The plugin automatically reconnects if the server restarts. Immortal uptime.
  • Time-Sliced Scanning: Scans massive maps (100k+ parts) without freezing Roblox Studio.

🧠 Intelligence & Vision

  • Deep Engine Awareness: Inspect hierarchy, properties (Lighting, Physics, UI), and hidden attributes.
  • Spatial Radar: Perform Raycasts and Region queries to "see" the 3D world, even invisible objects.
  • Code Analyst: Read script source code and automatically resolve require() dependencies to understand context.

🎮 Control & Reactivity

  • God Mode Execution: Execute privileged Luau code with smart stack trace capturing.
  • Reactive Events: Wait for specific game events (WaitForChild) instead of blind execution.
  • Backend Admin: Manage DataStores directly (Get/Set/Remove) for economy and save system debugging.

🛠️ Toolset Reference (10 Tools)

This server exposes 10 powerful tools to your AI agent:

CategoryTool NameDescription
Logicrun_codeExecute privileged Luau code. Captures print/warn/error output.
Logicread_script_sourceRead script content and resolve module dependencies.
Visionscan_hierarchyScan the game tree (Workspace, Services) with depth control.
Visionget_selectionGet detailed properties of selected objects (Physics, Tags, Attributes).
Visionget_type_definitionQuery the engine for supported properties of a specific Class.
Spatialspatial_queryPerform 3D Raycasts or Region checks to detect objects.
Assetsinsert_modelSearch and insert assets/models from the Roblox Toolbox.
Reactivewait_for_eventPause execution until a specific object appears (Event-driven).
Reactivelisten_to_consoleStream Studio Output/Errors to the AI in real-time.
Backendmanage_datastoreDirect access to DataStoreService for database management.

📦 Installation

Prerequisites

  • Roblox Studio installed.
  • (Optional) Rust Toolchain if building from source.

Quick Start

  1. Download the latest rbx-studio-mcp.exe from the .
  2. Run the executable.
    • It will automatically install the plugin (MCPStudioPlugin.rbxm) to your Roblox Studio Plugins folder.
    • It will display the JSON configuration you need.

⚙️ Configuration

Add the following configuration to your MCP Client's config file (e.g., claude_desktop_config.json, .cursor/mcp.json, or others).

Universal Config:

{
  "mcpServers": {
    "roblox": {
      "command": "C:/Path/To/rbx-studio-mcp.exe",
      "args": ["--stdio"]
    }
  }
}

Note: Replace C:/Path/To/rbx-studio-mcp.exe with the actual path where you saved the executable.


🏗️ Architecture

graph LR
    A[AI Client] <-->|Stdio JSON-RPC| B(Rust MCP Server)
    B <-->|WebSocket| C(Roblox Studio Plugin)
    C -->|Luau| D[Roblox Engine]
  1. AI Client sends a tool request via Stdio.
  2. Rust Server translates this into a WebSocket message.
  3. Roblox Plugin receives the message, executes it in the high-privilege plugin security context, and streams the result back.

🤝 Acknowledgements & Credits

This project is an advanced evolution based on the foundational work from the Official Roblox MCP Server.

We acknowledge the Roblox Team for establishing the MCP protocol standards for the platform. This fork diverges by implementing a full WebSocket architecture (replacing HTTP polling) and expanding the toolset from 2 basic tools to 10 advanced engineering tools.


📄 License

MIT License. Free to use, modify, and distribute.