Repository navigation
Home
Unity MCP (AI Game Developer) connects AI agents such as Claude Code, Codex, Cursor, GitHub Copilot and Gemini to the Unity Editor and to your built game through the Model Context Protocol. The agent reads and changes scenes, assets and settings, writes and runs C#, runs tests and takes screenshots. It is free for game development, commercial games included, and open source (Apache-2.0; see the FAQ for the RQL and Code-Exec license), for Unity 2022.3 and newer.
✅ RQL — read and change scenes, assets and settings with one query language
✅ C# and tests — write scripts, run C# with Roslyn, run EditMode/PlayMode tests
✅ Screenshots — let the agent see the Scene View, Game View or one object
✅ Skills or MCP — auto-generate skills or configure MCP for popular AI agents
✅ CLI — install, open, test and query projects from a terminal
✅ Runtime — run AI tools inside your built game
✅ Extensible — turn any C# method into a tool with one attribute
Since 1.0.0 most Editor work goes through RQL, a query language over the Editor's data: rql-query reads, rql-mutate changes and rql-schema describes what is available. A few focused tools cover screenshots, C# execution, tests and packages. Together they let the agent do virtually anything you can do in the Unity Editor (see the prompts in Examples and Tutorials). The tools are compact by design, so the agent needs fewer calls and tokens: see AI Tools Reference.
- Getting Started — first AI-driven change in a few minutes
-
Installation Guide — installer,
unity-mcp-cli, OpenUPM, extensions, updates - Configuration — Cloud and Custom modes, tool visibility, overrides
- Server Setup — the shared GameDev-MCP-Server: automatic, binary or Docker
- AI Tools Reference — every built-in tool and RQL source
- Custom Tools Development — turn any C# method into an MCP tool
- API Reference — attributes, threading, runtime (in-game) API
- Examples and Tutorials — prompts and RQL one-liners for everyday tasks
- Troubleshooting · FAQ · Contributing
- Repository: IvanMurzak/Unity-MCP · README · CLI README
- MCP server: IvanMurzak/GameDev-MCP-Server
- Tools registry online: ai-game.dev/docs/tools
- Community: Discord · Issues