Skip to main content
Glama
metahuman-mcp

metahuman-mcp

MetaHuman MCP Server

A production-quality, dependency-free Python 3.12 local stdio MCP server for read-only MetaHuman DNA inspection, designed for the Codex Plus workflow.

IMPORTANT

ARC 02 — Read-Only scope only. This server never modifies Unreal assets, never installs Maya or Creator Core Data, never reads authentication tokens, and never contacts external hosts.

Requirements

  • Python 3.12+

  • Windows x64 (tested)

  • Unreal Engine 5.4–5.8 (optional — enables bridge probing)

  • No pip dependencies — pure stdlib

Related MCP server: applens

Quick Start

# Install (registers in ~/.codex/config.toml, creates timestamped backup)
python -m metahuman_mcp.install --dry-run   # preview
python -m metahuman_mcp.install --apply     # apply

# Diagnose
python -m metahuman_mcp.doctor

# Run live stdio test
python -m metahuman_mcp.doctor --check-live-stdio

# Remove
python -m metahuman_mcp.install --uninstall

MCP Tools

Tool

Description

metahuman_status

Server status, Unreal bridge reachability, allowed roots

metahuman_detect_capabilities

Full environment scan (UE, plugins, Maya, Codex)

metahuman_list_assets

List .dna files in configured read-only roots

metahuman_inspect_dna

Binary inspection: format, layers, descriptor, definition summary

metahuman_validate_dna

Structural validation with explicit semantic-limitation note

All tools carry readOnlyHint: true and destructiveHint: false.

Security

Approved read-only roots (default):

  • %USERPROFILE%\...\metahuman (workspace root)

  • D:\UE_5.8\Engine\Plugins\MetaHuman\MetaHumanCoreTechLib\Content\ArchetypeDNA

Additional roots require explicit --extra-root configuration.

Protections: canonical path containment · .. traversal rejection · UNC/ADS rejection · symlink/junction escape protection · bounded parsing (256 MB file cap, 8 MB section cap) · no auth token access · no external network calls.

Supported DNA Versions

Version

Layout

Status

2.1

SectionLookupTable + AND EOF

Supported (tested with synthetic fixtures)

2.2–2.5

IndexTable

Supported; v2.5 verified on UE 5.8.4 archetype DNA

2.6–2.8

IndexTable (extended layers)

Supported (parser derived from UE 5.8.4 SDK headers)

NOTE

Pure-Python structural inspection only. Full RigLogic semantic evaluation requires the UE runtime or DNACalib.

Codex Integration

After --apply, the server appears in Codex as metahuman-mcp alongside the existing unreal-mcp bridge.

# Added to ~/.codex/config.toml
[mcp_servers."metahuman-mcp"]
type = "stdio"
command = "C:\\...\\python.exe"
args = ["-m", "metahuman_mcp"]
env = { PYTHONPATH = "D:\\work\\metahuman\\src" }

Development

cd D:\work\metahuman
$env:PYTHONPATH = "src"
python -m pytest tests/ -v              # all tests
python -m unittest discover -s tests -p "test_*.py" -v

License

Original source code: MIT License — see LICENSE.

Third-party dependencies: none bundled. UE MetaHuman assets are proprietary Epic Games property and are never redistributed.

Available Tools

5 tools
metahuman_detect_capabilitiesB
Read-only

Detect all MetaHuman-related capabilities on this workstation: UE installations, MetaHuman plugins, optional content markers, archetype DNA files, Maya presence, Codex CLI, and bridge state.

Inputs: include_bridge_probe.

metahuman_inspect_dnaA
Read-only

Perform bounded, read-only binary inspection of a MetaHuman DNA file. Returns format version, layer table, descriptor metadata, and definition summary. Never dumps complete geometry. File must be within a configured allowed root.

Inputs: path (required), compute_sha256, include_definition.

metahuman_list_assetsA
Read-only

List MetaHuman DNA asset files found within the configured read-only roots. Returns paths sanitized of personal directory prefixes.

Inputs: root.

metahuman_statusA
Read-only

Return the operational status of the MetaHuman MCP server: Python version, Unreal installations, bridge reachability, allowed roots, and read-only enforcement.

Inputs: include_bridge_probe.

metahuman_validate_dnaA
Read-only

Perform bounded structural validation of a MetaHuman DNA file. Checks binary framing, IndexTable/SectionLookupTable bounds, descriptor metadata, LOD mappings, mesh-blendshape mapping, and joint hierarchy acyclicity. Explicitly notes which checks require RigLogic runtime semantic validation.

Inputs: path (required), strict.

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 5 tools

    Disambiguation4/5

    list_assets, inspect_dna, and validate_dna are clearly separated by resource and action, and the two DNA readers differ meaningfully (metadata extraction vs structural checks). The only real overlap is metahuman_status vs metahuman_detect_capabilities, which both report UE installations and bridge state, though descriptions frame one as a quick health check and the other as full capability enumeration.

    Naming Consistency4/5

    All five tools share a consistent metahuman_ prefix and snake_case, with verb_noun forms (list_assets, detect_capabilities, inspect_dna, validate_dna). metahuman_status breaks the verb pattern by being a bare noun, but it is a common and readable convention for a health endpoint.

    Tool Count5/5

    Five tools is well-scoped for a read-only inspection/diagnostics server; each tool maps to a distinct step (health, discovery, enumeration, per-file inspection, per-file validation). Nothing feels padded or missing at this count.

    Completeness4/5

    The read-only lifecycle is fully covered: status, capability discovery, asset listing, per-asset inspection, and validation, with consistent allowed-root enforcement. Minor gaps remain—no way to search/filter assets by criteria or to resolve a single asset path directly—but agents can work around these via list_assets plus inspect_dna.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables read-only, allowlisted-root scanning and deterministic comparison of binary and application artifacts, producing JSON/HTML evidence reports without executing the targets.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-compatible AI assistants to inspect local application internals by analyzing JavaScript/Electron/ASAR and .NET artifacts, tracing dependencies, interfaces, and data flows, and preserving traceable evidence.
      14
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables local, offline inspection of computer activity by collecting visible process, connection, and automatic-launch metadata and letting MCP clients explain rule matches and process context. It is read-only toward processes and system settings and offers review suggestions without making changes.
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to perform local, deterministic, read-only inspection of native binaries, compare binaries, and retrieve or list verifiable evidence records.
      MIT