MCP for Unity is a bridge that allows AI assistants like Claude and Cursor to interact directly with Unity Editor through MCP protocol, enabling natural language control, asset management, scene control, and workflow automation.
Gets messages from or clears the console.
Manages C# scripts (create, read, update, delete).
Controls and queries the editor's state and settings.
Manages scenes (load, save, create, get hierarchy, etc.).
Performs asset operations (import, create, modify, delete, etc.).
Performs shader CRUD operations (create, read, modify, delete).
Manages GameObjects: create, modify, delete, find, and component operations.
Executes a menu item via its path (e.g., "File/Save Project").
Precise text edits with precondition hashes and atomic multi-edit batches.
Structured C# method/class edits (insert/replace/delete) with safer boundaries.
Fast validation (basic/standard) to catch syntax/structure issues before/after writes.
{
"servers": {
"unityMCP": {
"command": "uv",
"args": ["--directory","/Users/YOUR_USERNAME/Library/AppSupport/UnityMCP/UnityMcpServer/src","run","server.py"],
"type": "stdio"
}
}
}