Unity Code MCP is a MCP server that enables AI agents to work on Unity project autonomously, by providing tools to compile code and run tests in Unity Editor.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"unity_code_mcp": {
"command": "cargo",
"args": [
"run",
"--",
"unity_code_mcp"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add unity_code_mcp cargo run -- unity_code_mcp
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"unity_code_mcp": {
"command": "cargo",
"args": [
"run",
"--",
"unity_code_mcp"
]
}
}
}
📋 Copy