Unity MCP logo

Unity MCP

by IvanMurzak

Connects AI agents to Unity Editor and compiled games for code generation, automation, debugging, and in-game AI behavior.

Install Unity MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ivanmurzak-unity-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "unity-mcp-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

IvanMurzak/Unity-MCP connects MCP-compatible AI clients to both the Unity Editor and compiled Unity games. Its Unity plugin exposes built-in tools for project and asset operations, code and test work, debugging, and automated editor workflows, with support for local stdio or remote HTTP deployment. Runtime support lets an AI operate inside a running game for debugging or dynamic behaviors such as NPC interactions. Reach for it when an agent needs to inspect or modify a Unity project rather than only generate files externally.

Use cases

  • Automate Unity Editor workflows with an AI agent
  • Generate game mechanics and tests
  • Debug Unity projects with AI assistance
  • Build dynamic NPC behavior in a compiled game
  • Inspect and manage Unity assets through MCP tools

Key features

  • Unity Editor and compiled-game runtime support
  • 70+ built-in MCP tools
  • Local stdio and remote HTTP deployment
  • AI-generated project skills
  • Custom tools written in project code
  • Code generation, testing, and debugging workflows

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

48/48 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · unity-mcp-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4.6kStargazers on the source repository.
npm downloads9.8kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Directory activity1 upvotesConfig copies, upvotes, and views on AllMCPs.

How Unity MCP works

What IvanMurzak/Unity-MCP does

IvanMurzak/Unity-MCP links AI agents with Unity projects through the Model Context Protocol. The connection covers two environments: the Unity Editor during development and a compiled game at runtime. In the Editor, an agent can automate project work, generate code, create tests, help diagnose problems, and use built-in tools for Unity assets and other development tasks.

Runtime support is a distinguishing part of the package. An application built with Unity can expose the integration while it is running, allowing AI-assisted debugging or in-game interactions. The project describes dynamic NPC behavior and player-to-AI interaction as examples of runtime use.

The package also supports generated skills. Unity can create skills based on the operating system, Unity version, and plugins present in a project, giving an agent project-specific operating guidance.

How it works

Install the Unity package into a project, then connect an MCP client such as Claude, Cursor, Windsurf, Claude Code, or another supported agent. The Unity window at Window/AI Game Developer provides controls to generate skills or configure the MCP connection. Once connected, the agent can call the tools exposed by the Unity plugin and act on the project through MCP.

The integration can run locally over stdio or be configured for remote use over HTTP. This supports both a local development setup and deployments where the MCP endpoint is reached separately from the client. Custom tools can also be added in project code, extending the operations available to an agent.

Setup and configuration

The documented installation paths are:

  • Download and import the AI Game Developer .unitypackage installer.
  • Add the package with OpenUPM using openupm add com.ivanmurzak.unity.mcp.
  • Install the command-line utility with npm install -g unity-mcp-cli, then run unity-mcp-cli install-plugin ./MyUnityProject.

After installing the plugin, open the Unity project and select an AI client. In Unity, open Window/AI Game Developer, then choose Auto-generate skills or Configure MCP. The CLI provides corresponding commands: unity-mcp-cli login opens browser-based OAuth device-flow sign-in for ai-game.dev, unity-mcp-cli open ./MyUnityProject opens the project and connects it, and npx unity-mcp-cli setup-skills claude-code ./MyUnityProject configures skills for Claude Code.

Tools and capabilities

The package includes more than 70 built-in MCP tools grouped into four categories. The documented examples include tools for copying assets and creating folders. Its broader capability set covers:

  • Operating on Unity Editor projects and assets
  • Generating game code and tests
  • Debugging and fixing project problems with an AI agent
  • Automating development workflows
  • Using AI within a compiled Unity game
  • Adding custom project-specific tools

The full built-in tool reference is available through the project’s default MCP tools documentation and the ai-game.dev tools registry.

Limitations and notes

The integration requires a Unity project containing the plugin and an MCP-compatible AI client. Editor and runtime use are separate contexts: editor automation targets the development project, while in-game features require the integration to be included in the compiled application. Client setup is performed either through Unity’s AI Game Developer window or the provided CLI workflow.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Unity MCP

IvanMurzak/Unity-MCP is an MCP server that connects AI agents to the Unity Editor and compiled Unity games. Its main tools support editor automation, asset and project operations, code and test generation, debugging, and runtime AI features such as in-game interaction or dynamic NPC behavior.

Install the Unity package through the downloadable `.unitypackage`, OpenUPM with `openupm add com.ivanmurzak.unity.mcp`, or the `unity-mcp-cli` command-line workflow. After installation, configure the connection from Unity’s `Window/AI Game Developer` panel.

Yes, IvanMurzak/Unity-MCP works with Cursor. The project lists Cursor among its MCP clients, and the Unity integration can be configured after installing the plugin and opening the AI Game Developer window.

Yes, IvanMurzak/Unity-MCP supports runtime use inside compiled Unity games. This enables AI-assisted debugging and in-game AI scenarios, including dynamic NPC behavior and interaction between players and AI.

Use the Unity setup window or run `npx unity-mcp-cli setup-skills claude-code ./MyUnityProject`. The CLI workflow can install the plugin, sign in through the browser-based OAuth device flow, open the project, and configure Claude Code skills.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUnity MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ivanmurzak-unity-mcp?style=directory)](https://allmcps.com/mcp/ivanmurzak-unity-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ivanmurzak-unity-mcp"><img src="https://allmcps.com/api/badge/ivanmurzak-unity-mcp?style=directory" alt="Unity MCP on AllMCPs" /></a>