Raven Roblox MCP
Summary: Raven Roblox MCP bridges Codex and other MCP clients to an authorized, live Roblox client through a private loopback-only daemon, letting you inspect, analyze, record, and (when intended) modify a running game.
Bridge & client management —
status,list_clients,set_active_client,dashboard_info, plusperformance_modeandconsole_streamtuning. Every client-scoped tool accepts an optionalclientIdand defaults to the active client.Live world/player inspection (read-only) —
smart_snapshot(game, player, nearby instances, UI, console in one round trip),get_game_info(with real Marketplace place names),get_player_state,query_instances,inspect_instance,get_tree,dump_visible_ui,get_console.Live control and mutation (destructive/state-changing) —
execute_luau,click_ui,teleport,interact(ProximityPrompt/ClickDetector/Touch),set_properties(atomic with rollback),batch(up to 50 sequenced or parallel ops with stop-on-error),wait_for_instance,wait_for_property.Recording and replay —
recording_control,get_recording,replay_recording(up to 100 calls, original or different client),remote_monitor,get_remote_events,replay_remote_eventfor FireServer/InvokeServer traffic.Authorized reverse engineering —
index_scripts,search_scripts,analyze_script,disassemble_script(Luau bytecode decode, pseudo code, CFG),explore_closure(closures, constants, upvalues),build_script_graph(cross-script dependency graph),infer_remote_schemas(argument-schema clustering).Snapshots and diffing —
capture_re_snapshot,list_re_snapshots(up to 20 retained),diff_re_snapshotsto compare script hashes, remote schemas, and selected runtime state.Performance and locality —
benchmark(bridge latency, traversal throughput),profile_runtime(FPS, frame time, memory, ping, class counts),list_roblox_windowsandscreenshot_window(local Windows PNG capture returned as MCP image content).Safety signals — tools are annotated
readOnlyHint,idempotentHint, anddestructiveHint; state-changing calls (Luau execution, UI clicks, teleports, property mutation, remote replay) are explicitly flagged, and multi-client setups require an explicit target.
Provides tools for interacting with a live Roblox client, including game and player inspection, property mutation, UI interaction, remote monitoring, and bytecode analysis.
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., "@Raven Roblox MCP What's the current game state and which players are online?"
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.
Raven Roblox MCP
A clean-room Roblox MCP bridge owned by N3zuui. Raven connects Codex and other MCP clients to an authorized live Roblox client through a private loopback-only daemon.
Install in one command
Requirements: Windows, Node.js 22+, Codex, Roblox, and an executor you are authorized to use.
npx -y github:valrinx/raven-roblox-mcp#main setup codexThe installer configures raven_roblox, starts the shared daemon, and prints this connector loader:
loadstring(game:HttpGet("http://127.0.0.1:17654/loader.luau"))()Restart Codex once after initial setup. That is the entire installation—no clone, manual build, JSON editing, or separate server per chat.
Full Codex instructions: docs/CODEX.md. Problems: docs/TROUBLESHOOTING.md.
Related MCP server: Roblox-MCP
Why Raven is different
One singleton daemon on
127.0.0.1:17654; every Codex chat/agent shares the same Roblox connection.A tiny STDIO proxy auto-starts or attaches to the daemon, eliminating port conflicts between agents.
Accurate public place/experience names through cached
MarketplaceService:GetProductInfo(game.PlaceId)metadata. Internalgame.Nameis exposed separately asdataModelName.Smooth-by-default connector: delayed startup, duplicate-launch guard, 2 ms cooperative work slices, 15-second heartbeat, and error-only console forwarding.
Persistent per-user loopback token, so the connector automatically reconnects after daemon restarts.
No telemetry, analytics, remote updater, external decompiler, or third-party Roblox API calls.
Multiple Roblox clients with explicit active-client routing.
Stateless Streamable HTTP MCP endpoint at
/mcp, plus STDIO compatibility through the proxy.
Architecture
Codex chat A ─┐
Codex chat B ─┼─ STDIO proxies ── Streamable HTTP /mcp ─┐
Codex agent C ┘ │
▼
Raven daemon :17654
│ │
/loader.luau│ │/dashboard
▼ ▼
Roblox connector Browser UIThe daemon binds only to 127.0.0.1. Roblox receives the WebSocket token from the locally served connector; the token is never committed to Git.
Useful commands
# Configure Codex and start Raven
npx -y github:valrinx/raven-roblox-mcp#main setup codex
# Check server, MCP endpoint, and connected Roblox clients
npx -y github:valrinx/raven-roblox-mcp#main doctor
# Print only the Roblox loader
npx -y github:valrinx/raven-roblox-mcp#main loader
# Run the shared daemon visibly
npx -y github:valrinx/raven-roblox-mcp#main daemonDashboard: http://127.0.0.1:17654/dashboard
The local dashboard includes a client-aware overview, script indexing/search and runtime inspection, bounded semantic-alias controls, a schema-driven MCP tool runner, daemon log history, and the selected client's Roblox developer console. When more than one client is connected, client-scoped calls require an explicit dashboard target. Tools marked as state-changing require confirmation; remote replay is always labeled destructive and confirmed separately. Daemon logs are kept in a 500-entry in-memory ring and cleared when the daemon stops. Script search and semantic aliases remain local and in memory; Raven does not use an external embedding service or decompiler.
Capabilities
Live inspection and control
Smart snapshots of game, player, nearby world, visible UI, and console
Bounded instance search, property inspection, and hierarchy trees
Visible UI dump and button activation
Player state, teleport, interaction, waits, benchmarks, and screenshots
Atomic typed property mutations with rollback
Sequential or parallel batches of up to 50 operations
Authorized reverse engineering
Unified bounded behavior traces for transient instance lifecycle, selected properties, remote calls, console entries, and explicit experiment markers
Script indexing, search, bytecode metadata, closure/constants/prototype inspection
Luau v3-v12 bytecode parser with Roblox opcode-decoder auto-detection
Instruction disassembly, register-oriented pseudo code, and control-flow graphs
Evidence-scored VM-obfuscation signals and snapshot-driven regression plans
Unified bounded behavior graph across scripts, callsites, remotes, UI, and state effects
Controlled-repeat scoring against no-action runs, with explicit non-causal semantics
Direct controlled comparison of completed causal sessions and their runtime fingerprints
Bounded semantic alias registry with hash history and conservative conflict resolution
Static virtual-dispatch slices with PC ranges and effect-boundary graphs
Automatic hypothesis-session creation from changed snapshot regions
Runtime-to-static attribution with ranked effect PCs and explicit non-exact semantics
Time-decayed graph confidence and bounded evidence-refresh queues
Deduplicated hypothesis sessions generated from graph refresh queues
Executor/runtime capability audit with readiness, blind spots, and evidence fallbacks
Evidence-aware next-strategy recommendation with explicit stop conditions and no automatic action
Source-line reconstruction from Luau relative/baseline debug metadata when present
Optional debug local/upvalue names with PC lifetimes and line-aware static candidate ranking
Ambiguity-aware PC confidence separated from higher-confidence source-line attribution
Bounded whole-program nested prototype analysis with explicit child/closure graphs
Bounded restart-resilient prototype registry that preserves genuine serialized debug-name evidence without inventing names for anonymous functions; its local atomic store keeps hashes and diff fingerprints only (25 scripts, 200 prototypes/version, 10 versions, 10 MB), never bytecode, instructions, disassembly, or runtime traces
Differential whole-program fingerprints across bytecode hashes (opcode/effect/VM changes), with anonymous matches explicitly marked tentative
Read-only visible UI → registered closure → script/source evidence graphs when the executor exposes signal connections
Runtime source-line correlation from registered UI closures to ambiguity-aware serialized prototype candidates
Same-line static effect-boundary candidates extending UI evidence paths through prototype to CALL/NAMECALL/API boundaries without claiming execution
Bounded behavioral closure constants and direct/shallow captured Instance upvalues, inspected without invoking registered callbacks
Class-evidenced closure capture semantics for tools, UI, modules, remotes, and generic instances (for example hotbar button closures capturing their corresponding Tool)
Controlled UI observation orchestration (
prepare → external/user action → finish) that combines structural UI evidence with causal-session traces while never clicking on the user's behalfBefore/after visible-UI fingerprints and ScreenGui-level transient monitoring so panels created or revealed by an action are observable beyond the clicked button itself
Comparison-eligibility guard: controls are explicit, while action runs require confirmed/direct action evidence before they can affect repeatability scores
Passive UI signal experiments that never activate the target: temporary
GuiButton.Activatedlisteners produce direct action evidence, bounded no-signal control windows, daemon-restart hydration from connector memory, and role-validated repeated-action/control comparisonConnector and daemon hydration retain up to 20 passive UI captures, matching the maximum size of one experiment plan; older evidence across multiple plans remains intentionally bounded and may be reported unavailable
Connector reload/stop cancels armed captures and the active causal session before disconnecting, while experiment plans bind to the exact client/place/game/job origin so evidence cannot cross a teleport or server-session boundary accidentally
UI experiment precondition fingerprints that reject comparisons across different effect-root states (for example opening versus closing the same toggle button), plus a bounded action-arm timeout to prevent indefinitely stale baselines
Root-scoped visible-UI collection for experiment baselines, so unrelated large interfaces cannot exhaust the global item budget before the target ScreenGui is fingerprinted
Opt-in, local-only high-confidence evidence summaries with an allowlisted schema, 100-record/1 MB bounds, atomic replacement with in-memory rollback on write failure, restart recovery, explicit per-ID deletion, and no raw traces, console output, bytecode, or UI dumps
A restart-resilient daemon-local UI experiment orchestrator that freezes the initial precondition, interleaves controls/actions, emits exact passive-capture arguments, and accepts only ordered finished captures whose path, role, eligibility, and precondition all match; its bounded local file contains plan metadata and capture IDs only, never raw evidence, failed writes roll memory back, and attribution stays gated until every ID is available or explicitly reconciled from matching connector evidence
One-step experiment advancement: control windows arm, finish, normalize, and attach automatically without activating UI; action windows persist as pending and explicitly wait for one real user activation before the next advance. Cancel cleans pending connector state, and completed/cancelled plans support transactional exact-ID deletion
Long-lived UI observations default to structural/UI evidence only; remote serialization requires explicit opt-in, and behavior traces restore only remote-monitor state they enabled themselves
Passive
Activatedcapture with a temporary listener and automatic short causal window; Raven observes the real user action but never invokes the buttonControlled comparison of repeated UI-action observations against no-action controls across remote, instance, state, and structural UI fingerprints
Evidence-completeness and uncertainty audit separating executor capability from current observations, freshness, ambiguity, hard limits, and prioritized minimal recapture actions
Conservative VM classification using descriptive debug names and weak slices as counter-evidence
Capability preflight with actionable stale daemon/connector diagnostics
Status-level compatibility report for daemon version, connector version, and missing core capabilities
Evidence-scored cross-script dependency graph
Bounded remote monitoring, argument-schema clustering, replay, and snapshots/diffs
Evidence-scored remote callsite attribution using the calling script and a bounded runtime stack when the executor exposes those APIs
find_remote_callsitesgraph linking captured remotes to runtime callsites and exact or candidate indexed scripts with inspectable confidence/evidenceSemantic symbol suggestions derived from paths, attributed remotes, and bounded runtime constants; suggestions are explicitly never claimed as original source identifiers
Runtime FPS, memory, ping, class-count, and traversal profiling
Evidence-driven behavior trace
Use behavior_trace_control when an object or effect may exist for only a few
frames, or when one action needs to be correlated with remote traffic:
Start a trace with narrow roots such as
game/Workspace/RedShowand select only the properties needed for the hypothesis.Add a marker immediately before the authorized test action.
Perform the action once.
Read
get_behavior_traceincrementally and stop the trace.
The trace is retained only in bounded client memory (100–5,000 events). Instance creation/removal records include lifetime when Raven observed both boundaries. Starting a new trace disconnects prior trace listeners; stopping or unloading the connector cleans them up.
Use causal_session_control to wrap one controlled experiment. start captures
the before snapshot and opens a trace; mark records an action boundary without
performing the action; finish captures after state, closes the trace, computes
the snapshot diff, and groups observations into marker windows. Results explicitly
label temporal correlation as non-causal until controlled repetition or direct
callsite evidence supports a stronger conclusion.
The daemon-local hypothesis tools encode Raven's troubleshooting guardrails:
every attempt requires current evidence, an unchanged strategy cannot be retried
without new evidence, one strategy is limited to two attempts, failures require
an updated hypothesis, and three distinct failed strategies move the session to
review_required instead of permitting more guesses. Sessions remain bounded to
20 and survive Roblox connector reconnects while the daemon stays running.
Pseudo code is an evidence-oriented representation, not claimed source recovery. Original identifiers, comments, formatting, and some high-level constructs do not exist in bytecode.
Recommended agent workflow
Call
status, thenlist_clients.Use
smart_snapshotfor initial orientation.Narrow with
query_instances,inspect_instance,get_tree, ordump_visible_ui.Use
batchfor related reads.Use mutation and remote-replay tools only when a live change is explicitly intended.
Build from source
git clone https://github.com/valrinx/raven-roblox-mcp.git
cd raven-roblox-mcp
npm ci
npm run check
npm run privacy:audit
npm auditRun locally:
npm startSecurity and scope
Raven is intended only for experiences, clients, and accounts you own or are explicitly authorized to test. execute_luau, remote replay, teleport, UI interaction, and property mutation can change live client state. See SECURITY.md for the complete security model.
Ownership and license
Raven's Roblox bridge, RPC protocol, tool schemas, security limits, bytecode analysis, and connector were developed as a clean-room implementation. Runtime dependencies are the official MCP SDK, Zod, and ws.
Copyright © 2026 N3zuui. Source-available for lawful use and private modification; redistribution, resale, relicensing, and removal of attribution are restricted. See LICENSE.
Available Tools
42 toolsanalyze_scriptAnalyze local scriptARead-onlyIdempotent
Analyze one indexed script locally using closure debug info, constants and nested prototypes when executor introspection is available.
Inputs: path (required), clientId, maxDepth, includeUpvalues, +2 more.
batchRun RPC pipelineADestructive
Run up to 50 supported client operations in one round trip, sequentially or concurrently, with optional stop-on-error.
Inputs: operations (required), mode, clientId, timeoutMs, +1 more.
benchmarkBenchmark bridgeBRead-onlyIdempotent
Measure local bridge latency and bounded client-side instance traversal throughput.
Inputs: clientId, scanRoot, scanLimit, iterations.
build_script_graphBuild cross-script graphARead-only
Infer a cross-script dependency graph from exact runtime Instance constants and unique string evidence, with confidence on every edge.
Inputs: clientId, maxScripts, maxClosureDepth.
capture_re_snapshotCapture RE snapshotBRead-only
Capture an in-memory versioned snapshot of script hashes, inferred remote schemas, and selected instance properties.
Inputs: label, clientId, instances, maxScripts, +2 more.
click_uiClick UIB
Activate a visible GuiButton by exact path, exact text, or text substring.
Inputs: all, path, text, clientId, +1 more.
console_streamConfigure console streamingAIdempotent
Control live console forwarding. Errors mode keeps warnings/errors only; all can add overhead in noisy games.
Inputs: mode, clientId.
dashboard_infoDashboard informationARead-onlyIdempotent
Return the private local dashboard URL and its current availability.
Inputs: no named parameters.
diff_re_snapshotsDiff RE snapshotsARead-onlyIdempotent
Diff script versions, remote schemas, and selected runtime state between two in-memory snapshots.
Inputs: afterId (required), beforeId (required), clientId, maxChanges.
disassemble_scriptDisassemble Luau bytecodeBRead-onlyIdempotent
Read one script's serialized Luau bytecode locally, decode instructions, generate register-level pseudo code, build a control-flow graph, and extract behavioral evidence.
Inputs: path (required), protoId, clientId, maxInstructions, +1 more.
dump_visible_uiDump visible UIARead-onlyIdempotent
Read a flat, bounded tree of visible PlayerGui/gethui/CoreGui elements including text, geometry, and interaction state.
Inputs: clientId, maxItems, textLimit, interactiveOnly, +1 more.
execute_luauExecute LuauADestructive
Execute authorized Luau in the selected client, serialize returned values safely, and report compile/runtime timings.
Inputs: code (required), clientId, chunkName, timeoutMs.
explore_closureExplore closure and upvaluesBRead-onlyIdempotent
Recursively inspect runtime closure metadata, constants, nested prototypes, and bounded upvalue values.
Inputs: path (required), clientId, maxDepth, includeUpvalues, +2 more.
get_consoleRead developer consoleARead-onlyIdempotent
Read buffered Roblox LogService messages with sequence-based incremental polling.
Inputs: limit, levels, clientId, sinceSequence.
get_game_infoGet game metadataARead-onlyIdempotent
Read current place, universe, server, creator, and local-player metadata.
Inputs: clientId, includeMarketplace.
get_player_stateGet player stateBRead-onlyIdempotent
Read character, humanoid, position, velocity, camera, backpack tools, and selected attributes.
Inputs: clientId, includeBackpack, includeAttributes.
get_recordingRead RPC recordingBRead-onlyIdempotent
Read bounded recorded calls including parameters, outcome, timing, and client routing.
Inputs: limit, sinceSequence.
get_remote_eventsRead remote eventsCRead-onlyIdempotent
Read locally captured remote calls with incremental sequence filtering.
Inputs: limit, method, clientId, nameContains, +1 more.
get_treeGet instance treeARead-onlyIdempotent
Return a depth- and breadth-bounded hierarchy below any Roblox instance.
Inputs: root, clientId, maxDepth, maxChildren.
index_scriptsIndex local scriptsARead-only
Build an in-memory, local-only script/module index with stable path, bytecode hash/size when available, and no external decompiler.
Inputs: clientId, maxScripts, includeBytecodeMetadata.
infer_remote_schemasInfer remote schemasARead-onlyIdempotent
Cluster captured remote calls into structural argument signatures with frequency and sequence ranges.
Inputs: limit, clientId.
inspect_instanceInspect instanceARead-onlyIdempotent
Inspect one instance with safe common properties, attributes, tags, children, and optional properties.
Inputs: path (required), clientId, properties, includeChildren.
interactInteract with world objectADestructive
Trigger an authorized ProximityPrompt, ClickDetector, or TouchTransmitter by path.
Inputs: path (required), kind, clientId.
list_clientsList Roblox clientsARead-onlyIdempotent
List every Roblox client connected to the private local bridge.
Inputs: no named parameters.
list_re_snapshotsList RE snapshotsARead-onlyIdempotent
List the up to 20 reverse-engineering snapshots retained in client memory.
Inputs: clientId.
list_roblox_windowsList Roblox windowsARead-onlyIdempotent
List visible Roblox OS windows available for private local screenshot capture.
Inputs: no named parameters.
performance_modeConfigure client performanceCIdempotent
Read or set the cooperative client work budget. Smooth is the default and minimizes frame hitches.
Inputs: mode, clientId.
profile_runtimeProfile Roblox runtimeBRead-only
Sample FPS/frame time, instance class counts, Lua/engine memory, network ping, physics and client metadata locally.
Inputs: clientId, durationMs, topClasses.
query_instancesQuery Roblox instancesARead-onlyIdempotent
Fast bounded instance search by root, class, name substring, tags, attributes, depth, and distance from the player.
Inputs: tag, root, clientId, maxDepth, +8 more.
recording_controlControl RPC recordingB
Start, stop, or clear the bounded in-memory RPC record/replay trace.
Inputs: action (required).
remote_monitorControl remote monitorA
Start, stop, clear, or inspect a bounded local monitor for FireServer and InvokeServer calls.
Inputs: action (required), clientId.
replay_recordingReplay recorded callsCDestructive
Replay up to 100 selected recorded RPC calls against their original or a selected client.
Inputs: clientId, sequences, stopOnError.
replay_remote_eventReplay remote eventADestructive
Replay one locally captured remote call by sequence on the same live client.
Inputs: sequence (required), clientId.
screenshot_windowCapture Roblox windowARead-onlyIdempotent
Capture a real PNG of a visible Roblox window through local Windows APIs and return it directly as MCP image content.
Inputs: pid.
search_scriptsSearch indexed scriptsARead-onlyIdempotent
Search the private in-memory script index by path/name/class/hash.
Inputs: query, clientId, className, maxResults.
set_active_clientSelect active clientARead-onlyIdempotent
Route future tool calls to a specific connected Roblox client.
Inputs: clientId (required).
set_propertiesAtomically set propertiesADestructive
Set up to 100 instance properties with typed values; automatically rolls back earlier changes if any write fails.
Inputs: changes (required), clientId.
smart_snapshotSmart game snapshotARead-onlyIdempotent
Capture game info, player state, nearby instances, visible UI, and recent console entries in one client round trip.
Inputs: clientId, includeUi, timeoutMs, maxUiItems, +3 more.
statusBridge statusARead-onlyIdempotent
Check local Raven MCP health and active Roblox client without contacting the game.
Inputs: no named parameters.
teleportTeleport local characterBDestructive
Move the local character to coordinates or an instance path with an optional offset.
Inputs: path, offset, clientId, position.
wait_for_instanceWait for instanceARead-onlyIdempotent
Poll inside the client until an instance path appears or disappears, avoiding repeated MCP calls.
Inputs: path (required), state, pollMs, clientId, +1 more.
wait_for_propertyWait for propertyBRead-onlyIdempotent
Wait client-side until a property equals a serialized expected value.
Inputs: path (required), expected (required), property (required), pollMs, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 42 tools
Most tools have clearly distinct purposes (e.g., click_ui vs interact vs teleport), but there is some overlap in state-reading utilities like get_tree, dump_visible_ui, query_instances, and smart_snapshot. Script analysis tools (analyze_script, disassemble_script, explore_closure) are specialized but could confuse an agent unfamiliar with their boundaries.
The majority follow a verb_noun pattern (get_tree, execute_luau, set_properties), but a few outliers like 'batch', 'status', and 'performance_mode' break the convention. The overall style is consistent enough to be predictable, with only minor deviations.
With 42 tools, this is well above the 25-tool threshold for 'heavy' servers. While the domain is broad, the count is excessive and risks overwhelming agents; a more focused set of 20-25 tools would better serve the purpose.
The tool surface is remarkably comprehensive, covering UI interaction, Lua execution, script analysis, remote event monitoring, profiling, screenshots, and client management. Minor gaps exist (e.g., no dedicated local player list tool) but core workflows are fully supported.
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Official remote MCP server bridge for Muumuu Domain.
Hosted iOS app intelligence and creative research MCP server.
2,000+ MCP servers read at source level. Know what one does before you connect. Free, no key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for controlling and reverse engineering Roblox games, providing 132 tools across 8 categories for instance exploration, property inspection, input simulation, and more.143 npm13MIT
- AlicenseAqualityCmaintenanceAn 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.122616MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that allows AI agents to execute code, inspect scripts, spy on remotes, and interact with a running Roblox game client.59MIT
- 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.66 npm7MIT