unreal-mcp
Allows Claude to interact with Unreal Engine 5.3 via Remote Control API to create and manipulate 3D objects, spawn actors, modify scenes, list assets, and more.
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-mcp Create a red cube at position 100, 200, 50"
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 Engine MCP Server for Claude Desktop
This repository contains a Model Context Protocol (MCP) Python server that allows Claude Desktop to interact with Unreal Engine 5.3 (via Remote Control API), creating and manipulating 3D objects based on text prompts. This integration enables Claude to build and modify 3D scenes in Unreal Engine through natural language, representing an early step toward text-to-game-generation technology.
Current Features:
use Claude Desktop text prompts to arrange assets in Unreal Engine Editor
create static meshes for assembling primitive shapes
look up Unreal project folder for assets
list actors in the current level and inspect the current editor selection
save the current level from MCP
call arbitrary Unreal Remote Control functions
read and write Unreal object properties through the Remote Control property endpoint
direct CLI with per-command
--helpfor non-MCP agentsshared castle workflow, sample agent skill, and TLA+ use-case model
castle reset workflow and first-class castle MCP tools
Quick Start
1. Requirements
Python 3.10+
Unreal Engine 5.3 with Remote Control API (plugin) enabled
2. Installation
Clone the repository and install in editable mode:
git clone https://github.com/runeape-sats/unreal-mcp.git
cd unreal-mcp
pip install -e .This installs the unreal-mcp-cli command and makes the unreal_mcp package importable.
3. Configure MCP server
if you are using Claude Desktop → File → Settings → Developer → Edit Config
claude_desktop_config.jsonand add the following, adjusting the path to your local repository:
{
"mcpServers": {
"unreal-mcp": {
"command": "uv",
"args": ["--directory", "\\path\\to\\unreal-mcp", "run", "unreal_mcp_server.py"],
"env": {}
}
}
}If you already have other MCP servers configured (like blender-mcp), you may need to disable them to ensure they don't conflict.
4. Launch Unreal Engine
Open Unreal Engine with your project and ensure the Remote Control API plugin is enabled.
5. Launch MCP client (such as Claude Desktop)
Restart Claude Desktop (i.e., need a clean exit without Claude's icon in the system tray) to load the new configuration. You can verify if it's connected by asking Claude to create objects in Unreal Engine.
Related MCP server: UEMCP
Project Structure
unreal_mcp/ # Core package
__init__.py
server.py # MCP server — registers all tools
cli.py # Direct CLI with subcommands and --help
connection.py # HTTP connection to Unreal Remote Control API
actors.py # Actor create / modify / delete helpers
assets.py # Asset discovery and level info
remote.py # Generic Remote Control and editor helpers
utils.py # Shared constants and parsing utilities
examples/ # Example workflows (separate from core)
castle/
workflow.py # Castle build / verify / reset workflow
assets/castle-plan.json
specs/CastleConstruction.tla
tests/ # Unit tests (20 tests)
test_castle_assets.py
test_castle_workflow.py
test_unreal_cli.pyRoot-level shim modules (unreal_mcp_server.py, unreal_cli.py, etc.) re-export from unreal_mcp.* for backward compatibility.
Features
Basic Object Creation
Create primitive shapes with a variety of parameters:
Cubes, Spheres, Cylinders, Planes, Cones
Custom position, rotation, scale
Custom colors and materials
Example prompt: "Create a red cube at position 100, 200, 50"
Blueprint Actor Creation
Spawn actors from Blueprint classes:
Buildings, props, characters, etc.
Custom parameters like in Basic Object Creation
Example prompt: "Spawn a bench from the blueprint at /Game/CustomAsset/Blueprints/BP_Bench01"
Scene Manipulation
Modify existing objects:
Change position, rotation, scale
Adjust colors and materials
Toggle visibility
Example prompt: "Move the cube to position 0, 0, 100 and rotate it 45 degrees"
Editor Introspection And Selection
Inspect the current level and editor selection:
List all actors in the current level, optionally with transforms
Read the actors currently selected in the editor
Select actors by label from MCP
Save the current level after a batch of changes
Example prompt: "List all actors with 'Bench' in the label and then select them"
Generic Remote Control Access
The server now exposes a generic Remote Control escape hatch so you can reach Unreal functionality that does not yet have a dedicated MCP tool:
Call arbitrary functions on any object path
Resolve an actor label to an object path automatically
Target a component by class when reading or writing properties
Read and write properties through
/remote/object/property
This is useful for driving lights, post process volumes, components, editor subsystems, and custom Blueprint-exposed APIs without adding a new Python wrapper first.
Direct CLI Access
Agents that do not speak MCP can use the direct CLI instead:
unreal-mcp-cli --helplists all commandsunreal-mcp-cli <command> --helpshows how to use one functionCommands route directly to the same Unreal helper modules used by the MCP server
Example commands:
unreal-mcp-cli commands
unreal-mcp-cli list-level-actors --kwargs "filter=Castle max_results=20"
unreal-mcp-cli remote-call --kwargs "actor_label=SkyLight function_name=GetActorLocation"If you have not installed the editable script yet, use .venv\Scripts\python.exe unreal_cli.py --help.
Castle Skill And TLA+ Model
The repo now includes:
a reusable castle plan in
examples/castle/assets/castle-plan.jsona sample skill in
.github/skills/unreal-castle-builder/SKILL.mda TLA+ use-case model in
examples/castle/specs/CastleConstruction.tladedicated castle create, verify, and reset entry points in both the CLI and MCP server
The castle workflow is designed so an agent can inspect CLI help, build a castle from basic shapes, and verify the result by listing actors. The build workflow removes old castle actors with the same planned labels before placing the new ones by default. It now supports deterministic variation presets for layout, size, palette, and yaw while keeping the same required core actor set. The reset workflow deletes a castle by prefix, and the TLA+ model now covers retries, rebuilds, and variant selection as well as successful completion.
Asset Discovery
Search for and list available assets:
Filter by asset type (blueprints, meshes, materials)
Search in specific paths
Find assets matching certain terms
Example prompt: "List all bench static meshes in the project"
Example Prompts
Here are some example prompts you can use with Claude:
Create a blue sphere at position 0, 100, 50 with scale 2, 2, 2
Create a scene with a red cube at 0,0,0, a green sphere at 100,0,0, and a blue cylinder at 0,100,0
List all blueprint assets in the /Game/CustomAsset folder
Get information about the current level
Create a cylinder and then change its color to yellow
List all actors whose label contains Bench
Show me the actors currently selected in the editor
Select actors Bench_A, Bench_B, and Bench_C
Save the current level
Set the intensity property on actor KeyLight to 5000
Call a remote function on actor SkyLight to recapture the scene
Use the CLI help for the castle workflow
Create a castle from basic shapes with prefix SkillCastle
Create a grand sandstone courtyard castle at a new placement
Verify the SkillCastle actors exist in the level
Reset the SkillCastle actors after verificationNew MCP Tools
In addition to the existing spawn, modify, delete, and asset lookup tools, the server now exposes:
list_level_actors: List actors with optional filtering and transform dataget_selected_actors: Inspect the current Unreal Editor selectionselect_actors: Select actors by labelsave_current_level: Save the open mapremote_call: Call any Unreal Remote Control function by object path or actor labelget_object_property: Read any Unreal object propertyset_object_property: Write any Unreal object propertycreate_basic_castle: Build the shared primitive castle workflow directly from MCPverify_basic_castle: Verify the expected castle actor set by prefixreset_basic_castle: Delete castle actors by prefix or strict plan labels
The castle create entry point accepts layout, size, palette, origin, and yaw so agents can generate deliberate castle variants while the verification step still checks for the same required labels.
For complex remote_call or property writes, prefer JSON-shaped arguments so nested parameter structs survive parsing cleanly.
CLI Setup
Install the project in editable mode inside your virtual environment to get the unreal-mcp-cli command:
.venv\Scripts\python.exe -m pip install -e .
unreal-mcp-cli --helpUseful command patterns:
unreal-mcp-cli create-static-mesh-actor --help
unreal-mcp-cli create-basic-castle --prefix SkillCastle --layout courtyard --size grand --palette sandstone
unreal-mcp-cli create-basic-castle --prefix Bastion01 --origin 6000,1200,0 --yaw 45 --palette obsidian
unreal-mcp-cli list-level-actors --kwargs "filter=SkillCastle max_results=40"
unreal-mcp-cli verify-basic-castle --prefix SkillCastle
unreal-mcp-cli reset-basic-castle --prefix SkillCastle --strict-plancreate-basic-castle replaces matching old castle actors by default. Use --keep-existing only if you explicitly want overlapping duplicates.
Named presets provide controlled variation: --layout changes the footprint, --size changes the overall scale, --palette changes default colors, and --origin or --yaw change placement/orientation.
Tests
Run the automated tests with:
.venv\Scripts\python.exe -m unittest discover -s tests -vThese tests cover the CLI surface, the shared castle plan, the TLA+ actor set, and the sample skill wiring.
Troubleshooting
Connection Issues
Make sure Unreal Engine is running before starting the MCP server
Ensure the Remote Control API plugin is enabled in Unreal Engine
Check if another process is using port 30010
Verify your firewall is not blocking the connection
Objects Not Appearing
Check the output log in Unreal Engine for any errors
Make sure objects are not being created too far from the origin (0,0,0)
Try simplifying your requests to isolate issues
Logging
The server logs detailed information to the console. If you're having issues, check the logs for error messages and tracebacks.
Development
To run the server in development mode:
pip install mcp[cli]
mcp dev unreal_mcp_server.pyContributing
Contributions are welcome! This is an integration between Claude and Unreal Engine, and there's much that can be improved:
Better natural language processing for scene descriptions
More complex object creation capabilities
Supporting more Unreal Engine features
Improved error handling and feedback
License
Available Tools
21 toolscreate_basic_castleB
Create a sample castle workflow from primitive shapes.
Parameters:
kwargs: Optional key=value pairs or JSON object Supported parameters:
prefix: Actor label prefix, default Castle
origin: x,y,z base location
stone_color: r,g,b or r,g,b,a color for stone elements
roof_color: r,g,b or r,g,b,a color for roof elements
layout: classic, courtyard, bastion, or longhall
size: compact, standard, or grand
palette: granite, sandstone, moss, or obsidian
yaw: rotate the layout around the origin in degrees
replace_existing: true/false, default true
dry_run: true/false, default false
Inputs: kwargs. Returns: result
create_static_mesh_actorB
Create a new static mesh actor in the Unreal Engine level using a simpler approach.
Parameters:
kwargs: String containing parameters as key=value pairs or JSON object Example: "actor_label=Cube mesh_type=CUBE location=0,0,0"
Supported parameters:
actor_label/name: Name for the actor
mesh_type: One of CUBE, SPHERE, CYLINDER, PLANE, CONE
location: x,y,z location coordinates
rotation: pitch,yaw,roll rotation in degrees
scale: x,y,z scale factors. 1 means same scale (100%)
color: r,g,b color values (0.0-1.0)
Inputs: kwargs (required). Returns: result
delete_actorC
Delete a specific actor from the Unreal Engine level.
Parameters:
actor_label: The label/name of the actor to delete
Inputs: actor_label (required). Returns: result
get_actor_infoA
Get detailed information about a specific actor in the Unreal Engine level.
Parameters:
actor_label: The label/name of the actor to get information about
Inputs: actor_label (required). Returns: result
get_level_infoC
Get information about the current Unreal Engine level and update spatial context.
Inputs: no named parameters. Returns: result
get_object_propertyA
Read any Unreal object property through the Remote Control property endpoint.
Parameters:
kwargs: key=value pairs or JSON object Supported parameters:
object_path: Direct Unreal object path
actor_label: Actor label to resolve into an object path
component_class: Optional component class to resolve from the actor
property_name: Unreal property name to read
Inputs: kwargs (required). Returns: result
get_selected_actorsA
Get the actors currently selected in the Unreal Editor.
Inputs: no named parameters. Returns: result
get_spatial_contextA
Return the current spatial context of all actors as a JSON string.
Inputs: no named parameters. Returns: result
list_available_assetsA
List available assets of a specific type in the Unreal Engine project.
Parameters:
kwargs: String containing parameters as key=value pairs or JSON object Example: "asset_type=StaticMesh search_path=/Game/AssetName search_term=House"
Supported parameters:
asset_type: Type of assets to list (BlueprintClass, StaticMesh, Material, etc.)
search_path: Optional path to search for assets (default: /Game)
search_term: Optional term to filter results
max_results: Maximum number of results to return (default: 20)
Inputs: kwargs (required). Returns: result
list_level_actorsA
List actors in the current level.
Parameters:
kwargs: Optional key=value pairs or JSON object Supported parameters:
filter: Case-insensitive label/path substring filter
include_transforms: true/false, default true
max_results: Maximum actors to return, default 100
Inputs: kwargs. Returns: result
modify_actorB
Modify an existing actor in the Unreal Engine level.
Parameters:
kwargs: String containing parameters as key=value pairs or JSON object Example: "actor_label=Cube location=100,200,50 rotation=0,45,0"
Supported parameters:
actor_label: Label/name of the actor to modify (required)
location: x,y,z location coordinates
rotation: pitch,yaw,roll rotation in degrees
scale: x,y,z scale factors
visible: true/false to set visibility
color: r,g,b color values (0.0-1.0)
Inputs: kwargs (required). Returns: result
remote_callB
Call any Unreal Remote Control function.
Parameters:
kwargs: key=value pairs or JSON object Supported parameters:
object_path: Direct Unreal object path
actor_label: Actor label to resolve into an object path
component_class: Optional component class to resolve from the actor
function_name: Unreal function to call
parameters: JSON object of function parameters
generate_transaction: true/false, default true
Inputs: kwargs (required). Returns: result
reset_basic_castleB
Delete a castle by prefix.
Parameters:
kwargs: Optional key=value pairs or JSON object Supported parameters:
prefix: Actor label prefix, default Castle
strict_plan: true/false, default false
dry_run: true/false, default false
Inputs: kwargs. Returns: result
reset_spatial_contextA
Reset the spatial context, clearing all tracked actors.
Inputs: no named parameters. Returns: result
save_current_levelA
Save the currently open Unreal level.
Inputs: no named parameters. Returns: result
search_assets_recursivelyA
Search for assets recursively in all common subdirectories.
Parameters:
base_path: The base path to search in (e.g., '/Game/KyotoAlley')
asset_type: Optional type of assets to filter by
search_term: Optional search term to filter results
max_results: Maximum number of results (default: 50)
Inputs: base_path (required), asset_type, search_term, max_results. Returns: result
select_actorsB
Select one or more actors in the Unreal Editor.
Parameters:
kwargs: key=value pairs or JSON object Supported parameters:
actor_labels: Comma-separated list or JSON array of actor labels
replace_selection: true/false, default true
Inputs: kwargs (required). Returns: result
set_object_propertyA
Write any Unreal object property through the Remote Control property endpoint.
Parameters:
kwargs: key=value pairs or JSON object Supported parameters:
object_path: Direct Unreal object path
actor_label: Actor label to resolve into an object path
component_class: Optional component class to resolve from the actor
property_name: Unreal property name to write
property_value: Value to assign, preferably via JSON for structs
generate_transaction: true/false, default true
Inputs: kwargs (required). Returns: result
spawn_actor_from_blueprintA
Spawn a level actor based on an Unreal Blueprint class.
Parameters:
kwargs: String containing parameters as key=value pairs or JSON object Example: "actor_class=/Game/AssetName/Blueprints/BP_House0.BP_House0_C location=100,100,0 name=MyHouse"
Supported parameters:
actor_class: (required) Path to the blueprint class
actor_label/name: Name for the actor
location: x,y,z location coordinates
rotation: pitch,yaw,roll rotation in degrees
scale: x,y,z scale factors
Inputs: kwargs (required). Returns: result
spawn_static_meshB
Spawn a static mesh actor using an existing static mesh asset from the content browser.
Parameters:
kwargs: String containing parameters as key=value pairs or JSON object Example: "static_mesh=/Game/AssetName/Meshes/Bench01 location=100,100,0 name=MyBench"
Supported parameters:
static_mesh: (required) Path to the static mesh asset
actor_label/name: Name for the actor
location: x,y,z location coordinates
rotation: pitch,yaw,roll rotation in degrees
scale: x,y,z scale factors
material_override: Path to material to use
color: r,g,b color values (0.0-1.0)
Inputs: kwargs (required). Returns: result
verify_basic_castleB
Verify that a castle built from the shared plan exists in the current level.
Parameters:
prefix: Actor label prefix, default Castle
Inputs: prefix. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Some tools overlap in purpose, e.g., create_static_mesh_actor vs spawn_static_mesh both create static mesh actors, and list_available_assets vs search_assets_recursively both list assets. Also, get_actor_info vs get_object_property and modify_actor vs set_object_property share similar scopes. Descriptions help but boundaries are fuzzy.
Most tools follow a verb_noun pattern with snake_case, e.g., create_static_mesh_actor, list_level_actors. However, there are minor inconsistencies like create vs spawn for similar actions, and remote_call uses 'call' instead of a clearer noun. Overall, the pattern is readable and mostly consistent.
With 21 tools, the server covers a broad range of Unreal operations but includes several castle-specific tools (3) that seem niche. The count is high but still manageable for integration. Slight bloat due to overlapping tools.
The tool set covers actor creation/modification/deletion, asset listing, and spatial context, but lacks asset deletion, blueprint editing (beyond spawning), level management (e.g., new level), and undo support. The presence of general-purpose remote_call and set_object_property partially compensates but indicates missing high-level functionality.
Maintenance
Related MCP Connectors
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Build, edit and publish live 3D, AR and game scenes in ARClip from your AI assistant.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- AlicenseDqualityAmaintenanceEnables AI assistants to control Unreal Engine via Remote Control API for game development automation, including asset management, actor control, level editing, animation, physics, visual effects, and cinematics creation through natural language.11,054MIT
- AlicenseBqualityCmaintenanceEnables Claude to control Unreal Engine 5 editor, spawn actors, build materials, author Blueprints, and more, with zero plugin installation.31211 PyPIMIT
- FlicenseAqualityDmaintenanceBridges Claude AI to a live Unreal Engine 5 editor session, enabling natural language control of scene inspection, modification, logging, source search, console commands, and C++ class scaffolding.10-
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Unreal Engine via Remote Control API for actor, asset, level, and editor operations.2212 npmMIT