UnrealMCP is an Unofficial Unreal Engine plugin that implements the Machine Control Protocol (MCP), allowing AI assistants like Claude for Desktop and Cursor to interact with and manipulate Unreal Engine programmatically. The plugin creates a communication bridge that enables AI tools to perform various operations within your Unreal projects.
Run setup_unreal_mcp.bat
in the MCP folder
Open your Unreal project and enable the plugin in Edit > Plugins (if not already enabled)
The script should automatically configure Claude for Desktop, but if needed, manually edit:
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"unreal": {
"command": "C:/path/to/your/project/Plugins/UnrealMCP/MCP/run_unreal_mcp.bat",
"args": []
}
}
}
Run setup_cursor_mcp.bat
in the MCP folder
Open your Unreal project and enable the plugin in Edit > Plugins (if not already enabled)
If needed, manually edit:
Windows: %APPDATA%\Cursor\User\settings.json
{
"mcp": {
"enabled": true,
"servers": {
"unreal": {
"command": "C:/path/to/your/project/Plugins/UnrealMCP/MCP/run_unreal_mcp.bat",
"args": []
}
}
}
}
LogMCP
for additional informationYou can also use the provided Python scripts to interact with Unreal Engine programmatically:
from unreal_mcp_client import UnrealMCPClient
# Connect to the Unreal MCP server
client = UnrealMCPClient("localhost", 13377)
# Example: Create a cube in the scene
client.create_object(
class_name="StaticMeshActor",
asset_path="/Engine/BasicShapes/Cube.Cube",
location=(0, 0, 100),
rotation=(0, 0, 0),
scale=(1, 1, 1),
name="MCP_Cube"
)
The plugin supports various commands for scene manipulation:
⚠️ IMPORTANT: This plugin allows AI agents to directly modify your Unreal Engine project.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.