UnrealEngineMCP
by gimmeDG
README.md
# Unreal Engine MCP
[](https://www.unrealengine.com)
[](https://www.python.org)
[](https://github.com/gimmeDG/UnrealEngine5-mcp)
MCP tool that enables natural language control of Unreal Engine 5.6+.
Designed for large-scale projects with specialized Blueprint workflow support.
Build node graphs, create GameplayAbilities, and automate editor tasks through MCP client.
Includes RAG-powered Python scripting with Unreal Python API documentation.
## š¬ Demo

*Homing Cluster Grenade - Lyra grenade + MCP-generated Blueprints (GA, skill system)*
## ā Features
| Category | Description |
|----------|-------------|
| **Blueprint Tools** | Create blueprints, add components, build node graphs, manage variables, connect pins |
| **GAS (Gameplay Ability System)** | Create GameplayAbilities, GameplayEffects, AbilityTasks with full graph construction |
| **Editor Tools** | Spawn actors, create materials, manipulate transforms, search assets |
| **RAG Search** | Search Unreal Python API docs with BM25 |
| **Python Execution** | Execute Python code in Unreal with RAG-powered documentation lookup |
| **PCG Tools** | Create PCG graphs, add nodes, connect edges *(Early stage - in development)* |
## š Architecture
```
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Claude Desktop / Cursor (Client) ā
ā LLM reasoning & tool invocation ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Protocol (stdio)
āāāāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Python MCP Server ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Tools ā ā
ā ā ⢠editor_tool - Actor/asset manipulation ā ā
ā ā ⢠blueprint_tool - Blueprint/GAS node graphs ā ā
ā ā ⢠pcg_tool - PCG graph construction ā ā
ā ā ⢠rag_tool - API search & Python execution ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā TCP
āāāāāāāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Unreal Engine C++ Plugin ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Command Handlers ā ā
ā ā ⢠EditorCommands - Level actor operations ā ā
ā ā ⢠BlueprintCommands - BP asset & node graph editing ā ā
ā ā ⢠PCGCommands - PCG graph manipulation ā ā
ā ā ⢠PythonExecutor - Python script execution ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
RAG System (BM25):
⢠Provides Unreal Python API documentation search
⢠Used by execute_unreal_python on failure for error recovery
⢠No external API keys required
```
## š Start Guide
### Requirements
| Component | Version |
|-----------|---------|
| **Unreal Engine** | 5.6+ |
| **Python** | 3.11 |
| **Claude Desktop** or **Cursor** | Latest |
> **Note:** `uv` package manager is recommended but will be installed automatically if not present.
### 1. Clone Repository
```bash
git clone https://github.com/gimmeDG/UnrealEngine5-mcp.git
cd UnrealEngine5-mcp
```
### 2. Setup Unreal Engine Plugin
1. Copy `Plugins/UnrealEngineMCP` folder to your Unreal project's `Plugins/` directory
2. Open your project in Unreal Editor
3. Enable the plugin: **Edit ā Plugins ā Search "UnrealEngineMCP" ā Enable**
4. Restart Unreal Editor
### 3. Configure MCP Client
#### Claude Desktop
**Windows** - Edit `%APPDATA%\Claude\claude_desktop_config.json`:
```json
{
"mcpServers": {
"UnrealEngineMCP": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\unreal-engine-mcp",
"run",
"main.py"
]
}
}
}
```
**macOS** - Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"UnrealEngineMCP": {
"command": "uv",
"args": [
"--directory",
"/path/to/unreal-engine-mcp",
"run",
"main.py"
]
}
}
}
```
#### Cursor
**Settings ā MCP ā Add Server** with the same configuration:
```json
{
"UnrealEngineMCP": {
"command": "uv",
"args": [
"--directory",
"/path/to/unreal-engine-mcp",
"run",
"main.py"
]
}
}
```
### 4. (Optional) Environment Setup
```bash
cp .env.example .env
# Edit .env if you need to change default settings
```
Default configuration works out of the box. The server will:
- Automatically create virtual environment
- Install all dependencies
- Generate BM25 index on first run
## š ļø Available Tools
### Editor Tools (21 tools)
| Category | Tools |
|----------|-------|
| **Actor** | `spawn_actor`, `spawn_blueprint_actor`, `delete_actor`, `list_level_actors`, `set_actor_transform`, `get_actor_properties`, `set_actor_property` |
| **Material** | `create_material`, `apply_material_to_actor`, `get_actor_material_info` |
| **Search** | `search_actors`, `search_assets`, `list_folder_assets`, `list_gameplay_tags` |
| **World Partition** | `get_world_partition_info`, `search_actors_in_region`, `load_actor_by_guid`, `set_region_loaded`, `list_level_instances`, `get_level_instance_actors` |
| **Utility** | `get_connection_status` |
### Blueprint Tools (47 tools)
| Category | Tools |
|----------|-------|
| **Core** | `create_blueprint`, `compile_blueprint`, `analyze_blueprint`, `create_child_blueprint`, `list_graphs` |
| **Component** | `add_component_to_blueprint`, `set_component_property`, `set_physics_properties`, `delete_component_from_blueprint`, `apply_material_to_blueprint`, `get_blueprint_material_info`, `set_mesh_material_color` |
| **Variable** | `add_blueprint_variable`, `add_blueprint_variable_node`, `get_blueprint_variables`, `delete_blueprint_variable` |
| **Node Graph** | `add_blueprint_event_node`, `add_custom_event_node`, `add_blueprint_function_node`, `add_blueprint_flow_control_node`, `add_function_override`, `add_blueprint_input_action_node`, `add_component_getter_node`, `add_property_get_set_node`, `add_blueprint_self_reference`, `add_blueprint_generic_node`, `list_blueprint_nodes`, `connect_blueprint_nodes`, `connect_nodes`, `set_pin_default_value`, `get_pin_value`, `set_node_property`, `disconnect_blueprint_nodes`, `delete_blueprint_node`, `add_pin`, `delete_pin`, `add_comment_box` |
| **GAS** | `create_gameplay_effect`, `create_gameplay_ability`, `add_ability_task_node`, `explore_gas_context`, `list_attribute_sets`, `get_attribute_set_info`, `build_ability_graph` |
| **Reflection** | `search_functions`, `get_class_functions`, `get_class_properties` |
### RAG Tools (2 tools)
| Tool | Description |
|------|-------------|
| `search_unreal_api` | Search Unreal Python API documentation using BM25 |
| `execute_unreal_python` | Execute Python code in Unreal Engine with safety validation |
### PCG Tools (13 tools) - *Early Stage*
> **In Development**: PCG tools are functional but still being refined.
| Category | Tools |
|----------|-------|
| **Graph** | `create_pcg_graph`, `analyze_pcg_graph`, `set_pcg_graph_to_component` |
| **Node** | `add_pcg_sampler_node`, `add_pcg_filter_node`, `add_pcg_transform_node`, `add_pcg_spawner_node`, `add_pcg_attribute_node`, `add_pcg_flow_control_node`, `add_pcg_generic_node`, `list_pcg_nodes`, `connect_pcg_nodes`, `disconnect_pcg_nodes`, `delete_pcg_node` |
## š License
MIT License
## š¬ Feedback
Found a bug or have a suggestion? [Open an issue](https://github.com/gimmeDG/UnrealEngine5-mcp/issues).
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues