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.
Clone the repository and install required packages:
git clone https://github.com/runeape-sats/unreal-mcp.git
cd unreal-mcp
pip install uv mcp requests
Go to Claude Desktop → File → Settings → Developer → Edit Config claude_desktop_config.json
and 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": {}
}
}
}
Open Unreal Engine with your project and ensure the Remote Control API plugin is enabled.
Restart Claude Desktop to load the new configuration. You can verify if it's connected by asking Claude to create objects in Unreal Engine.
The server is organized into several modules:
unreal_mcp_server.py
- Main entry point that registers MCP toolsunreal_connection.py
- Handles communication with Unreal Engineunreal_actors.py
- Functions for creating and manipulating actorsunreal_assets.py
- Functions for working with assets and level infounreal_utils.py
- Utility functions and constantsCreate primitive shapes with a variety of parameters:
Example prompt: "Create a red cube at position 100, 200, 50"
Spawn actors from Blueprint classes:
Example prompt: "Spawn a bench from the blueprint at /Game/CustomAsset/Blueprints/BP_Bench01"
Modify existing objects:
Example prompt: "Move the cube to position 0, 0, 100 and rotate it 45 degrees"
Search for and list available assets:
Example prompt: "List all bench static meshes in the project"
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
The server logs detailed information to the console. If you're having issues, check the logs for error messages and tracebacks.
To run the server in development mode:
pip install mcp[cli]
mcp dev unreal_mcp_server.py
Contributions are welcome! This is an integration between Claude and Unreal Engine, and there's much that can be improved:
Unreal Engine MCP server for Claude Desktop (early alpha preview)