Unity MCP by IvanMurzak

by IvanMurzak• 4.6k•• Scanned•Claim this listing•Request removal
Gaming & Game Devaiai integrationanthropicclaudeclaude code

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.

Unity MCP is an open-source mcp server by IvanMurzak, written mainly in C#, with 4,564 GitHub stars and the Apache-2.0 license. Its code was last updated Oct 31, 2026. The latest npm release is unity-mcp-cli 1.11.3, published Nov 14, 2026, with 3,723 downloads last week.

<div align="center" width="100%"> <p align="center"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/readme/hero.svg" alt="AI Game Developer for Unity: Skills, MCP tools and a CLI that connect AI agents to the Unity Editor and to your running game" width="100%"></p>

OpenUPM version OpenUPM downloads per month unity-mcp-cli on npm Unity 2022.3 or newer
Release workflow status Discord License Stand with Ukraine

<p> <a href="https://claude.ai/download"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/claude-64.png" alt="Claude" title="Claude" height="36"></a>&nbsp;&nbsp; <a href="https://openai.com/index/introducing-codex/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/codex-64.png" alt="Codex" title="Codex" height="36"></a>&nbsp;&nbsp; <a href="https://www.cursor.com/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/cursor-64.png" alt="Cursor" title="Cursor" height="36"></a>&nbsp;&nbsp; <a href="https://code.visualstudio.com/docs/copilot/overview"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/github-copilot-64.png" alt="GitHub Copilot" title="GitHub Copilot" height="36"></a>&nbsp;&nbsp; <a href="https://gemini.google.com/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/gemini-64.png" alt="Gemini" title="Gemini" height="36"></a>&nbsp;&nbsp; <a href="https://antigravity.google/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/antigravity-64.png" alt="Antigravity" title="Antigravity" height="36"></a>&nbsp;&nbsp; <a href="https://code.visualstudio.com/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/vs-code-64.png" alt="VS Code" title="VS Code" height="36"></a>&nbsp;&nbsp; <a href="https://www.jetbrains.com/rider/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/rider-64.png" alt="Rider" title="Rider" height="36"></a>&nbsp;&nbsp; <a href="https://visualstudio.microsoft.com/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/visual-studio-64.png" alt="Visual Studio" title="Visual Studio" height="36"></a>&nbsp;&nbsp; <a href="https://opencode.ai/"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/open-code-64.png" alt="Open Code" title="Open Code" height="36"></a>&nbsp;&nbsp; <a href="https://github.com/cline/cline"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/cline-64.png" alt="Cline" title="Cline" height="36"></a>&nbsp;&nbsp; <a href="https://github.com/Kilo-Org/kilocode"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/mcp-clients/kilo-code-64.png" alt="Kilo Code" title="Kilo Code" height="36"></a> </p>

<b>中文 | 日本語 | Español | فارسی | हिन्दी | العربية</b>

</div>

AI Game Developer (Unity-MCP) connects your AI agent to Unity. Claude Code, Codex, Cursor, GitHub Copilot, Gemini or any other MCP client can read and change scenes, prefabs, assets and C# code, run tests and take screenshots in the Unity Editor, and call tools you write inside your compiled game. It ships as a free Unity package (com.ivanmurzak.unity.mcp), a command-line tool (unity-mcp-cli) and optional extensions.

Status: latest release and changelog. The plugin and unity-mcp-cli share one version. Tested and supported on Windows, macOS and Linux. Requires Unity 2022.3 or newer; CI runs EditMode, PlayMode and standalone-build tests on Unity 2022.3, 6000.0, 6000.3 and 6000.6.

How it works

<p align="center"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/readme/architecture.svg" alt="An AI agent or unity-mcp-cli talks MCP to a server, ai-game.dev Cloud by default or a local gamedev-mcp-server, which calls the tools of the Unity Editor plugin and of your running game" width="100%"></p>

The plugin registers its tools with an MCP server; your agent calls them through that server. Instead of MCP tools, the agent can also use generated Skills. You choose where the server runs:

Local (Custom mode, no account)Cloud (default setting)
ServerGameDev-MCP-Server started by the plugin on 127.0.0.1, or one you hosthttps://ai-game.dev/mcp
AccountNot neededSign in to ai-game.dev
Your project dataStays on your machineTool calls pass through a stateless relay that does not inspect or persist their contents; it records MCP event metadata, used within a rolling 90-day window (Privacy Policy)
CostFreeFree

Why Cloud is the default: it needs no open ports and avoids port conflicts with other programs, and it is free. Local is an equal option for offline or air-gapped work. Details: Security and privacy.

Features

✅ Covers the Editor — the agent can do virtually anything you can do in the Unity Editor
✅ Compact and efficient — tools built for agents: fewer calls and fewer tokens, so the agent works faster and cheaper (measured in the Unity Editor)
✅ RQL — read and change scenes, objects, assets and settings with one query language
✅ C# and tests — compile and run C# with Roslyn; run EditMode and PlayMode tests
✅ Skills or MCP — generate Skills in one click, or connect as an MCP client
✅ Any agent — Claude Code, Codex, Cursor, Copilot, Gemini and other MCP clients
✅ Runtime — the same tools inside your built game: NPC logic, live debugging
✅ Your own tools — any C# method becomes a tool with one [AiTool] attribute
✅ CLI — install, open, query, compile and test from the terminal or CI
✅ Extensions — optional tool packs, from Animation to Timeline

Quick start

Requires Unity 2022.3 or newer.

1. Install the plugin (recommended: the Installer, nothing else to install):

DOWNLOAD INSTALLER

Open the downloaded .unitypackage with your project open (double-click it, or Assets ▸ Import Package ▸ Custom Package).

<details> <summary>Other ways to install: OpenUPM / Package Manager, or the CLI for scripting and CI</summary>
  • OpenUPM — openupm add com.ivanmurzak.unity.mcp, or without any CLI: add a scoped registry in Edit ▸ Project Settings ▸ Package Manager (URL https://package.openupm.com, scopes com.ivanmurzak and extensions.unity), then Window ▸ Package Manager ▸ + ▸ Add package by name → com.ivanmurzak.unity.mcp.

  • unity-mcp-cli (Node.js 22.14+) — for scripts and CI, no Editor needed:

    npm install -g unity-mcp-cli
    unity-mcp-cli install-plugin ./MyUnityProject   # add the plugin to Packages/manifest.json
    unity-mcp-cli open ./MyUnityProject             # open the project in Unity
    
    <p align="center"><img src="https://raw.githubusercontent.com/IvanMurzak/Unity-MCP/main/docs/img/readme/terminal.svg" alt="Terminal session: install unity-mcp-cli, add the plugin, sign in, configure Claude Code and open the project" width="100%"></p>
</details>

2. Connect your agent — pick one; both are fully supported:

Local (no account)Cloud (default setting)
In Window ▸ AI Game Devconnection Customconnection Cloud, then Authorize (browser sign-in)
Agent configConfigure for your agentConfigure for your agent
Same from the CLIunity-mcp-cli setup-mcp claude-code ./MyUnityProject --transport stdiounity-mcp-cli login, then unity-mcp-cli setup-mcp claude-code ./MyUnityProject

Auto-generate Skills in the same window is the alternative to MCP. Other agents: client setup.

3. Local only: choose who may call your tools. The local server starts with auth none: it listens only on 127.0.0.1 and rejects foreign browser origins, but any program on your machine can reach it. If other people or untrusted programs use the machine, switch to token in one step: Window ▸ AI Game Dev → Authorization Token → token. The server restarts with a generated secret; press Configure again so your agent sends it.

AI Game Developer window

Ask your agent "Create 3 cubes in a circle with radius 2" and watch it happen. Full steps, manual MCP configuration and uninstall: Installation guide.

https://github.com/user-attachments/assets/228baf4d-4f00-4dce-939d-fb985ebdd8dd

Usage

Talk to your agent. Describe the result you want; the more precise, the better.

Explain my scene hierarchy
Create metallic golden material and attach it to a new sphere
Find every enemy prefab without a Rigidbody and add one

What your agent can do (tools shown by default):

CapabilityToolExample prompt
Scenes and GameObjectsrql-query, rql-mutate"List every disabled GameObject in the open scene"
Assets and prefabsrql-query, rql-mutate"Create a red material and assign it to all cubes"
Console and Editor staterql-query"What errors are in the console?"
C# in the Editorscript-execute"Run C# that places 100 trees at random points on the terrain"
Teststests-run"Run the EditMode tests and fix what fails"
Screenshotsscreenshot-isolated"Show me the Player model from the front"
Packages and Asset Storepackage-*, assetstore-*"Install Cinemachine"
Tool listunity-tool-list"Which tools can you use here?"

You do not learn RQL: the agent writes it and asks rql-schema for every source, type and call it needs. Measured in the Unity Editor: the same tasks took about 5× fewer prompt tokens and fewer tool calls than one-tool-per-action tools, at the same success rate (benchmark). On a sandbox game world, with RQL an agent needs about 2–3 tool calls and 7–8k tokens per task at 100% success, versus 30–37 calls and 125–170k tokens at 67–91% success with plain reflection tools (results). More tools are installed but hidden until you show them. Full list: Default MCP tools or ai-game.dev/docs/tools.

From the terminal (starts a headless editor when none is running):

unity-mcp-cli rql 'objects | where name starts-with "Tree" | count'
unity-mcp-cli compile ./MyGame
unity-mcp-cli test ./MyGame --mode PlayMode

Your own tool. A class with [AiToolType] and a method with [AiTool] is all it takes:

[AiToolType]
public class Tool_Score
{
    [AiTool("score-reset", Title = "Reset the score")]
    [Description("Sets the player's score to zero.")]
    public string Reset()
    {
        return MainThread.Instance.Run(() =>
        {
            ScoreManager.Instance.Score = 0;
            return "[Success] Score reset.";
        });
    }
}

Prompts, runtime (in-game) tools and a full example: Custom tools and runtime.

Client setup

The Configure button in the AI Game Developer window, or unity-mcp-cli setup-mcp <agent> ./MyUnityProject, writes these files for you (Cloud by default, local with --transport stdio). By hand, for a local server: set the plugin to Custom, take <port> from the window, and use the binary for your platform from <project>/Library/mcp-server/<rid>/ (win-x64/gamedev-mcp-server.exe, osx-arm64/gamedev-mcp-server, linux-x64/gamedev-mcp-server, …).

<details> <summary><b>Claude Code</b> — <code>.mcp.json</code> in the project root</summary>
{
  "mcpServers": {
    "ai-game-developer": {
      "command": "<project>/Library/mcp-server/win-x64/gamedev-mcp-server.exe",
      "args": ["port=<port>", "client-transport=stdio"]
    }
  }
}
</details> <details> <summary><b>Cursor</b> — <code>.cursor/mcp.json</code></summary>
{
  "mcpServers": {
    "ai-game-developer": {
      "type": "stdio",
      "command": "<project>/Library/mcp-server/win-x64/gamedev-mcp-server.exe",
      "args": ["port=<port>", "client-transport=stdio"]
    }
  }
}
</details> <details> <summary><b>Codex</b> — <code>.codex/config.toml</code></summary>
[mcp_servers.ai-game-developer]
enabled = true
command = "<project>/Library/mcp-server/win-x64/gamedev-mcp-server.exe"
args = ["port=<port>", "client-transport=stdio"]
tool_timeout_sec = 300
</details>

Other agents and manual setup: Installation guide.

Security and privacy

Most private setup: connection Custom (local server on 127.0.0.1, no account, project data stays on your machine) with Authorization Token set to token in Window ▸ AI Game Dev, then Configure again so your agent sends the secret.

✅ The plugin opens no port — it connects out to the MCP server.
✅ Local server on loopback — gamedev-mcp-server binds to 127.0.0.1 unless you set MCP_BIND for hosting.
✅ Origin checks — browser requests with a non-allowed Origin are rejected (403) in every auth mode.
✅ Auth modes — none (local default), token (one shared secret the agent and the plugin must both send), oauth (ai-game.dev account).
✅ Cloud relay — a stateless relay: it routes tool calls between your agent and the Editor without inspecting or persisting their contents, and does not collect conversations, source code, project files, assets or scene data. It records MCP event metadata (event type, timing, status, session identifiers, the tool, prompt or resource name, error details), used within a rolling 90-day window (Privacy Policy).
⚠️ Not protected — in none mode any process on your machine that reaches the port can call tools, and tools run with Editor rights (script-execute runs C#). Use token mode on shared machines.

Server options and Docker: MCP server and connection.

Extensions

Extensions are optional UPM packages that add tools for specific Unity features.

unity-mcp-cli install-extension com.ivanmurzak.unity.mcp.cinemachine ./MyUnityProject
ExtensionAddsRequires
AnimationAnimationClips and AnimatorControllers
CinemachineVirtual cameras, targets and the camera pipelinecom.unity.cinemachine 3.1.6+
InputSystemInput action assets, maps, actions and bindingscom.unity.inputsystem 1.8.2+
NavigationNavMesh surfaces, baking, agents and linkscom.unity.ai.navigation 1.1.7+
ParticleSystemParticleSystem emission, shape, curves and gradients
ProBuilderEditable meshes: shapes, extrude, bevel, materialscom.unity.probuilder 5.2.4+
SplinesSpline containers, knots and tangentscom.unity.splines 2.8.4+
TerrainTerrains: heightmaps, sculpting and sampling
TilemapGrids and tilemaps: paint, fill and read tilescom.unity.2d.tilemap.extras 3.1.3+
TimelineTimeline assets, tracks, clips and markerscom.unity.timeline 1.8.12+

Required Unity packages install with the extension. You can also install extensions from the Extensions section of the AI Game Developer window.

Documentation

PageWhat is in it
Installation guideInstall options, connecting an agent, manual MCP config, team settings, uninstall
BenchmarkUnity Editor and sandbox measurements: tokens, tool calls and success with RQL tools
Default MCP toolsEvery built-in tool, RQL sources, tools removed in 1.0.0 and their RQL equivalents
Custom tools and runtimeWrite tools and prompts; use MCP inside your game
MCP server and connectionCloud and Custom modes, plugin environment variables, local server
Docker deploymentRun the MCP server in a container
Disable in CIKeep the plugin out of ordinary CI test runs
CLI referenceEvery unity-mcp-cli command and option
WikiTutorials, guides and FAQ
Development guideRepository layout, code style, tests and CI for contributors

Related: GameDev-MCP-Server (the shared MCP server) · ai-game.dev · Discord

Contributing

Ideas, bug reports and pull requests are welcome. Read the Development guide, fork the repository, open ./Unity-MCP-Plugin in Unity, and send a pull request to main. If the project helps you, please give it a star.

License

Free for game development, commercial games included. The plugin is Apache-2.0. It uses RQL and Code-Exec, licensed under PolyForm Shield 1.0.0: that license restricts only companies that build competing AI tools for game development. Game developers can use everything freely.

Unity MCP alternatives

View more →

Similar mcp servers in Gaming & Game Dev, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Unity MCP (this page)
IvanMurzak
4.6kApache-2.0Oct 31, 2026Scanned, no flagged issues
Unity MCP
CoplayDev
16kMITOct 30, 2026Scanned, no flagged issues
Godot MCP
Coding-Solo
6.5kMITApr 16, 2026Scanned, no flagged issues
MCP Unity
CoderGamester
2kMITOct 11, 2026Scanned, no flagged issues
Mcpelauncher Manifest
minecraft-linux
1.7kGPL-3.0Oct 29, 2026Scanned, no flagged issues
MCP Reborn
Hexeption
1.6kNone foundOct 23, 2026Not scanned yet