io.github.ChiR24/unreal-engine-mcp

编码与调试

by chir24

面向生产环境的 Unreal Engine MCP 服务器,提供全面的游戏开发工具与集成能力。

想把 AI 真正接入 Unreal Engine 开发流程,它提供面向生产环境的 MCP 服务,把开发、调试与工具集成一次打通。

什么是 io.github.ChiR24/unreal-engine-mcp

面向生产环境的 Unreal Engine MCP 服务器,提供全面的游戏开发工具与集成能力。

README

Unreal Engine MCP Server

License: MIT NPM Package MCP SDK Unreal Engine MCP Registry Project Board Discussions

A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal Engine through a native C++ Automation Bridge plugin. Built with TypeScript and C++.


Table of Contents


Features

CategoryCapabilities
Asset ManagementBrowse, import, duplicate, rename, delete assets; create materials
Actor ControlSpawn, delete, transform, physics, tags, components
Editor ControlPIE sessions, camera, viewport, screenshots, bookmarks
Level ManagementLoad/save levels, streaming, World Partition, data layers
Animation & PhysicsAnimation BPs, state machines, ragdolls, vehicles, constraints
Visual EffectsNiagara particles, GPU simulations, procedural effects, debug shapes
SequencerCinematics, timeline control, camera animations, keyframes
Graph EditingBlueprint, Niagara, Material, and Behavior Tree graph manipulation
AudioSound cues, audio components, sound mixes, ambient sounds
SystemConsole commands, UBT, tests, logs, project settings, CVars

Architecture

  • Native C++ Automation — All operations route through the MCP Automation Bridge plugin
  • Dynamic Type Discovery — Runtime introspection for lights, debug shapes, and sequencer tracks
  • Graceful Degradation — Server starts even without an active Unreal connection
  • On-Demand Connection — Retries automation handshakes with exponential backoff
  • Command Safety — Blocks dangerous console commands with pattern-based validation
  • Asset Caching — 10-second TTL for improved performance
  • Metrics Rate Limiting — Per-IP rate limiting (60 req/min) on Prometheus endpoint
  • Centralized Configuration — Unified class aliases and type definitions

Getting Started

Prerequisites

  • Node.js 18+
  • Unreal Engine 5.0–5.7

Step 1: Install MCP Server

Option A: NPX (Recommended)

bash
npx unreal-engine-mcp-server

Option B: Clone & Build

bash
git clone https://github.com/ChiR24/Unreal_mcp.git
cd Unreal_mcp
npm install
npm run build
node dist/cli.js

Step 2: Install Unreal Plugin

The MCP Automation Bridge plugin is included at Unreal_mcp/plugins/McpAutomationBridge.

Method 1: Copy Folder

code
Copy:  Unreal_mcp/plugins/McpAutomationBridge/
To:    YourUnrealProject/Plugins/McpAutomationBridge/

Regenerate project files after copying.

Method 2: Add in Editor

  1. Open Unreal Editor → Edit → Plugins
  2. Click "Add" → Browse to Unreal_mcp/plugins/
  3. Select the McpAutomationBridge folder

Video Guide:

https://github.com/user-attachments/assets/d8b86ebc-4364-48c9-9781-de854bf3ef7d

⚠️ First-Time Project Open: When opening the project directly (double-click .uproject) for the first time, UE will prompt "Would you like to rebuild them now?" for missing modules. Click Yes to rebuild. After the rebuild completes, you may still see: "Plugin 'McpAutomationBridge' failed to load because module could not be loaded." This is expected — UE rebuilds successfully but doesn't reload the plugin in the same session. Simply close and reopen the project and the plugin will load correctly. Alternatively, build via Visual Studio first to avoid this.

Step 3: Enable Required Plugins

Enable via Edit → Plugins, then restart the editor.

<details> <summary><b>Core Plugins (Required)</b></summary>
PluginRequired For
MCP Automation BridgeAll automation operations
Editor Scripting UtilitiesAsset/Actor subsystem operations
NiagaraVisual effects and particle systems
</details> <details> <summary><b>Optional Plugins (Auto-enabled)</b></summary>
PluginRequired For
Level Sequence Editormanage_sequence operations
Control Riganimation_physics operations
GeometryScriptingmanage_geometry operations
Behavior Tree Editormanage_behavior_tree operations
Niagara EditorNiagara authoring
Environment Query EditorAI/EQS operations
Gameplay Abilitiesmanage_gas operations
MetaSoundmanage_audio MetaSound authoring
StateTreemanage_ai State Tree operations
Smart ObjectsAI smart object operations
Enhanced Inputmanage_input operations
Chaos ClothCloth simulation
InterchangeAsset import/export
Data ValidationData validation
Procedural Mesh ComponentProcedural geometry
OnlineSubsystemSession/networking operations
OnlineSubsystemUtilsSession/networking operations
</details>

💡 Optional plugins are auto-enabled by the MCP Automation Bridge plugin when needed.

Step 4: Configure MCP Client

Add to your Claude Desktop / Cursor config file:

Using Clone/Build:

json
{
  "mcpServers": {
    "unreal-engine": {
      "command": "node",
      "args": ["path/to/Unreal_mcp/dist/cli.js"],
      "env": {
        "UE_PROJECT_PATH": "C:/Path/To/YourProject",
        "MCP_AUTOMATION_PORT": "8091"
      }
    }
  }
}

Using NPX:

json
{
  "mcpServers": {
    "unreal-engine": {
      "command": "npx",
      "args": ["unreal-engine-mcp-server"],
      "env": {
        "UE_PROJECT_PATH": "C:/Path/To/YourProject"
      }
    }
  }
}

Configuration

Environment Variables

env
# Required
UE_PROJECT_PATH="C:/Path/To/YourProject"

# Automation Bridge
MCP_AUTOMATION_HOST=127.0.0.1
MCP_AUTOMATION_PORT=8091

# LAN Access (optional)
# SECURITY: Set to true to allow binding to non-loopback addresses (e.g., 0.0.0.0)
# Only enable if you understand the security implications.
MCP_AUTOMATION_ALLOW_NON_LOOPBACK=false

# Logging
LOG_LEVEL=info  # debug | info | warn | error

# Optional
MCP_AUTOMATION_REQUEST_TIMEOUT_MS=120000
ASSET_LIST_TTL_MS=10000

# Custom content mount points (comma-separated)
# Plugins with CanContainContent register mount points beyond /Game/.
# MCP_ADDITIONAL_PATH_PREFIXES=/ProjectObject/,/ProjectAnimation/

LAN Access Configuration

By default, the automation bridge only binds to loopback addresses (127.0.0.1) for security. To enable access from other machines on your network:

TypeScript (MCP Server):

env
MCP_AUTOMATION_ALLOW_NON_LOOPBACK=true
MCP_AUTOMATION_HOST=0.0.0.0

Unreal Engine Plugin:

  1. Go to Edit → Project Settings → Plugins → MCP Automation Bridge
  2. Under Security, enable "Allow Non Loopback"
  3. Under Connection, set "Listen Host" to 0.0.0.0
  4. Restart the editor

⚠️ Security Warning: Enabling LAN access exposes the automation bridge to your local network. Only use on trusted networks with appropriate firewall rules.


Available Tools

36 MCP tools with action-based dispatch for comprehensive Unreal Engine automation.

<details> <summary><b>Core Tools</b></summary>
ToolDescription
manage_assetAssets, Materials, Render Targets, Behavior Trees
control_actorSpawn, delete, transform, physics, tags
control_editorPIE, Camera, viewport, screenshots
manage_levelLoad/Save, World Partition, streaming
system_controlUBT, Tests, Logs, Project Settings, CVars
inspectObject Introspection
manage_pipelineBuild automation, UBT compilation, status checks
manage_toolsDynamic tool management (enable/disable at runtime)
</details> <details> <summary><b>World Building</b></summary>
ToolDescription
manage_lightingSpawn lights, GI, shadows, build lighting, list_light_types
manage_level_structureLevel creation, sublevels, World Partition, data layers, HLOD
manage_volumesTrigger volumes, blocking, physics, audio, navigation volumes
manage_navigationNavMesh settings, nav modifiers, nav links, smart links, pathfinding
build_environmentLandscape, Foliage, Procedural
manage_splinesSpline creation, spline mesh deformation
</details> <details> <summary><b>Animation & Physics</b></summary>
ToolDescription
animation_physicsAnimation BPs, Vehicles, Ragdolls, Control Rig, IK, Blend Spaces
manage_skeletonSkeleton, sockets, physics assets, cloth binding
manage_geometryProcedural mesh creation (Geometry Script)
</details> <details> <summary><b>Visuals & Effects</b></summary>
ToolDescription
manage_effectNiagara, Particles, Debug Shapes, GPU simulations
manage_material_authoringMaterial creation, expressions, landscape layers
manage_textureTexture creation, modification, compression settings
manage_blueprintCreate, SCS, Graph Editing, Node manipulation
manage_sequenceSequencer / Cinematics, list_track_types
manage_performanceProfiling, optimization, scalability
</details> <details> <summary><b>Audio & Input</b></summary>
ToolDescription
manage_audioAudio Assets, Components, Sound Cues, MetaSounds, Attenuation
manage_inputEnhanced Input Actions & Contexts
</details> <details> <summary><b>Gameplay Systems</b></summary>
ToolDescription
manage_behavior_treeBehavior Tree Graph Editing
manage_aiAI controllers, EQS, perception, State Trees, Smart Objects
manage_gasGameplay Ability System: abilities, effects, attributes
manage_characterCharacter creation, movement, advanced locomotion
manage_combatWeapons, projectiles, damage, melee combat
manage_inventoryItems, equipment, loot tables, crafting
manage_interactionInteractables, destructibles, triggers
manage_widget_authoringUMG widget creation, layout, styling, animations
</details> <details> <summary><b>Networking & Sessions</b></summary>
ToolDescription
manage_networkingReplication, RPCs, network prediction
manage_game_frameworkGame modes, game states, player controllers, match flow
manage_sessionsSessions, split-screen, LAN, voice chat
</details> ### Supported Asset Types

Blueprints • Materials • Textures • Static Meshes • Skeletal Meshes • Levels • Sounds • Particles • Niagara Systems • Behavior Trees


GraphQL API

Optional GraphQL endpoint for complex queries. Disabled by default.

env
GRAPHQL_ENABLED=true
GRAPHQL_PORT=4000

See GraphQL API Documentation.


Docker

bash
docker build -t unreal-mcp .
docker run -it --rm -e UE_PROJECT_PATH=/project unreal-mcp

Documentation

DocumentDescription
Handler MappingsTypeScript to C++ routing
GraphQL APIQuery and mutation reference
Plugin ExtensionC++ plugin architecture
Testing GuideHow to run and write tests
RoadmapDevelopment phases

Development

bash
npm run build       # Build TypeScript
npm run lint        # Run ESLint
npm run test:unit   # Run unit tests
npm run test:all    # Run all tests

Community

ResourceDescription
Project RoadmapTrack development progress across 47 phases
DiscussionsAsk questions, share ideas, get help
IssuesReport bugs and request features

Contributing

Contributions welcome! Please:

  • Include reproduction steps for bugs
  • Keep PRs focused and small
  • Follow existing code style

License

MIT — See LICENSE

常见问题

io.github.ChiR24/unreal-engine-mcp 是什么?

面向生产环境的 Unreal Engine MCP 服务器,提供全面的游戏开发工具与集成能力。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描109.6k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描109.6k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描109.6k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
82.9k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
51.5k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
46.2k

评论