Model or dataset
IvanMurzak/Unity-MCP avatar
IvanMurzak/Unity-MCP

Unity-MCP: A Unity Editor and Runtime Bridge for AI Agents

AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.

4,273 stars378 forksC#Apache-2.0

At a glance

What is it?
Unity-MCP connects AI assistants like Claude and Cursor to Unity projects through MCP, with tools for code generation, debugging, and even runtime AI behaviors. This review assesses its architecture, setup, and practical limits for game developers.
Who is it for?
Adopt Unity-MCP if you are a Unity developer using Claude, Codex, Cursor, or similar AI tools and want a single integration that covers both Editor workflows and in-game runtime AI, with no vendor lock-in. Skip it if you need a stable, production-grade solution without the overhead of managing a third-party server, OAuth sign-in, and a package in active development.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly C#, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What Unity-MCP Actually Solves

Unity developers who want AI assistance typically paste code into a chat window and copy results back. Unity-MCP replaces that loop with a direct bridge: an AI agent can inspect the Editor, run commands, read files, and even test game mechanics. The project's README states it works as an MCP server for Editor and Runtime, connecting tools like Claude, Cursor, and Windsurf to Unity. The runtime part is the unusual piece. Most Unity AI tools only operate while the Editor is open. Unity-MCP also runs inside a compiled game, which enables debugging of a live build and lets you build player-facing AI features such as dynamic NPC behavior. For a solo developer or small studio, this collapses the distance between asking an AI to fix a bug and watching it manipulate the actual project.

Mechanism: MCP Server, Editor Plugin, and Runtime Library

The repository is structured as a Unity package plus a CLI installer. The package registers an MCP server that speaks the Model Context Protocol, the same standard used by Claude Desktop and other clients. The README describes three components in one: AI agents, tools, and skills. Tools are predefined operations the agent can invoke in the Editor, such as reading scene data or executing menu commands. Skills are generated prompts tailored to your OS, Unity version, and installed plugins, which the README says are produced on demand. The runtime mode is a separate library you compile into your game. It gives the game itself the ability to call an LLM, which is how in-game NPCs or debug consoles can reason. Communication happens over stdio for local use or HTTP for remote connections, per the README's 'flexible deployment' bullet. That split means the same codebase serves two audiences: developers automating Editor work and players interacting with AI-driven characters.

Getting It Running: CLI and Unity Package

Setup is scripted through a Node CLI. The README gives three commands: install the CLI globally with npm install -g unity-mcp-cli, then run unity-mcp-cli install-plugin ./MyUnityProject to add the package to a project, and finally unity-mcp-cli login to authenticate via an OAuth device flow that opens your browser. There is also a downloadable unitypackage installer linked from the README for those who avoid command line tools. The CLI approach targets teams that want repeatable setup across machines. After installation, you configure which MCP client connects to the server. The README does not list exact config keys, but it implies you wire the MCP client to the server endpoint. The login step ties you to an ai-game.dev account, which suggests the server may phone home for updates or licensing even though the code is Apache-2.0. That is a point to verify before relying on it offline.

Custom Tools: One Line per C# Method

The README claims any C# method can become an MCP tool with a single line of code. The feature is listed under 'Extensible' with a link to a section titled 'Add Custom Tool'. The promise is that you annotate a method and the plugin exposes it to the AI agent. This is the most valuable part for teams with proprietary workflows. You can wrap an internal build script, a level validation routine, or a test runner and let the agent call it directly. The documentation does not show the exact attribute or syntax, so you would need to read the repository source to confirm. But the design intent is clear: the tool surface is not fixed, it grows with your codebase. That reduces the need for the AI to guess at Editor internals, because you give it precise, safe operations.

Where It Fails: Runtime AI Is Not a Free Lunch

Running an LLM inside a compiled game introduces real costs. Every runtime AI call needs an HTTP request to a model provider, which means your game requires network access and incurs per-request fees. The README does not mention latency or cost controls. For dynamic NPC behavior, a round trip to a cloud model could take seconds, which may be acceptable for a dialogue system but fatal for a real-time combat AI. There is also a security surface: if the runtime can call tools that affect game state, a malicious player could potentially abuse that. The project targets Editor and Runtime equally, but the runtime mode is the less proven part. Most Unity AI integrations stop at the Editor because shipping an LLM client in a binary raises questions about content filtering, rate limits, and offline play. The README does not address these, so treat runtime AI as experimental until you test it in your own build.

Alternatives: What Else Is on the Table

The closest alternative is Unity's own AI tools or a generic MCP server for code editing, such as the official MCP servers from Anthropic or OpenAI that operate on file systems without Unity awareness. Those give you code generation but no Editor integration. Another path is to skip MCP entirely and use a CLI-based agent that reads and writes files in your Unity project, which is simpler but blind to Editor state. The difference is architectural: Unity-MCP embeds a server inside the Unity process, so it can execute Editor API calls and see runtime objects. A file-based agent cannot click a button in the Editor or inspect a GameObject's live values. Conversely, a file-based agent is lighter and has no OAuth dependency. For teams that only want AI to write C# scripts, a plain MCP file server is enough. Unity-MCP earns its complexity only when you need the agent to operate the Editor or the game itself.

Maintenance and License Implications

The repository is under active development, with releases 0.88.0 through 0.90.0 arriving within weeks of each other in August 2026. That pace suggests rapid iteration but also API churn. A package that changes every few days may break your custom tools or your MCP client configuration. The project is licensed under Apache-2.0, which permits commercial use, modification, and distribution with attribution. The README states there is no vendor lock-in for AI agents, but the login flow to ai-game.dev introduces a dependency on that service. If the service shuts down, local authentication may fail. You can read the source and self-host the server, but the README does not document that path. Budget time to track each release and re-test your integration after upgrades. The active release cadence is a sign of a healthy project, but it is also a maintenance cost you should plan for.

Editorial conclusion

Adopt Unity-MCP if you are a Unity developer using Claude, Codex, Cursor, or similar AI tools and want a single integration that covers both Editor workflows and in-game runtime AI, with no vendor lock-in. Skip it if you need a stable, production-grade solution without the overhead of managing a third-party server, OAuth sign-in, and a package in active development. Before adopting, verify that your Unity version is supported, review the default MCP tools list for the operations you need, and test the runtime mode in a small prototype to confirm it meets your performance and security expectations. The project's dual Editor and Runtime focus is its defining feature and its main source of complexity, so weigh that against your actual need for AI inside a compiled game.

Official sources

  1. IvanMurzak/Unity-MCP on GitHub
  2. License: Apache-2.0
  3. Project website
  4. README
  5. Releases
Community notes

Community notes