unreal-project-mcp
Provides project-level source and configuration intelligence for Unreal Engine, enabling AI agents to search, read, and understand C++ source, config files, module dependencies, gameplay tags, replication topology, and asset references.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@unreal-project-mcp find all classes that inherit from AActor"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
unreal-project-mcp
Project-level source and configuration intelligence for Unreal Engine AI development via Model Context Protocol.
Indexes your UE project's C++ source code, config/INI files, Build.cs dependencies, plugin descriptors, gameplay tags, replication topology, asset references, and log categories into a SQLite database. Exposes 17 MCP tools for AI coding assistants like Claude Code — structural queries, config lookups, dependency graphs, and full-text search across your entire project.
Why?
AI assistants are great at writing code but struggle to understand large codebases. This server gives them structural awareness of your project — what calls what, how classes relate, where symbols are used, what config drives behavior, how modules depend on each other — so they can make informed changes instead of guessing.
Complements (does not replace):
unreal-source-mcp — Engine-level source intelligence (full UE C++ and HLSL)
unreal-editor-mcp — Build diagnostics and editor log tools (Live Coding, error parsing, log search)
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.
Related MCP server: ue-codegraph-mcp
Quick Start
Install from GitHub
uvx --from git+https://github.com/tumourlove/unreal-project-mcp.git unreal-project-mcp --indexClaude Code Configuration
Add to your project's .mcp.json:
{
"mcpServers": {
"unreal-project": {
"command": "uvx",
"args": ["--from", "git+https://github.com/tumourlove/unreal-project-mcp.git", "unreal-project-mcp"],
"env": {
"UE_PROJECT_PATH": "D:/Unreal Projects/MyProject",
"UE_PROJECT_NAME": "MyProject"
}
}
}
}Or run from local source during development:
{
"mcpServers": {
"unreal-project": {
"command": "uv",
"args": ["run", "--directory", "C:/Projects/unreal-project-mcp", "python", "-m", "unreal_project_mcp"],
"env": {
"UE_PROJECT_PATH": "D:/Unreal Projects/MyProject",
"UE_PROJECT_NAME": "MyProject"
}
}
}
}The server auto-indexes on first run if no database exists.
Tools (17)
C++ Source Intelligence
Tool | Description |
| Full-text search across project C++ source. Supports FTS, regex, and substring modes. Filter by module, path, or symbol kind. |
| Read the actual implementation of a class, function, or struct with line numbers. Shows both .h and .cpp. |
| Find all functions that call a given function. Includes heuristic delegate/binding detection. |
| Find all functions called by a given function. |
| Find all usage sites of a symbol (calls, type references, includes). |
| Show the inheritance tree for a class — ancestors, descendants, or both. |
| Module statistics: file count, symbol counts by kind, key classes. |
Config & Build Intelligence
Tool | Description |
| Look up config/INI values by key with optional section filter. Cross-references with UPROPERTY(Config) C++ symbols. |
| Full-text search across all project config/INI files (sections, keys, values). |
| Build.cs module dependency graph — dependencies, dependents, or both directions. |
| Plugin metadata, modules, and plugin-to-plugin dependencies from .uplugin files. |
| Data table struct definitions — finds FTableRowBase children and linked data tables. |
Runtime & Asset Intelligence
Tool | Description |
| Find C++ code that references assets by path ( |
| Search gameplay tag definitions and usage across C++, INI config, and CSV data tables. |
| Find log category declarations ( |
| Replicated properties and Server/Client/NetMulticast RPCs for a class or the entire project. |
| Pattern-based classifications: subsystems, anim notifies, console commands. |
CLI
# Index project source (first time)
unreal-project-mcp --index
# Rebuild from scratch
unreal-project-mcp --reindex
# Incremental update (only changed files)
unreal-project-mcp --reindex-changed
# Run as MCP server (default, used by Claude Code)
unreal-project-mcpEnvironment Variables
Variable | Required | Description |
| Yes | Path to the project root (containing Source/ and Plugins/) |
| No | Project name for the DB filename. Auto-detected from .uproject if not set. |
| No | Override DB storage location (default: |
How It Works
Discovery — Walks
Source/for game modules andPlugins/*/Source/for plugin modules. Uses the actual module subdirectory names, not plugin folder names (handles marketplace hashed folders correctly).C++ Parsing — Uses tree-sitter with the C++ grammar to build ASTs. Handles UE macros (UCLASS, UFUNCTION, UPROPERTY, etc.) with regex fallback for misparsed nodes. Extracts replication specifiers, asset path references, and log category declarations.
Config & Build Parsing — Parses UE's non-standard INI format (duplicate keys,
+/-/./!prefixes), Build.cs module dependencies, and .uplugin plugin descriptors.Post-Processing — Scans for gameplay tags across C++, INI, and CSV sources. Applies pattern-based classification to identify subsystems, anim notifies, and console commands.
Storage — SQLite with FTS5 full-text search. 19 tables covering symbols, inheritance, cross-references, config entries, asset references, gameplay tags, replication entries, module dependencies, plugins, log categories, and pattern tags.
Serving — FastMCP server exposes 17 tools over stdio. Claude Code manages the server lifecycle automatically.
What Gets Indexed
C++ Source:
Classes, structs, enums (with base classes and UE macro metadata)
Functions (declarations and definitions, with qualified names like
UMyClass::MyMethod)Variables (member variables with UPROPERTY detection)
Includes, call references, type references, inheritance relationships
Replication markers (Server/Client/NetMulticast RPCs, Replicated/ReplicatedUsing properties)
Asset path references (
TEXT("/Game/..."),LoadObject<T>,ConstructorHelpers,FSoftObjectPath)Log categories (
DECLARE_LOG_CATEGORY_EXTERN,DEFINE_LOG_CATEGORY)Docstrings (
/** */and///comments)
Config & Build:
INI config key-value pairs across all
Config/*.inifilesBuild.cs module dependencies (public, private, dynamically loaded)
Plugin descriptors (metadata, modules, plugin dependencies)
Derived Intelligence:
Gameplay tags from C++ source, INI config, and CSV data tables
Data table struct detection (FTableRowBase children)
Pattern classifications (subsystems, anim notifies, console commands)
Adding to Your Project's CLAUDE.md
## Project Intelligence (unreal-project MCP)
Use `unreal-project` MCP tools to search, read, and understand your project's C++ source,
config files, module dependencies, gameplay tags, and replication topology.
| Tool | When |
|------|------|
| `search_project` | Full-text search across project C++ source |
| `read_project_source` | Read implementation of a class/function |
| `find_project_callers` | What calls this function? |
| `find_project_references` | Find all usage sites of a symbol |
| `get_project_class_hierarchy` | Inheritance tree (ancestors/descendants) |
| `get_config_values` | Look up config/INI values by key |
| `get_module_dependencies` | Module dependency graph from Build.cs |
| `search_gameplay_tags` | Search gameplay tag definitions and usage |
| `get_replication_map` | Replicated properties and RPCs |Development
# Clone and install
git clone https://github.com/tumourlove/unreal-project-mcp.git
cd unreal-project-mcp
uv sync
# Run tests (157 tests)
uv run pytest -v
# Run locally
UE_PROJECT_PATH="/path/to/project" uv run python -m unreal_project_mcpRequirements
Python 3.11+
uv (recommended) or pip
License
MIT
Available Tools
17 toolsfind_asset_referencesB
Find C++ code that references assets by path, or find all asset paths referenced by a symbol.
Inputs: asset_path, symbol. Returns: result
find_data_table_schemaC
Show the FTableRowBase struct definition and linked data table for a data table schema.
Inputs: name (required). Returns: result
find_log_sitesB
Find where a log category is declared and all UE_LOG usage sites.
Inputs: category (required), limit. Returns: result
find_project_calleesC
Find all functions called by the given function in the project.
Inputs: function (required), limit. Returns: result
find_project_callersC
Find all functions in the project that call the given function.
Inputs: function (required), limit. Returns: result
find_project_referencesA
Find all usage sites of a symbol in the project (calls, includes, type references, etc.).
ref_kind: filter by reference kind (e.g. 'call', 'include', 'type'). Empty for all.
Inputs: symbol (required), ref_kind, limit. Returns: result
get_config_valuesB
Look up config/INI values by key name, with optional section filter. Cross-references with UPROPERTY(Config) C++ symbols.
Inputs: key (required), section. Returns: result
get_module_dependenciesB
Show Build.cs dependency graph for a module. direction: 'dependencies', 'dependents', or 'both'.
Inputs: module_name (required), direction. Returns: result
get_plugin_infoC
Show plugin metadata, modules, and dependencies.
Inputs: plugin_name (required). Returns: result
get_project_class_hierarchyB
Show the inheritance tree for a class in the project.
direction: 'ancestors' (parents), 'descendants' (children), 'both'
Inputs: class_name (required), direction, depth. Returns: result
get_project_module_infoB
Get project module statistics: file count, symbol counts by kind, and key classes.
Inputs: module_name (required). Returns: result
get_replication_mapA
Show Server/Client/NetMulticast RPCs and replicated properties for a class (or all classes).
Inputs: class_name. Returns: result
read_project_sourceA
Get the implementation source code for a class, function, or struct in the project.
Shows the actual source lines from disk with line numbers. For classes, shows both .h declaration and .cpp implementation if available.
Inputs: symbol (required), include_header, max_lines, members_only. Returns: result
search_configC
Full-text search across all project config/INI files (sections, keys, and values).
Inputs: query (required), limit. Returns: result
search_gameplay_tagsC
Search gameplay tag definitions, requests, and checks across the project.
Inputs: query (required), usage_kind. Returns: result
search_projectA
Full-text search across project source code.
scope: 'cpp' (headers+source), 'all' mode: 'fts' (default, token-based), 'regex', 'substring' module: filter to files in this module (e.g. 'MyGameModule') path_filter: filter to files whose path contains this string symbol_kind: filter symbol results by kind (class, function, struct, etc.) Returns both symbol matches and source line matches.
Inputs: query (required), scope, limit, mode, +3 more. Returns: result
search_project_tagsC
Search pattern tags: subsystems, anim_notify, console_command.
Inputs: kind, query. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool has a clearly distinct purpose, covering different aspects of Unreal Engine project analysis such as references, config, module dependencies, and source reading. Overlap is minimal and well-documented through distinct parameters.
All tool names follow a consistent verb_noun pattern in snake_case, using descriptive verbs like find, get, read, search. This makes the tool surface predictable and easy to navigate.
Seventeen tools is an appropriate number for the server's scope of analyzing Unreal Engine project code, config, and dependencies. Each tool adds value without overwhelming the user.
The tool set covers major analysis tasks: symbol references, config values, module dependencies, plugin info, class hierarchy, source reading, and various specialized searches. There are no obvious gaps for the stated purpose of project code analysis.
Maintenance
Related MCP Connectors
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides deep source code analysis for Unreal Engine codebases, allowing AI assistants to understand C++ class structures, search code, and analyze subsystems.161MIT
- FlicenseAqualityCmaintenanceAn MCP server for indexing and querying Unreal Engine C++ codebases using a local SQLite database. It enables users to analyze call graphs, class structures, and Blueprint-exposed symbols through tools integrated with Claude Code.162-
- AlicenseAqualityAmaintenanceExposes tools for AI assistants to query a persistent SQLite+FTS5 index of C/C++ symbols parsed from real build commands, enabling sub-millisecond lookup, full-text search, and natural-language explanation without hallucination.37509 PyPI10MIT
- AlicenseNot gradedqualityFmaintenanceIndexes Unreal Engine source code into a local database, providing AI coding assistants with deep structural queries like class hierarchies, call graphs, and full-text search across all engine source files.MIT