Roblox-MCP
An 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.
README
<p align="center"> <img src="docs/banner.svg" alt="Roblox Executor MCP" width="900"/> </p>
Roblox Executor MCP Server
An advanced Model Context Protocol (MCP) server that allows AI agents to interact with running Roblox game clients. This server enables code execution, script decompilation, instance hierarchy querying, remote event spying and firing, and real-time log streaming.
π Key Features
- Code Execution β Run Luau code on the client dynamically, with optional return value yielding.
- Script Inspection β Decompile scripts, search across sources, and perform semantic searches.
- Instance Search & Manipulation β Use CSS-like selectors, traverse the instance hierarchy tree, and query dynamic properties/attributes.
- Remote Spy & Fire β Intercept, log, block, ignore, and fire
RemoteEvents/RemoteFunctions(backed by Cobalt). - Real-Time Log Streaming β Capture client console outputs dynamically via WebSockets and view them live.
- GUI Interaction β Automate input by clicking buttons and typing text into UI elements.
- OS Integrations β Retrieve list of Roblox processes and capture client window screenshots (Windows only).
- Multi-Client Routing β Coordinate between multiple running clients with automatic Primary/Secondary promotion and relaying.
- Local Script Hub β Save, load, and execute pre-configured Luau scripts.
π₯οΈ Local Web Dashboard
The Roblox Executor MCP includes a rich, responsive local web dashboard hosted at:
http://localhost:16384/
Use the dashboard to monitor connected clients, debug executables, and inspect games:
- Console Tab (New): A real-time stream of the Roblox client console logs (
LogService.MessageOut), color-coded by log levels: Info (White), Warning (Yellow), and Error (Red). - Executor Tab (New): A developer-focused suite to write Luau code directly, toggle "Get Return Value" to yield and print results, and instantly execute scripts saved in the
user-scripts/hub. - Tools Tab: A control center to run all registered MCP tools manually and review inputs/outputs.
- Scripts Tab: Explore local and decompiled scripts, search sources, index game hierarchies, and set up semantic vector search.
π οΈ Complete Tool Catalog
The server registers a comprehensive list of tools for connected AI agents:
1. Client Management
list-clientsβ Lists all currently connected Roblox game clients.set-active-clientβ Selects the active target client for subsequent tool operations.
2. Execution Tools
executeβ Executes raw Luau code on the active Roblox client.execute-fileβ Executes a Luau file from the server's local path.teleport-player(New) β Relocates the player to specific coordinates, offsets, or target players.set-player-property(New) β Modifies character stats (e.g., WalkSpeed, JumpPower, HipHeight, Gravity) or toggles Noclip.
3. Inspection & Search Tools
get-script-contentβ Retrieves the source/decompiled code of a specific script.get-data-by-codeβ Queries client metadata using a Luau lookup script.get-console-outputβ Returns the history of client console prints and warnings.search-instancesβ Finds instances using selectors or names.get-descendants-treeβ Dumps the child hierarchy tree of a specific instance.script-grepβ Performs text searches across all loaded script sources.semantic-search-scriptsβ Performs vector-based search on script contents (requires Ollama setup).get-game-infoβ Queries game details (e.g., PlaceId, JobId, Player count).get-executor-environment(New) β Returns a checklist of custom APIs supported by the connected Roblox executor (e.g.,getgc,hookfunction).get-instance-properties(New) β Probes attributes, CollectionService tags, and properties of an instance dynamically.
4. Remote Spy & Network Tools
ensure-remote-spyβ Starts the Cobalt-backed remote spy pipeline.get-remote-spy-logsβ Retreives captured remote calls.clear-remote-spy-logsβ Clears captured logs.block-remoteβ Blocks a specific RemoteEvent or RemoteFunction.ignore-remoteβ Filters a remote out of the active log stream.fire-remote(New) β Fires a RemoteEvent or invokes a RemoteFunction. Supports dynamically evaluated arguments starting withloadstring:.
5. GUI & OS Tools
click-buttonβ Fires clicks on specific GUI buttons on the screen.type-text-boxβ Focuses and sends text inputs to game TextBoxes.list-roblox-windowsβ Lists active Roblox OS window handles.screenshot-windowβ Caps and saves screenshots of the game client (Windows only).
π Prerequisites
- Node.js β₯ 18
- Bun β₯ 1.3 (used for the interactive OpenTUI harness installer)
- Roblox Executor β Any executor supporting
loadstring,request, and (preferably)WebSocket.
β‘ Quick Start
1. Clone the Repository
git clone https://github.com/notpoiu/roblox-executor-mcp.git
cd roblox-executor-mcp
2. Run the Harness Installer
The installer handles server building, configuration generation for your AI client of choice, and prints your loader script:
npm run install:harnesses
[!TIP] If your terminal has issues rendering the interactive OpenTUI picker, run it in plain-text prompt mode:
npm run install:harnesses -- --plain
To automatically place the Roblox loader into the autoexec folder of a detected executor (e.g. MacSploit, or supported Windows executors), run:
npm run getscript -- --autoexec
3. Connect from Roblox
Paste this script into your executor or place it in your autoexec folder:
local bridgeUrl = getgenv().BridgeURL or "localhost:16384"
loadstring(game:HttpGet("http://" .. bridgeUrl .. "/script.luau"))()
Optional Environment Configuration
Configure these globals before running the loader script to customize behavior:
getgenv().BridgeURL = "10.0.0.4:16384" -- Default: localhost:16384
getgenv().DisableWebSocket = true -- Forces HTTP fallback polling
getgenv().DisableInitialScriptDecompMapping = true -- Skips initial project script indexing
βοΈ Client Configuration & Manual Setup
If you prefer to configure your AI interface manually, refer to the guides below:
| Client | Configuration Guide |
|---|---|
| Cursor | Setup Guide |
| Claude Desktop | Setup Guide |
| Claude Code | Setup Guide |
| Codex CLI | Setup Guide |
| Windsurf | Setup Guide |
| Antigravity | Setup Guide |
π οΈ Developer Commands
Maintain, run, or update the server using these project scripts:
- Build the project (compiles TypeScript and copies assets to
dist/):npm run build - Start the server:
npm run start - Update existing install (pulls updates, stops running processes, and rebuilds):
npm run update
π Security & Safe Operation
[!CAUTION] This server allows arbitrary local code execution. Only connect trusted AI clients. Port
16384does not enforce authenticationβnever expose this port to the public internet. For cross-machine or LAN setups, secure connections with a local VPN or an SSH tunnel.
π License
This project is licensed under the MIT License.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.