roblex-studio-mcp-server

MCP.Pizza Chef: dmae97

The Roblex Studio MCP Server is a standalone implementation of the Model-Context-Protocol designed for seamless integration with Roblox Studio and large language models. It supports secure, scriptable AI-driven workflows with features like automatic Roblox Studio launch, multiple transport modes, and built-in support for Claude and Anthropic Claude. It offers robust security measures and extensibility for custom tools, making it ideal for developers building AI-enhanced Roblox experiences.

Use This MCP server To

Integrate AI-driven workflows directly within Roblox Studio Automatically launch Roblox Studio with MCP server startup Use multiple transport modes for flexible LLM communication Securely connect LLMs with Roblox Studio using TPA and sanitization Extend MCP server with custom tools and resources Leverage Claude and Anthropic Claude LLMs out-of-the-box Run MCP server instantly via npx one-line command

README

Roblex Studio MCP Server

Roblex Studio Model-Context-Protocol Server

The Roblex Studio MCP Server is a standalone server implementation of the Model-Context-Protocol specification, designed specifically for integration with Roblox Studio and LLMs. It enables seamless, secure, and scriptable AI-driven workflows in Roblox Studio via a unified protocol.

Features

  • npx One-line Install/Run: Launch instantly with npx roblex-mcp
  • Automatic Roblox Studio Launch: MCP starts and auto-launches Roblox Studio (Windows)
  • Full MCP Implementation: All core Model-Context-Protocol features supported
  • Multiple Transport Modes: SSE or STDIO for flexible integration
  • Claude Desktop/Anthropic Claude Support: Out-of-the-box integration
  • Security: TPA protection, input sanitization, rate limiting, CORS, and more
  • Extensible: Easily add custom tools/resources

Quick Start

Prerequisites

  • Node.js 18 or higher (Node.js 20+ recommended)
  • Roblox Studio installed (Windows; see below for launch path)
  • npm (bundled with Node.js)

Run with npx

npx roblex-mcp
  • On first launch, MCP will start and attempt to open Roblox Studio automatically.
  • If your Roblox Studio is not in a standard location, set the ROBLOX_STUDIO_PATH environment variable in your .env file or system environment.

Env Setup

Copy and edit the example environment file:

cp .env.example .env

Edit .env as needed (see below for ROBLOX_STUDIO_PATH).

Roblox/Open Cloud API Key Setup

To enable automated scripting and asset management, you must supply a valid Roblox Open Cloud API Key.

  1. Go to the Roblox Open Cloud dashboard.

  2. Click Create API Key, select the required permissions (e.g., "Write Assets", "Read Universe Data"), and copy your generated API key.

  3. Place this key in your .env file:

    ROBLOX_API_KEY=your_api_key_here
    ROBLOX_OPEN_CLOUD_API_KEY=your_open_cloud_api_key_here
    
    • Never share your secret keys. Treat them like passwords.
    • Optionally, set ROBLOX_OPEN_CLOUD_UNIVERSE_ID for universe-scoped operations.
  4. Restart MCP after editing .env to apply changes.

See Roblox Open Cloud documentation for more details.

Environment Variables

All configuration can be controlled with a .env file. Key variables:

  • PORT: Server port (default: 3001)

  • TRANSPORT_MODE: 'sse' or 'stdio' (default: 'stdio')

  • CLAUDE_DESKTOP_ENABLED: Claude Desktop integration (default: true)

  • ROBLOX_STUDIO_PATH: Full path to RobloxStudioBeta.exe (optional). Example:

    ROBLOX_STUDIO_PATH=C:\Users\USER\AppData\Local\Roblox\Versions\version-04a222f011414c81\RobloxStudioBeta.exe
    
  • ROBLOX_API_KEY, ROBLOX_OPEN_CLOUD_API_KEY: Your API keys from Roblox Open Cloud; required for most server features.

See .env.example for all options.

How It Works

  • npx roblex-mcp:

    • Starts the MCP server (transports, tools, API, security, etc)
    • Launches Roblox Studio automatically
    • Can be integrated with Claude Desktop, Open Cloud, etc.
  • Custom Tools and Resources:

    • Add your own by extending the src/tools and src/resources directories.

Troubleshooting

  • Roblox Studio does not open?

    • Set ROBLOX_STUDIO_PATH in your .env to the full path of your RobloxStudioBeta.exe.
  • API Key errors or "Unauthorized"?

    • Ensure your API keys are valid, have the correct permissions, and are set in .env.
  • Permission errors or port conflicts?

    • Ensure you have privileges to bind the server port, or choose a non-standard port in .env.
  • TypeScript/Module errors?

    • Run npm install and npm run build if developing locally, but npx users do not need this.
  • Claude Desktop not detected?

    • Ensure CLAUDE_DESKTOP_ENABLED=true in .env and that Claude Desktop is running.

Development

Clone, install, and build:

git clone https://github.com/dmae97/roblex-studio-mcp-server.git
cd roblex-studio-mcp-server
npm install
npm run build
npm start

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE


© 2025 Roblex Studio MCP Server Contributors

roblex-studio-mcp-server FAQ

How do I start the Roblex Studio MCP Server?
You can start it instantly using the command 'npx roblex-mcp', which also auto-launches Roblox Studio on Windows.
What security features does the Roblex Studio MCP Server provide?
It includes TPA protection, input sanitization, rate limiting, CORS, and other security measures to ensure safe LLM integration.
Can I use different transport modes with this MCP server?
Yes, it supports multiple transport modes including Server-Sent Events (SSE) and STDIO for flexible integration.
Is the Roblex Studio MCP Server extensible?
Yes, you can easily add custom tools and resources to extend its functionality.
Which LLMs are supported out-of-the-box?
It supports Claude Desktop and Anthropic Claude, and can be integrated with other LLMs like OpenAI and Gemini.
Does the MCP server automatically launch Roblox Studio?
Yes, on Windows systems, the MCP server automatically launches Roblox Studio upon startup.
Is the Roblex Studio MCP Server a full implementation of MCP?
Yes, it supports all core features of the Model-Context-Protocol specification.
Can I run the MCP server on platforms other than Windows?
The automatic Roblox Studio launch is Windows-specific, but the MCP server itself can run on other platforms with manual Roblox Studio launch.