This project enables AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
This project is currently in an EXPERIMENTAL state. The API, functionality, and implementation details are subject to significant changes. While we encourage testing and feedback, please be aware that:
The Unreal MCP integration provides comprehensive tools for controlling Unreal Engine through natural language:
Category | Capabilities |
---|---|
Actor Management | • Create and delete actors (cubes, spheres, lights, cameras, etc.) • Set actor transforms (position, rotation, scale) • Query actor properties and find actors by name • List all actors in the current level |
Blueprint Development | • Create new Blueprint classes with custom components • Add and configure components (mesh, camera, light, etc.) • Set component properties and physics settings • Compile Blueprints and spawn Blueprint actors • Create input mappings for player controls |
Blueprint Node Graph | • Add event nodes (BeginPlay, Tick, etc.) • Create function call nodes and connect them • Add variables with custom types and default values • Create component and self references • Find and manage nodes in the graph |
Editor Control | • Focus viewport on specific actors or locations • Control viewport camera orientation and distance |
All these capabilities are accessible through natural language commands via AI assistants, making it easy to automate and control Unreal Engine workflows.
MCPGameProject
MCPGameProject/Plugins/UnrealMCP
Python/unreal_mcp_server.py
unreal_mcp_server.py
tools
directoryMCPGameProject/ - Example Unreal project
Python/ - Python server and tools
Docs/ - Comprehensive documentation
For getting started quickly, feel free to use the starter project in MCPGameProject
. This is a UE 5.5 Blank Starter Project with the UnrealMCP.uplugin
already configured.
.sln
)Development Editor
as your target.Otherwise, if you want to use the plugin in your existing project:
Copy the plugin to your project
MCPGameProject/Plugins/UnrealMCP
to your project's Plugins folderEnable the plugin
Build the plugin
See Python/README.md for detailed Python setup instructions, including:
Use the following JSON for your mcp configuration based on your MCP client.
{
"mcpServers": {
"unrealMCP": {
"command": "uv",
"args": [
"--directory",
"<path/to/the/folder/PYTHON>",
"run",
"unreal_mcp_server.py"
]
}
}
}
An example is found in mcp.json
Depending on which MCP client you're using, the configuration file location will differ:
MCP Client | Configuration File Location | Notes |
---|---|---|
Claude Desktop | ~/.config/claude-desktop/mcp.json | On Windows: %USERPROFILE%\.config\claude-desktop\mcp.json |
Cursor | .cursor/mcp.json | Located in your project root directory |
Windsurf | ~/.config/windsurf/mcp.json | On Windows: %USERPROFILE%\.config\windsurf\mcp.json |
Each client uses the same JSON format as shown in the example above. Simply place the configuration in the appropriate location for your MCP client.
MIT
For questions, you can reach me on X/Twitter: @chongdashu
{
"mcpServers": {
"unrealMCP": {
"args": [
"--directory",
"<path/to/the/folder/PYTHON>",
"run",
"unreal_mcp_server.py"
],
"command": "uv"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.