MCP for Unity links Model Context Protocol clients to the Unity Editor. AI assistants can manage scenes, scripts, assets, tests, and builds through many tools.
Overview
Unity MCP sits between an MCP client such as Claude, Cursor, or VS Code and a running Unity Editor. A Python server routes protocol traffic to a C# editor plugin that executes commands on the Unity main thread and returns structured results.
Clients gain dozens of tool entrypoints grouped for scenes, GameObjects, scripts, assets, materials, tests, profiling, and builds. Multi-instance routing lets one session target a specific Editor when several projects are open. Transport can use HTTP for remote or shared setups or stdio for single-client desktops.
Install the package through Unity Package Manager from a git URL, then configure detected MCP clients from the editor window. Requirements include Unity 2021.3 LTS through Unity 6 and Python 3.10 or newer via uv. Tool groups can be enabled per session to limit exposed capabilities.
Custom tools can register through C# attributes, and documentation is generated from the tool registry. The project is distributed under MIT and is not affiliated with Unity Technologies; a separate commercial Aura product is mentioned as related but distinct.
Key features
- Fifty MCP tools for Editor control
- Python FastMCP server routing
- Unity Editor C# plugin
- Multi-instance Editor routing
- HTTP or stdio MCP transport
- Per-session tool group visibility
- Auto-configure common MCP clients
- Extensible custom tool registration
Use cases
- AI-driven scene setup
- Natural-language Editor automation
- Script and asset edits via LLM
- Running Unity tests from agents
- Game dev workflow automation