ue-codegraph-mcp
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
Related MCP server: MCP Local Codebase Search
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceAn MCP server that provides semantic understanding of C++ codebases using libclang, allowing Claude to instantly find classes, functions, and their relationships without having to grep through thousands of files.32MIT
- Flicense-qualityDmaintenanceAn MCP server that indexes local Python projects into a SQLite database to enable efficient symbol searching and dependency tracking. It allows users to find function or class definitions, trace module imports, and read file contents through natural language interfaces.
- Alicense-qualityDmaintenanceA local, SQLite-backed code index for Claude Code, exposed over MCP, enabling targeted code retrieval without external APIs.1MIT
- Flicense-qualityBmaintenanceRead-only MCP server that gives Claude live access to your UE5 project state — Blueprints, interfaces, variables, functions, event graphs, materials, structs, and Data Assets.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server giving Claude AI access to 22+ NYC public-record databases for real estate due diligence
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/YomenStyle/ue-codegraph-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server