unreal-editor-mcp
Provides build diagnostics and editor log tools for Unreal Engine AI development, enabling Live Coding builds, parsing compile errors, searching/filtering logs, and crash context.
README
unreal-editor-mcp
Build diagnostics and editor log tools for Unreal Engine AI development via Model Context Protocol.
Gives AI assistants the ability to trigger Live Coding builds, inspect parsed compile errors, search/filter editor logs, and get crash context — the "feedback loop" for C++ iteration without leaving the AI workflow.
Why?
When iterating on C++ in UE, the build-test cycle is invisible to AI assistants. They can write code but can't compile it, see if it worked, or read the editor's output. This server closes that loop.
Complements (does not replace):
- unreal-source-mcp — Engine-level source intelligence (full UE C++ and HLSL)
- unreal-project-mcp — Project-level source intelligence (your C++ code)
- unreal-blueprint-mcp — Blueprint graph reading (nodes, pins, connections, execution flow)
- unreal-blueprint-reader — C++ editor plugin that serializes Blueprint graphs to JSON for AI tooling
- unreal-material-mcp — Material graph intelligence, editing, and procedural creation (46 tools: expressions, parameters, instances, graph building, templates, C++ plugin)
- unreal-config-mcp — Config/INI intelligence (resolve inheritance chains, search settings, diff from defaults, explain CVars)
- unreal-animation-mcp — Animation data inspector and editor (sequences, montages, blend spaces, ABPs, skeletons, 62 tools)
- unreal-niagara-mcp — Niagara VFX intelligence and editing (emitters, modules, HLSL generation, procedural creation, 70 tools)
- unreal-api-mcp by Nico Bailon — API surface lookup (signatures, #include paths, deprecation warnings)
Together these servers give AI agents full-stack UE understanding: engine internals, API surface, your project code, build/runtime feedback, Blueprint graph data, config/INI intelligence, material graph inspection + editing, animation data inspection + editing, and Niagara VFX inspection + creation.
Prerequisites
- Python Remote Execution must be enabled in the editor: Edit > Project Settings > search "remote" > under Python Remote Execution, check "Enable Remote Execution?". This allows the server to discover and communicate with the running editor. Without it, log tools still work but build triggering will fail.
Quick Start
Install from GitHub
uvx --from git+https://github.com/tumourlove/unreal-editor-mcp.git unreal-editor-mcp
Claude Code Configuration
Add to your project's .mcp.json:
{
"mcpServers": {
"unreal-editor": {
"command": "uvx",
"args": ["--from", "git+https://github.com/tumourlove/unreal-editor-mcp.git", "unreal-editor-mcp"],
"env": {
"UE_PROJECT_PATH": "D:/Unreal Projects/MyProject"
}
}
}
}
Or run from local source during development:
{
"mcpServers": {
"unreal-editor": {
"command": "uv",
"args": ["run", "--directory", "C:/Projects/unreal-editor-mcp", "python", "-m", "unreal_editor_mcp"],
"env": {
"UE_PROJECT_PATH": "D:/Unreal Projects/MyProject"
}
}
}
}
Tools
Build Tools (5)
| Tool | Description |
|---|---|
trigger_build |
Trigger a Live Coding compile via the editor's Python bridge. Returns a build ID for tracking. |
get_build_status |
Check build state: building, succeeded, or failed. Shows error/warning counts. |
get_build_errors |
Get parsed build errors with file, line, error code, and message. Filter by module or severity. |
get_build_summary |
Overview of the latest build: error count, warning count, duration. |
search_build_output |
Regex search across raw build output from the latest build. |
Log Tools (6)
| Tool | Description |
|---|---|
get_recent_logs |
Last N log lines, filterable by category (e.g. LogTemp, LogNet) and severity (Error, Warning, etc). |
search_logs |
Regex search across the current session's log buffer. |
get_log_categories |
List all active log categories with their message counts. |
get_crash_context |
Last Fatal log entries + crash report directory info from Saved/Crashes/. |
tail_log |
Recent log output (last N seconds). |
get_log_stats |
Error/warning breakdown per category, most active categories. |
Environment Variables
| Variable | Required | Description |
|---|---|---|
UE_PROJECT_PATH |
Yes | Path to the UE project root (containing the .uproject file) |
UE_EDITOR_PYTHON_PORT |
No | TCP port for command connection (default: 6776) |
UE_MULTICAST_GROUP |
No | UDP multicast group for editor discovery (default: 239.0.0.1) |
UE_MULTICAST_PORT |
No | UDP multicast port (default: 6766) |
UE_MULTICAST_BIND |
No | Multicast bind address (default: 127.0.0.1) |
How It Works
Editor Bridge — Discovers the running UE editor via UDP multicast (the same protocol as UE's built-in remote_execution.py). Opens a TCP command channel to execute Python in the editor. Used to trigger Live Coding compiles via LiveCoding.Compile console command.
Log Tailer — A background thread polls the project's Saved/Logs/{ProjectName}.log every 500ms. On startup, reads the last 1000 lines to pre-populate. Maintains a rolling buffer of 10,000 parsed log entries in memory. All log tools query this buffer.
Build Manager — When a build is triggered, monitors LogLiveCoding log entries to detect completion ("Live coding succeeded" / "Live coding failed"). Parses MSVC error format (file(line): error C1234: message) from build output. Keeps a rolling history of the last 5 builds.
No database — all state lives in memory. The server is stateless across restarts.
Development
# Clone and install
git clone https://github.com/tumourlove/unreal-editor-mcp.git
cd unreal-editor-mcp
uv sync
# Run tests (57 tests)
uv run pytest -v
# Run locally
UE_PROJECT_PATH="/path/to/project" uv run python -m unreal_editor_mcp
Adding to Your Project's CLAUDE.md
If your UE project has a CLAUDE.md (used by Claude Code for project context), add a note so the AI knows build and log tools are available:
## MCP Servers
- **unreal-editor-mcp** is configured. Use `trigger_build` to compile via Live Coding,
`get_build_errors` to inspect failures, and `get_recent_logs` / `search_logs` to
check editor output. Always check build results after modifying C++ code.
Requirements
- Python 3.11+
- uv (recommended) or pip
- Unreal Engine 5.x with Python plugin and Remote Execution enabled
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。