Unity MCP Server
CommunityAbout
Drive the Unity editor from Claude. Create GameObjects, edit scenes, manage assets, run play mode, and capture logs for AI-assisted game development.
Features
- Create and modify GameObjects and components
- Manage assets and prefabs
- Edit scene hierarchies
- Enter and exit play mode
- Read Unity console logs and errors
Installation
Using Claude Desktop
Add this configuration to your Claude Desktop config file:
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"unity-mcp-server"
]
}
}
}
You also need to install the companion Unity package (UnityMCP Bridge) inside your project.
Using Cursor
Configure in your Cursor settings (Settings > MCP):
{
"unity": {
"command": "uvx",
"args": [
"unity-mcp-server"
]
}
}
How to Use
Once installed, you can ask your AI assistant to:
- "Create a player prefab with a Rigidbody and Collider"
- "Spawn 10 enemies in the current scene"
- "Run the game and report console errors"
- "Refactor this MonoBehaviour for clarity"