roblox-mcp-difz
Provides tools for controlling, reversing, and exploiting Roblox games, including instance tree exploration, property inspection, visual tracking, input simulation, environment manipulation, memory hooking, network traffic, and state bypass.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@roblox-mcp-difzlist all instances in the Roblox game"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
roblox-mcp-difz
The Universal Model Context Protocol (MCP) server for Roblox game control, reverse engineering, and multi-session automation.
Works out-of-the-box with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code (Cline/Continue), or any MCP-compliant AI client. Packed with 80 streamlined tools (and full backward-compatible legacy aliases), non-blocking remote interception, cross-game teleport persistence, and multi-instance orchestration.
Quick Start (30 Seconds)
# 1. Install globally
npm install -g roblox-mcp-difz
# 2. Configure your AI client (Claude Code, Cursor, etc.)
rblx-mcp setup
# 3. Start the MCP server
rblx-mcp start
# 4. Inject loader into your Roblox executor (Real, Solara, Wave, Delta, etc.)
loadstring(game:HttpGet("http://127.0.0.1:28429/mcp.lua"))()Open the Command Deck Dashboard in your browser at http://localhost:28429 to monitor active clients, run interactive tool tests, and view live telemetry.
Related MCP server: Roblox Executor MCP
Architecture Overview
┌──────────────────────────────────────────────────────────────────┐
│ AI Client (Claude / Cursor) │
│ Calls any tool with optional worker_id/pid │
└──────────────────────────────┬───────────────────────────────────┘
│ MCP JSON-RPC 2.0 (HTTP / Stdio)
▼
┌──────────────────────────────────────────────────────────────────┐
│ roblox-mcp-difz Server (:28429) │
│ │
│ ┌─────────────────────────┐ ┌────────────────────────────┐ │
│ │ Multi-Session Router │ │ Server Management APIs │ │
│ │ Target PID/Worker or │ │ /api/tools, /api/sessions │ │
│ │ Broadcast to ALL window │ │ /api/processes, /health │ │
│ └───────────┬─────────────┘ └────────────────────────────┘ │
│ │ │
│ ├──────────────────────┐ │
│ ▼ ▼ │
│ ┌─────────────────┐ ┌──────────────────┐ │
│ │ WebSocket (/ws) │ │ HTTP Stream │ │
│ │ Realtime Push │ │ Long-Poll Fallback│ │
│ └────────┬────────┘ └────────┬─────────┘ │
└──────────────┼──────────────────────┼────────────────────────────┘
│ │
▼ ▼
┌──────────────────────────────────────────────────────────────────┐
│ Roblox Game Clients (public/mcp.lua) │
│ • Non-blocking __namecall hook with setnamecallmethod │
│ • Teleport autoexecute via queue_on_teleport │
│ • Dual-transport worker (WebSocket + Stream) │
│ • 111 tools: DataModel, Remotes, GUI, Input, Memory, Filesystem │
└──────────────────────────────────────────────────────────────────┘Key Capabilities
1. Non-Blocking Remote Interception (spy-remotes)
Transparent network pass-through:
__namecallrestoressetnamecallmethod(method)before forwarding to engine C handlers.Zero frame drops: Argument cloning and serialization execute asynchronously in background tasks.
Clean varargs & return handling:
RemoteFunction:InvokeServerreturns the exact server response back to the game thread without freezing.
2. Cross-Game Teleport Autoexecute (set-autoexecute)
Automatically re-injects
mcp.luaacross world hops, matchmaking, and dimensions usingqueue_on_teleport.Hooks
Players.LocalPlayer.OnTeleportand automatically re-arms in the new place.Toggle anytime via AI tool call (
set-autoexecute) or web dashboard switch.
3. Universal Multi-Session Orchestration
Run as many simultaneous Roblox instances as you want (multi-account farming, alt control, multi-boxing).
Target specific instance: Pass
worker_id(orpid,session_id) to any tool:{ "name": "execute-script", "arguments": { "pid": 11360, "code": "print('hello from PID 11360')" } }Automatic Multi-Session Fanout: Omit target arguments to execute the tool across all connected instances concurrently. Results are returned in a table per session:
{ "multi_session": true, "total_sessions": 2, "results": { "PlayerOne_11360": { "success": true, "pid": 11360, "result": { "health": 100 } }, "PlayerTwo_14200": { "success": true, "pid": 14200, "result": { "health": 85 } } } }
4. Dual Transport (WebSocket & Stream)
Two interchangeable transport engines carry identical task/result JSON:
WebSocket (
ws://localhost:28429/ws): Bidirectional low-latency connection for executors supporting UNCWebSocket.connect.Stream (
http://localhost:28429/stream/*): HTTP long-polling fallback for executors with non-standard sockets (e.g. Real__on_message_bind).Auto-fallback: In
automode, clients attempt WebSocket and automatically switch to Stream if the connection fails.
Tools Overview (80 Streamlined Tools)
Every tool accepts an optional workerId as its first parameter (if omitted, executes across all connected game instances). Legacy aliases are retained so all existing scripts continue functioning. Below is a categorized index:
Category | Key Tools | Highlights |
Networking (6) |
| Non-blocking RPC surveillance, argument spoofing, remote blocking & killswitch |
Player & Character (7) |
| Full player state, noclip, walkspeed, CFrame teleport, anti-kick hooks |
DataModel & Tree (10) |
| Instance search by ClassName, spatial radius queries, nil realm scanner |
Properties & Lifecycle (5) |
| Multi-property batch read/write, instance cloning, dynamic object creation |
GUI & Screen (7) |
| OCR-like text extraction, ESP billboards, coordinate projection, GUI hierarchy |
Input Simulation (10) |
| Hardware-like VirtualInputManager, smooth camera tweening, WASD pathing |
Scripting & Bytecode (8) |
| Raw Luau execution, script decompilation, environment inspection, sandbox audit |
Metatables & Memory (10) |
| Function detouring, closure upvalue/constant inspection, garbage collector scanning |
Filesystem & Assets (6) |
| Executor workspace filesystem read/write, custom sound/image asset loading |
Server & Process (11) |
| Windows process matrix, HD screenshot, 30fps MP4 recording, live transport toggle |
Command Line Reference
# Start server in foreground with interactive menu
rblx-mcp start
# Run server as hidden background daemon with system tray icon
rblx-mcp daemon
# Run in Stdio mode (for CLI MCP clients like Claude Code without HTTP)
rblx-mcp stdio
# Run setup wizard for AI platform configuration
rblx-mcp setup
# Stop running background server
rblx-mcp stop
# Check for latest updates
rblx-mcp updateEnvironment Variables
MCP_PORT: HTTP/WebSocket server port (default:28429).MCP_TRANSPORT: Initial transport mode (auto,ws,stream). Default:auto.MCP_HOST: Custom bind address (default:127.0.0.1).
Server Management Endpoints
Endpoint | Method | Purpose |
| GET | Command Deck Dashboard (Obsidian Cybernetic Web UI) |
| POST | JSON-RPC 2.0 endpoint for MCP clients |
| GET | Raw client script for executor |
| GET | System uptime, process status table ( |
| GET | Complete catalog of 111 tools with schemas and category tags |
| GET | Active worker sessions with latency, player names, and place titles |
| GET | Process list with connected status table ( |
| GET/POST | Query or switch transport mode ( |
| GET/POST | Query or toggle teleport autoexecute state |
| GET | 38-function UNC capability breakdown |
| POST | Execute tool call directly via HTTP JSON |
License
MIT © Difz25x
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP registry & directory: search, find & install 31k+ MCP servers & tools. Catalog and marketplace.
MCP server for developer documentation, generated by doc2mcp.
MCP server for tabletopsimulator documentation, generated by doc2mcp.
MCP server for dev documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server for Roblox that provides tools to execute Luau code, inspect and modify game instances, teleport players, fire remote events, and stream client logs in real-time via a web dashboard.26139 npm10MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that allows AI agents to execute code, inspect scripts, spy on remotes, and interact with a running Roblox game client.139 npm20MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables AI agents to execute Lua code, inspect scripts, spy on remotes, and interact with running Roblox game clients, including support for mobile executors on Android and iOS.139 npm1MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that enables AI agents to interact with a running Roblox game client, including code execution, script inspection, remote spying, and GUI automation.139 npm7MIT