Click on "Install 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., "@ue-codegraph-mcpFind all functions that call TakeDamage"
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.
ue-codegraph-mcp
MCP server for indexing and querying Unreal Engine C++ codebases.
Indexes your UE project's Source/ directory into a local SQLite database and exposes 15 MCP tools so Claude Code can answer questions about call graphs, class structure, #include dependencies, and Blueprint-exposed symbols — without reading raw files every time.
Features
Call graph analysis — find all callers of a function, trace call chains from A → B
Class analysis — methods, fields, base classes, UE macros (
UCLASS,UPROPERTY,UFUNCTION)Blueprint exposure — list all
BlueprintCallablefunctions andBlueprintReadWriteproperties#includedependency graph — what a file includes, and what includes it (transitive support)Symbol search — FTS5 full-text search across 40k+ symbols with prefix matching
Incremental indexing — re-indexes only changed files (hash + mtime based)
Standalone CLI — use
ue-graphcommands directly from the terminal without Claude
Prerequisites
Requirement | Version | Check |
Node.js | 22 LTS |
|
npm | 9+ |
|
Claude Code | latest |
|
Node.js 22 LTS is required. Odd-numbered "Current" releases (v23, v25, etc.) are incompatible with tree-sitter's native bindings and will fail to parse files.
Installation
1. Install Node.js 22 LTS
Download from https://nodejs.org (click the LTS tab) or use winget:
winget install OpenJS.NodeJS.LTS2. Run setup.bat
cd C:\path\to\ue-codegraph-mcp
.\setup.batsetup.bat will:
Verify Node.js 22 LTS
Install
node-gypglobally (needed for native module builds)Run
npm install(builds tree-sitter and better-sqlite3 from source)Run
npm linkto register theue-graphCLI globallyOptionally index your project and generate
mcp.json
If the native build fails, install Visual Studio Build Tools with the C++ build tools workload, then re-run
setup.bat.
3. Index your project
ue-graph index "G:\YourProject\Source" my-projectOutput:
Indexing G:\YourProject\Source as "my-project" (project)...
Done!
Files: 1784 (new: 1784, changed: 0)
Symbols: 45623
Macros: 3210
Calls: 28450
Includes: 9120
Time: 32.5s4. Register with Claude Code
claude mcp add -s user ue-codegraph node "C:\path\to\ue-codegraph-mcp\build\index.js"Verify with claude mcp list. Then start Claude Code in your project directory and run /mcp to confirm the server is connected.
Usage in Claude Code
Once registered, Claude automatically uses the MCP tools when you ask natural-language questions:
"Find everything that calls SetHP"
"Trace the call chain from DamageMyPlayer to ApplyDamage"
"Analyze the UAMirLuaManager class"
"Which files include AMirCharacter.h?"
"Show all BlueprintCallable functions in UAMirAbilityComponent"CLI Commands
Use ue-graph directly from the terminal without Claude Code.
Index management
ue-graph index <path> [name] # Index a codebase
ue-graph status # Show indexed codebases and stats
ue-graph reindex <file_path> # Re-index a single file after changes
ue-graph delete <id|name|all> # Remove a codebase from the indexCall graph
ue-graph callers SetHP # Who calls SetHP?
ue-graph callees BeginPlay # What does BeginPlay call?
ue-graph chain DamageMyPlayer SetHP # Call path from A to BClass analysis
ue-graph analyze UAMirLuaManager # Methods, fields, UE macros
ue-graph hierarchy AAMirCharacter # Inheritance tree (up + down)
ue-graph blueprint UAMirLuaManager # Full Blueprint interfaceSearch
ue-graph search "SetHP" # FTS symbol search
ue-graph code "CL2LG_MY_CHARACTER_SPAWN_REQ" # Code text pattern search
ue-graph refs DamageMyPlayer # Where is this symbol used?UE Macros
ue-graph macros UFUNCTION # All UFUNCTION macros
ue-graph macros UFUNCTION BlueprintCallable # Filter by specifier
ue-graph deps "G:\...\MyActor.h" # #include dependency graphMCP Tools Reference
Tool | Description |
| Index a UE source directory |
| Show registered codebases and stats |
| Re-index a single file |
| Find all callers of a function |
| Find all functions called by a function |
| Shortest call path from function A to B |
|
|
| Class methods, fields, UE macros, base classes |
| Ancestor and descendant class tree |
| Search UE macros by type and specifier |
| Get specifiers for a specific symbol's macro |
| All |
| Full Blueprint interface of a class |
| FTS5 symbol search |
| Code text pattern search |
| Cross-reference lookup |
Known Limitations
Issue | Workaround |
| Use Grep + Read instead |
Parent class lookup broken when | Use |
| Use unique function names or |
Troubleshooting
All files fail with Invalid argument during indexing
→ Wrong Node.js version. Install Node.js 22 LTS, delete node_modules/, re-run setup.bat.
Native build errors (node-gyp, better-sqlite3)
→ Install Visual Studio Build Tools (C++ workload), then re-run setup.bat.
MCP server not visible in Claude Code
→ Confirm the path in claude mcp list is an absolute path. Restart Claude Code and run /mcp.
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.