AI Game Developer (Unity-MCP) connects MCP clients to Unity so agents can query and change scenes, run C#, tests, and screenshots. It ships as a Unity package, CLI, and local or cloud MCP server modes
Overview
Unity MCP links AI coding agents such as Claude Code, Cursor, Copilot, Gemini, and other MCP clients to the Unity Editor. The plugin registers tools with an MCP server; agents call them to inspect and edit GameObjects, assets, prefabs, packages, and C# scripts, run EditMode or PlayMode tests, and capture Game View screenshots.
You install the com.ivanmurzak.unity.mcp package into Unity 2022.3 or newer, then connect in Cloud mode with browser authorization or Custom mode with a local server on loopback without an account. A unity-mcp-cli supports setup, login, compile, and test from terminals and CI. Tools include an RQL query language to read and mutate editor state in fewer calls than one-action reflection tools.
Custom C# methods can become agent tools with AiTool attributes. Optional UPM extensions add Animation, Cinemachine, Input System, Navigation, and similar domain tools. Runtime use inside built games is opt-in via UNITY_MCP_RUNTIME. Local servers support none or token auth; cloud relay routes calls without storing project source per the stated privacy model.
Key features
- MCP tools for Unity Editor
- RQL query and mutate scene state
- C# execution and test runs
- Isolated Game View screenshots
- unity-mcp-cli for CI and setup
- Cloud or local MCP transport
- Custom AiTool C# methods
- Optional feature extensions
Use cases
- AI-driven scene and asset edits
- Automated EditMode test fixes
- Terminal-driven Unity project queries
- In-game debug tools via MCP runtime