Skip to main content
Glama

UnrealEngine Bridge

Release CI License: MIT Unreal Engine 5.8 Python 3.11+

Claude Code, working inside your Unreal editor. This bridge gives Claude the abilities Epic's own MCP doesn't ship: run real editor Python, see the viewport continuously, light scenes with one command, reason about space with surface normals, and stay honest about every result.

58 MCP tools · 20 mounted by default · 635 tests · Changelog · Security


The one-paragraph story

UE 5.8 ships Epic's official Unreal MCP — 830 tools once you enable AllToolsets. That's the commodity control plane: spawn, transform, materials, Blueprints, Sequencer. So this bridge stopped competing and specialized. We live-probed Epic's entire surface, wrote the verdict for every one of our tools into EPIC_MCP_MATRIX.md, and flipped the default: you get our differentiated core out of the box, Epic handles the basics, and the 36 overlapping tools stay one env var away.


Related MCP server: unreal-engine-mcp

How it works

Two MCP servers, one editor. Claude uses both.

graph LR
    subgraph Claude Code
        A[MCP Client]
    end

    subgraph B1["This bridge — Python"]
        B[MCP Server<br/><i>FastMCP · stdio</i>]
        B --> C[Tiered Registry<br/><i>core: 20 · full: 56</i>]
        C --> D[Remote Control Bridge<br/><i>httpx · circuit breaker</i>]
    end

    subgraph Unreal Editor
        E[Remote Control API<br/><i>localhost:30010</i>]
        E --> F[Editor Runtime]
        G[ViewportPerception<br/><i>localhost:30011</i>]
        G --> F
        H[Epic Unreal MCP<br/><i>localhost:8000 · UE 5.8</i>]
        H --> F
    end

    A -- stdio --> B
    A -. HTTP /mcp .-> H
    D -- HTTP --> E
    C -. viewport capture .-> G

    style A fill:#5CFFDB,color:#05050D
    style B fill:#5CFFDB,color:#05050D
    style C fill:#5CFFDB,color:#05050D
    style D fill:#12121F,color:#fff
    style E fill:#FFCC33,color:#05050D
    style F fill:#12121F,color:#fff
    style G fill:#FFCC33,color:#05050D
    style H fill:#FFCC33,color:#05050D

Who does what:

Job

Server

Spawn / transform / materials / Blueprints / Sequencer

Epic's MCP (UE 5.8, AllToolsets)

Editor Python, console, lighting moods, cloner, perception, spatial reasoning

This bridge

Works on UE 5.7 (no Epic MCP there)

This bridge, with UE_MCP_PROFILE=full


Quick start

You need: UE 5.7 or 5.8 · Python 3.11+ · the Remote Control API plugin enabled (ships with the engine).

1 — Install

git clone https://github.com/JosephOIbrahim/UnrealEngine_Bridge.git
cd UnrealEngine_Bridge
pip install -e .

2 — Open the project

Open UnrealEngine_Bridge.uproject. Check the Output Log for "Remote Control Web Server started" — that's localhost:30010 up.

On UE 5.8, the ModelContextProtocol and AllToolsets plugins self-enable (they're staged Optional in the project). Start Epic's server from the console: ModelContextProtocol.StartServer.

3 — Connect Claude Code

The repo ships a ready .mcp.json — open the repo folder in Claude Code and both servers are configured. For other projects, copy it and fix the path.

4 — Try it

"Set golden hour and snap the crates to the terrain."

Claude uses ue_apply_mood_preset and ue_snap_to_ground — two things no other UE MCP can do.

Want the commodity tools from this bridge instead of Epic's? Set the env var and restart the server:

"unreal": { "command": "python", "args": ["-m", "ue_mcp.mcp_server"], "env": { "UE_MCP_PROFILE": "full" } }

What's mounted by default (the core 20)

These are the tools Epic's MCP does not have — verified against all 830 of theirs (the matrix).

🐍 Editor Python & console (2)

Tool

What it does

ue_execute_python

The escape hatch. Run real Python in the editor with the full unreal API (AST-sandboxed). Epic's execute_tool_script can't even import unreal.

ue_console_command

Run console commands with structured output parsing. No console exec exists anywhere in Epic's surface.

👁 Perception (4)

Tool

What it does

ue_viewport_percept

One frame + camera, selection, and scene metadata in a single call

ue_viewport_watch

Continuous capture at a set rate — Claude keeps watching

ue_viewport_diff

Two-snapshot structural diff: what moved, appeared, disappeared

ue_viewport_config

Resolution / format / rate for the capture pipeline

🌅 Lighting & atmosphere (5)

Tool

What it does

ue_apply_mood_preset

One command = coordinated sun + fog + clouds + color grade

ue_blend_mood_presets

Interpolate two moods (t 0→1) for in-between looks

ue_set_time_of_day

Hour 0–24 → sun elevation, azimuth, color, intensity

ue_setup_sky_atmosphere

Build or update the whole sky rig, idempotently

ue_list_mood_presets

See the built-in cinematic presets

📐 Spatial reasoning (4)

Tool

What it does

ue_ground_trace

Trace down at (x, y): hit point, surface normal, distance, actor. Epic's trace_world returns a bare distance.

ue_snap_to_ground

Drop an actor onto the surface, optionally tilting to the slope

ue_spatial_query

Nearest-N, AABB overlap, combined bounds, box contents

ue_get_actor_hierarchy

The full recursive attachment tree in one call

🧩 Scene gaps Epic left open (3)

Tool

What it does

ue_duplicate_actor

Clone a level actor with an offset (no Epic equivalent)

ue_get_world_info

Streaming levels, world settings, game mode

ue_create_cloner

ClonerEffector procedural instancing, with read-back-verified configuration

❤️ Bridge health (2)

Tool

What it does

ue_status

Is the editor up? Is Remote Control reachable?

ue_health_check

Version, uptime, circuit breaker, per-call metrics, active tool profile, Epic MCP reachability


The commodity tier (36 tools, UE_MCP_PROFILE=full)

Epic's MCP covers these — the matrix cites the exact equivalent for every row. They stay in the codebase, tested and honest, for UE 5.7 or as a fallback:

Module

Tools

Actors

spawn · delete · list · set_transform · get_bounds

Scene

actor details · scene query · component details

Blueprints

create · add component · set properties · CDO defaults · compile · list components · spawn

Materials

create instance · set / get parameters · assign to slot

Sequencer

create sequence · play/scrub · bind actor · keyframe

Level

save · info · load

Assets

find · create material · delete

Mograph

Niagara system · PCG graph

Properties

get / set any UObject property

Editor

focus actor · select actors

Spatial

measure (distance / extent)

Experimental tier (UE_MCP_PROFILE=all): ue_undo / ue_redo — honest not-implemented slots. The UE Python API has no scriptable editor-transaction route; these say so instead of pretending.


🧊 UE ↔ X3D round-trip harness (new in v0.3.0)

Hand Claude a level as open X3D it can read, edit, and validate — then write it back losslessly. A thin, fully-tested slice: no live editor needed to prove an edit is safe.

The one invariant it defends:

deserialize( serialize( level ) )  ==  level

Lossless round trip, plus malformed edits rejected on paper before any mutation. If both hold, the bridge is trustworthy — if either fails, nothing else matters.

Piece

Job

Coordinate crux

UE (Z-up, LH, cm) ↔ X3D (Y-up, RH, m) as one orthonormal basis B (det −1). B⁻¹ = Bᵀ, so the round trip is exact by construction — picking the right B is calibration, not correctness.

Closed grammar

An X3D node set small enough to hand a model whole and validate against. UE specifics (mesh · mobility · folder · parent) ride in Metadata*.

Validate boundary

Out-of-grammar nodes, dangling USE, NaN/∞, wrong arity, non-X3D root — all die here, before the editor is touched.

Apply seam

Diffs two scenes into typed ops (spawn · transform · material · reparent) that emit ue_execute_python.

Preview

The same X3D drops into a browser via X_ITE — free.

from x3d_bridge import Actor, serialize, deserialize, validate

x3d = serialize([Actor(guid="Rock_01", mesh="/Game/Meshes/SM_Rock",
                       t=(420.0, 0.0, 155.0))])
ok, errors = validate(x3d)     # the paper boundary
level = deserialize(x3d)       # lossless

Status — honest, per the house rule:

  • ✅ 55 tests — round-trip · validation battery · apply-op sequence — all green

  • ✅ Basis B independently re-derived and confirmed three ways

  • ⏳ B is analytic — not yet calibrated against a live glTF export (round-trip is basis-agnostic, so this is fidelity-only, never correctness)

  • ⏳ A library today — not yet exposed as MCP tools


Why trust the results? Honesty as architecture

This bridge's tools cannot silently lie — that's enforced, not promised:

  • Exec-simulated codegen tests. Every generated editor script is compiled and executed against a strict fake unreal module in CI. Phantom APIs raise. Dropped arguments fail a sentinel gate. Hard-coded success prints fail honesty contracts.

  • Read-back verification. Writes that UE can silently ignore (cloner layout names) are read back before being reported "applied".

  • Honest statuses. The viewport fallback reports capture_status: timeout instead of an empty image with success: true. Not-implemented tools say "not implemented".

  • 635 tests, including scripted-failure contracts for every historical lying-tool bug.

graph TB
    subgraph Python layer
        MCP["MCP Server<br/><code>ue_mcp/mcp_server.py</code>"]
        Reg["Tiered Registry<br/><i>core / full / all</i>"]
        Tools["Tool Modules (14)<br/><code>ue_mcp/tools/</code>"]
        Val["Validation & AST Sandbox<br/><code>_validation.py</code>"]
        RC["Remote Control Bridge<br/><code>remote_control/</code>"]
        Met["Metrics & Circuit Breaker"]
    end

    subgraph Test layer
        Sim["Exec-Sim Harness<br/><i>strict fake unreal · honesty contracts</i>"]
    end

    subgraph Unreal Editor
        RCAPI["Remote Control API<br/><i>REST · :30010</i>"]
        VP["ViewportPerception plugin<br/><i>GPU readback · :30011</i>"]
        EPIC["Epic Unreal MCP<br/><i>HTTP+SSE · :8000 · UE 5.8</i>"]
    end

    MCP --> Reg --> Tools
    Tools --> Val
    Tools --> RC --> Met
    RC -- HTTP --> RCAPI
    Tools -. capture .-> VP
    Sim -. gates every generated script .-> Tools

    style MCP fill:#5CFFDB,color:#05050D
    style Reg fill:#5CFFDB,color:#05050D
    style Tools fill:#5CFFDB,color:#05050D
    style Sim fill:#12121F,color:#fff
    style RCAPI fill:#FFCC33,color:#05050D
    style VP fill:#FFCC33,color:#05050D
    style EPIC fill:#FFCC33,color:#05050D

Resilience

Pattern

Detail

Circuit breaker

CLOSED → OPEN (5 failures) → HALF_OPEN (30s, 1 probe) → CLOSED

Connection pooling

10 max connections, 5 keepalive

Timeout

10s adaptive default

Atomic file I/O

tempfile + os.replace (NTFS-safe)

Python sandbox

AST validation blocking os, subprocess, open, getattr, dunders

Network surface & trust model

Everything is localhost, single trusted operator: Remote Control (:30010), ViewportPerception (:30011, off by default), and — on 5.8 — Epic's MCP (:8000, no auth, serial on the game thread; Epic's EULA §6(e) governs what your LLM provider may do with transmitted data). Don't expose any of them to untrusted networks.

Full trust model and hardening guidance: SECURITY.md.


Project structure

UnrealEngine_Bridge/
├── ue_mcp/                        # MCP server package
│   ├── mcp_server.py              # FastMCP entry point (stdio) + health tools
│   ├── metrics.py                 # Telemetry + observability
│   ├── ue_logging.py              # Structured JSON logging
│   └── tools/                     # 14 modules · 56 tools · tiered registry in __init__.py
├── remote_control/                # UE5 HTTP bridge (circuit breaker, codegen, polling)
├── x3d_bridge/                    # UE↔X3D round-trip harness (coords · grammar · validate · apply)
├── usd_bridge/                    # USD file I/O package (parked, out of the ship path)
├── Plugins/
│   ├── UEBridge/                  # Editor panel, file watcher (C++)
│   └── ViewportPerception/        # GPU readback + HTTP endpoint (C++)
├── docs/
│   ├── EPIC_MCP_MATRIX.md         # Retirement contract-of-record (probe-grounded)
│   └── epic_mcp/                  # Raw probe captures of Epic's 830-tool surface
├── scripts/probe_epic_mcp.py      # Re-probe Epic's surface per engine version
├── tests/                         # 635 tests, incl. tests/exec_sim/ + tier gates
├── smoke_live.py                  # Live-editor smoke harness (on-demand)
└── .mcp.json                      # Two-server config: this bridge + Epic's MCP

Development

Run the tests

pip install -e ".[dev]"
python -m pytest -q                # 635 tests

Lint

ruff check ue_mcp/ remote_control/ tests/

Add a tool (each step is checked by CI)

  1. Create ue_mcp/tools/your_module.py with a register(server, ue) function

  2. Decorate tools with @server.tool(...); validate inputs via _validation.py

  3. Wire the module into ue_mcp/tools/__init__.py — and classify the tool in TIERS (an unclassified tool fails CI)

  4. Add a sentinel entry in tests/exec_sim/registry.py (a missing entry fails CI)

  5. Add tests


License

Released under the MIT License — Copyright (c) 2026 Joseph Ibrahim.

Available Tools

25 tools
ue_apply_mood_presetA
Idempotent

Apply a named cinematic mood as a coordinated package — sun angle/colour, fog, clouds, and a full post-process colour grade. Call ue_list_mood_presets for available names (e.g. golden_hour, noir, overcast, midday_clear).

Inputs: name (required). Returns: result

ue_blend_mood_presetsA
Idempotent

Blend two mood presets and apply the result. t=0 is preset_a, t=1 is preset_b; numeric/colour values interpolate, toggles snap at t>=0.5. Great for dialing a look between two references.

Inputs: preset_a (required), preset_b (required), t. Returns: result

ue_console_commandB

Execute a UE console command and capture output. Blocked commands: exit, quit, crash, gpf, open, servertravel, killall.

Inputs: command (required). Returns: result

ue_create_clonerB

Create a ClonerEffector actor that instances a mesh in a layout pattern. Requires the ClonerEffector plugin to be enabled.

Inputs: x, y, z, label, +6 more. Returns: result

ue_duplicate_actorB

Duplicate an actor with an optional position offset.

Inputs: actor_label (required), offset_x, offset_y, offset_z. Returns: result

ue_execute_pythonA
Destructive

Execute Python code inside the UE5 editor. The code has access to the 'unreal' module and all editor APIs. Use print() to return output. This is the most powerful tool - use it when no specific tool exists for your operation.

Inputs: code (required). Returns: result

ue_get_actor_hierarchyB
Read-onlyIdempotent

Get the parent-child attachment tree for an actor. Shows all attached children recursively (max depth 10).

Inputs: actor_label (required). Returns: result

ue_get_world_infoA
Read-onlyIdempotent

Get detailed world information: streaming levels, world settings, game mode.

Inputs: no named parameters. Returns: result

ue_ground_traceA
Read-onlyIdempotent

Line-trace straight down at world (x, y) to find the ground/surface. Returns the hit point, surface normal, distance, and which actor was hit. Use before placing props so you know where the floor is.

Inputs: x (required), y (required), start_z. Returns: result

ue_health_checkA
Read-onlyIdempotent

Get bridge health: version, uptime, circuit breaker state, request metrics (counts, latencies, error rates). Use this to diagnose connection issues. Pass deep=true to also run the capability preflight (can the bridge actually execute, not just connect).

Inputs: deep. Returns: result

ue_list_mood_presetsA
Read-onlyIdempotent

List the built-in cinematic mood/look-dev presets and their descriptions.

Inputs: no named parameters. Returns: result

ue_preflightA
Read-onlyIdempotent

Capability preflight: probe whether the bridge can ACTUALLY execute against the editor, not merely connect. Runs a ladder -- reachable, remote function calls permitted, a value round-trips, full Python round-trip -- stops at the first failure, and returns the named cause plus the one-line fix (with the raw Remote Control error body as evidence). Use this whenever tools error but ue_status says connected -- e.g. UE 5.8's bAllowAnyRemoteFunctionCall block.

Inputs: no named parameters. Returns: result

ue_set_time_of_dayA
Idempotent

Set the time of day (hour 0-24) — drives sun elevation, compass azimuth, colour temperature (warm near the horizon, neutral high, cool moonlight at night), and intensity. Builds/reuses the sky rig and recaptures.

Inputs: hour. Returns: result

ue_setup_sky_atmosphereA
Idempotent

Build or update the sky/atmosphere rig in one call: find-or-spawn the DirectionalLight (sun), SkyAtmosphere, SkyLight, fog, and clouds, then recapture the sky. sun_elevation is degrees above the horizon, sun_azimuth is the compass heading. Idempotent — reuses existing rig actors.

Inputs: fog, clouds, fog_density, sun_azimuth, +2 more. Returns: result

ue_snap_to_groundA
Idempotent

Drop an actor (by label) onto the surface directly beneath it so its bounding-box bottom rests on the ground. Optionally tilt it to match the surface slope, and apply a vertical offset. One fast transaction.

Inputs: actor_label (required), z_offset, align_to_normal. Returns: result

ue_spatial_queryA
Read-onlyIdempotent

Reason about actor positions and volumes. Modes: 'nearest' (N closest actors to a point), 'overlap' (do two actors' bounding boxes intersect, + penetration depth), 'combined_bounds' (union AABB of a filtered set — its footprint), 'box_contents' (which actors sit inside an axis-aligned box). Filter the candidate set with class_filter / tag_filter.

Inputs: mode (required), x, y, z, +8 more. Returns: result

ue_statusA
Read-onlyIdempotent

Check if the UE5 editor is running and the Remote Control API is reachable.

Inputs: no named parameters. Returns: result

ue_viewport_configB
Idempotent

Configure the viewport perception system (resolution, format, capture rate).

Inputs: width, format, height, max_fps, +1 more. Returns: result

ue_viewport_diffA
Read-onlyIdempotent

Capture two viewport snapshots with a delay and return a structural diff showing what changed (actors, camera, selection). Useful for verifying that scene modifications took effect.

Inputs: delay_ms. Returns: result

ue_viewport_perceptA
Read-onlyIdempotent

Capture the UE5 editor viewport -- returns the rendered frame as an image plus camera, selection, and scene metadata. Gives the AI situated visual awareness.

Inputs: width, format, height, include_image. Returns: result

ue_viewport_watchB
Idempotent

Start or stop continuous viewport awareness at the specified rate. When active, the perception system captures frames continuously.

Inputs: fps, width, action, height. Returns: result

ue_x3d_applyA
Destructive

Apply an X3D document's actor transforms back to the live level. Validates the document, then for each Transform (addressed by its DEF = the actor's object path) sets location/rotation/scale in the editor. Actors must already exist. Returns {applied} or an error. v0.4.0 applies transforms only.

Inputs: x3d (required). Returns: result

ue_x3d_exportA
Read-onlyIdempotent

Serialize the current level to X3D text (the x3d_bridge thin-slice grammar). Reads each actor's quaternion transform, static mesh, material, and attach parent; converts UE (Z-up, cm) to X3D (Y-up, m). mesh_only=True (default) exports only actors with a static mesh. Returns {actor_count, x3d}.

Inputs: mesh_only. Returns: result

ue_x3d_previewA
Read-onlyIdempotent

Render an X3D document to a standalone HTML page that views it in a browser via the X_ITE runtime (no editor needed). Returns {chars, html}. The page references X_ITE from a CDN, so viewing it needs network access; the X3D payload is embedded inline.

Inputs: x3d (required), title. Returns: result

ue_x3d_validateA
Read-onlyIdempotent

Validate an X3D document against the closed thin-slice grammar without touching the editor: rejects out-of-grammar nodes, dangling USE references, wrong numeric arity, non-X3D roots, and NaN/inf. Returns {ok, errors}. Run this on model-edited X3D before apply.

Inputs: x3d (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 25 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: mood tools are separate from viewport, X3D, spatial, and general utilities. No two tools appear to do the same thing, and descriptions clarify boundaries.

    Naming Consistency5/5

    All tools use the 'ue_' prefix followed by a consistent verb_noun pattern (e.g., apply_mood_preset, get_world_info, snap_to_ground). Minor deviations like 'ue_status' are still clear and follow the convention.

    Tool Count4/5

    With 25 tools, the server covers a broad range of Unreal Engine operations without being excessive. The count is appropriate for comprehensive bridge functionality, though it could be slightly trimmed.

    Completeness4/5

    The tool surface is extensive, covering mood, time, sky, viewport, X3D, spatial queries, and actor manipulation. The ue_execute_python tool fills many gaps. Minor omissions like direct material editing are acceptable given the scope.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server enabling AI agents to author Unreal Engine 5 scenes directly, with tools for spawning actors, building PCG graphs, validating physics, generating terrain, and more through a single MCP connection.
      13
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      An MCP server that gives AI agents broad control over Unreal Engine 5.7, enabling actor/asset/level management, Blueprint and material creation, screenshots, automation, and arbitrary editor Python execution.
      35
      MIT