Skip to main content
Glama

Raven Roblox MCP

verify Node 22+ 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 codex

The 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. Internal game.Name is exposed separately as dataModelName.

  • 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 UI

The 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 daemon

Dashboard: 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 behalf

  • Before/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.Activated listeners produce direct action evidence, bounded no-signal control windows, daemon-restart hydration from connector memory, and role-validated repeated-action/control comparison

  • Connector 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 Activated capture with a temporary listener and automatic short causal window; Raven observes the real user action but never invokes the button

  • Controlled 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_callsites graph linking captured remotes to runtime callsites and exact or candidate indexed scripts with inspectable confidence/evidence

  • Semantic 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:

  1. Start a trace with narrow roots such as game/Workspace/RedShow and select only the properties needed for the hypothesis.

  2. Add a marker immediately before the authorized test action.

  3. Perform the action once.

  4. Read get_behavior_trace incrementally 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.

  1. Call status, then list_clients.

  2. Use smart_snapshot for initial orientation.

  3. Narrow with query_instances, inspect_instance, get_tree, or dump_visible_ui.

  4. Use batch for related reads.

  5. 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 audit

Run locally:

npm start

Security 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 tools
analyze_scriptAnalyze local scriptA
Read-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 pipelineA
Destructive

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 bridgeB
Read-onlyIdempotent

Measure local bridge latency and bounded client-side instance traversal throughput.

Inputs: clientId, scanRoot, scanLimit, iterations.

build_script_graphBuild cross-script graphA
Read-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 snapshotB
Read-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 streamingA
Idempotent

Control live console forwarding. Errors mode keeps warnings/errors only; all can add overhead in noisy games.

Inputs: mode, clientId.

dashboard_infoDashboard informationA
Read-onlyIdempotent

Return the private local dashboard URL and its current availability.

Inputs: no named parameters.

diff_re_snapshotsDiff RE snapshotsA
Read-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 bytecodeB
Read-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 UIA
Read-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 LuauA
Destructive

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 upvaluesB
Read-onlyIdempotent

Recursively inspect runtime closure metadata, constants, nested prototypes, and bounded upvalue values.

Inputs: path (required), clientId, maxDepth, includeUpvalues, +2 more.

get_consoleRead developer consoleA
Read-onlyIdempotent

Read buffered Roblox LogService messages with sequence-based incremental polling.

Inputs: limit, levels, clientId, sinceSequence.

get_game_infoGet game metadataA
Read-onlyIdempotent

Read current place, universe, server, creator, and local-player metadata.

Inputs: clientId, includeMarketplace.

get_player_stateGet player stateB
Read-onlyIdempotent

Read character, humanoid, position, velocity, camera, backpack tools, and selected attributes.

Inputs: clientId, includeBackpack, includeAttributes.

get_recordingRead RPC recordingB
Read-onlyIdempotent

Read bounded recorded calls including parameters, outcome, timing, and client routing.

Inputs: limit, sinceSequence.

get_remote_eventsRead remote eventsC
Read-onlyIdempotent

Read locally captured remote calls with incremental sequence filtering.

Inputs: limit, method, clientId, nameContains, +1 more.

get_treeGet instance treeA
Read-onlyIdempotent

Return a depth- and breadth-bounded hierarchy below any Roblox instance.

Inputs: root, clientId, maxDepth, maxChildren.

index_scriptsIndex local scriptsA
Read-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 schemasA
Read-onlyIdempotent

Cluster captured remote calls into structural argument signatures with frequency and sequence ranges.

Inputs: limit, clientId.

inspect_instanceInspect instanceA
Read-onlyIdempotent

Inspect one instance with safe common properties, attributes, tags, children, and optional properties.

Inputs: path (required), clientId, properties, includeChildren.

interactInteract with world objectA
Destructive

Trigger an authorized ProximityPrompt, ClickDetector, or TouchTransmitter by path.

Inputs: path (required), kind, clientId.

list_clientsList Roblox clientsA
Read-onlyIdempotent

List every Roblox client connected to the private local bridge.

Inputs: no named parameters.

list_re_snapshotsList RE snapshotsA
Read-onlyIdempotent

List the up to 20 reverse-engineering snapshots retained in client memory.

Inputs: clientId.

list_roblox_windowsList Roblox windowsA
Read-onlyIdempotent

List visible Roblox OS windows available for private local screenshot capture.

Inputs: no named parameters.

performance_modeConfigure client performanceC
Idempotent

Read or set the cooperative client work budget. Smooth is the default and minimizes frame hitches.

Inputs: mode, clientId.

profile_runtimeProfile Roblox runtimeB
Read-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 instancesA
Read-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 callsC
Destructive

Replay up to 100 selected recorded RPC calls against their original or a selected client.

Inputs: clientId, sequences, stopOnError.

replay_remote_eventReplay remote eventA
Destructive

Replay one locally captured remote call by sequence on the same live client.

Inputs: sequence (required), clientId.

screenshot_windowCapture Roblox windowA
Read-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 scriptsA
Read-onlyIdempotent

Search the private in-memory script index by path/name/class/hash.

Inputs: query, clientId, className, maxResults.

set_active_clientSelect active clientA
Read-onlyIdempotent

Route future tool calls to a specific connected Roblox client.

Inputs: clientId (required).

set_propertiesAtomically set propertiesA
Destructive

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 snapshotA
Read-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 statusA
Read-onlyIdempotent

Check local Raven MCP health and active Roblox client without contacting the game.

Inputs: no named parameters.

teleportTeleport local characterB
Destructive

Move the local character to coordinates or an instance path with an optional offset.

Inputs: path, offset, clientId, position.

wait_for_instanceWait for instanceA
Read-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 propertyB
Read-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

    B3.4/5.0

    Scored across 42 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers