Autonomous Unity development for AI agents. Compile code and run tests directly in the Unity Editor.
12 stars on GitHub with MIT open source license
Self-contained single binary — only 1MB memory when idle, 10MB with Unity Editor
Comes with 2 MCP tools: Asset Database Refresh and Test Execution
Unity Code MCP is a high-performance, coding-focused MCP server built in Rust that enables AI agents to autonomously develop Unity code. It handles Unity's compilation cycles gracefully and provides two essential tools: asset database refresh (for compilation feedback) and test execution. The server is lightweight (1MB idle, 10MB with Unity open) and communicates via UDP, minimizing system load. AI agents can write code, compile, fix errors, run tests, and iterate—just like a human developer. No runtime dependencies (no Node.js, Python, or .NET) are required.
Yes, it works with any Unity project that supports the Unity Editor. It communicates via UDP and does not depend on specific Unity Editor versions.
No, Unity Code MCP is a single binary with zero runtime dependencies. Just download and run.
Start the MCP server and configure your AI client (e.g., Claude, Cursor) to use it as an MCP tool. Then the AI can call refresh_asset_database and run_tests directly.
Install Unity Code MCP to get started:
Or visit the project page for detailed setup instructions.