Unity MCP: How to Connect an AI Assistant to Unity on Windows and Mac
By Shah Rukh, software developer · · 7 min read
Unity MCP (the project now calls itself AI Game Developer) is an open-source plugin that hands an AI assistant like Claude Code, Cursor or GitHub Copilot the keys to the Unity game engine. Here’s what you need before you start, how to get it running on Windows and Mac, how to wire up your assistant, and the things I’d want someone to warn me about before I let it loose on a project.
Read this first. Unity MCP does not ship an AI model of its own. It’s just the bridge. You bring the Unity Editor and a separate AI assistant, and that assistant might cost you its own subscription or API credit. And once it’s connected, the AI can create, change and delete assets and scripts, and run C# in your project. Back up before you do anything else.
What Unity MCP actually is
MCP is short for Model Context Protocol, a common way for an AI assistant to reach out and use tools beyond its own chat box. The README has a nice line for it: “USB Type-C for AI”.
There are three pieces here, and they pass messages to each other:
| Part | What it does | Where it comes from |
|---|---|---|
| AI agent | The chat window where you type requests | You install it yourself (Claude Code, Cursor and others) |
| MCP server | Passes messages between the AI agent and Unity | The plugin downloads and runs it for you |
| Unity plugin | Carries out the actions inside the Unity Editor | This project |
The project says the plugin comes with more than 70 built-in tools, split into four groups: project and assets, scene and hierarchy, scripting and editor, and profiling. The README points to examples like gameobject-create, scene-save, script-update-or-create, tests-run and screenshot-game-view. One thing worth knowing: it says the plugin can also run inside a finished game, not just the editor, but there are no tools there out of the box. If you want them, you write them yourself.
The code is released under the Apache 2.0 licence. It’s an independent project by Ivan Murzak, not something built by Unity or by any AI company.
What you need before you start
- The Unity Editor. The plugin’s package file lists Unity
2022.3as the minimum version. - A Unity project in a folder path with no spaces. The README marks this as a requirement:
C:/MyProjects/MyProjectworks,C:/My Projects/MyProjectdoes not. - One AI agent. The README recommends Claude Code, and also lists Claude Desktop, GitHub Copilot in VS Code, Antigravity, Cursor and Windsurf. You only need one of them. The project does note the agent has to support Skills or dynamic MCP tool updates.
- Node.js, but only if you go the command-line route. The CLI wants version
^20.19.0or>=22.12.0. - An ai-game.dev account, and again only if you use the project’s cloud connection. The CLI signs you in through your browser.
What it costs: the plugin and CLI are free and open source. The repo doesn’t publish any prices for the ai-game.dev cloud service, so you’ll want to check that site yourself. Unity and your AI agent each come with their own pricing and licence terms, and this project has no say over those.
The precautions I’d take first
- Back up the project. Tools like
assets-delete,script-deleteandgameobject-destroyexist to remove things, and they will. Put the project in Git or make a copy, and honestly, try the plugin on a throwaway test project before anything you care about. - The AI can run code.
script-executecompiles and runs C# right then and there, andreflection-method-callcan call any C# method, private ones included. Read each permission prompt your AI agent shows you before you click approve. - Your project data leaves your computer. Scene contents, scripts, logs and screenshots the AI reads get sent off to the company behind your AI agent. So don’t point it at client or company work without permission.
- Know which connection you’re on. The plugin has two connection modes,
CloudandCustom. Cloud runs through the project’s ai-game.dev service. Custom uses a server you run yourself, say on your own machine. - Guard the saved credentials.
unity-mcp-cli logindrops a credential in~/.ai-game-dev/credentials.json, and project keys land in~/.ai-game-dev/project-keys.json. Connection settings and tokens sit inUserSettings/AI-Game-Developer-Config.jsoninside the project. None of these should be shared or committed. - Add a token if you host the server. The standalone server’s authorization setting defaults to
none. If the server is reachable from other machines, setMCP_AUTHORIZATIONtotokenand pick a long, randomMCP_PLUGIN_TOKEN. - Stick to the real repository: github.com/IvanMurzak/Unity-MCP. One heads-up on Windows: the CLI may install Unity Hub silently if it’s missing, and that can ask for administrator rights.
Installing with the installer (Windows and Mac)
This is the no-terminal route, and it’s identical on both systems.
- Download AI-Game-Dev-Installer.unitypackage from the project’s releases page.
- Open your project in the Unity Editor.
- Double-click the downloaded file, or in Unity choose Assets, then Import Package, then Custom Package, and pick the file.
- Wait for Unity to finish importing and compiling.
Installing with the CLI on Windows and Mac
This is the method the README recommends. The commands don’t change between Windows (PowerShell) and Mac (Terminal). Get Node.js installed first, then swap ./MyUnityProject for your own project path.
- Install the CLI:
npm install -g unity-mcp-cli
- Add the plugin to your project. This edits
Packages/manifest.jsonand adds the OpenUPM package registry:unity-mcp-cli install-plugin ./MyUnityProject
- Sign in to ai-game.dev. It opens your browser and shows a short code to approve:
unity-mcp-cli login
- Open the project in Unity:
unity-mcp-cli open ./MyUnityProject
- Wait until Unity and the server are ready:
unity-mcp-cli wait-for-ready ./MyUnityProject
No Unity or project yet? The CLI covers that too, with two optional commands: unity-mcp-cli install-unity and unity-mcp-cli create-project ./MyUnityProject.
One thing for Mac users: the open command tries to click away Unity’s “compile errors at launch” dialog for you. For that to work on macOS, your terminal needs Accessibility permission, under System Settings, Privacy & Security, Accessibility. Don’t want that behaviour? Add --no-auto-dismiss-launch-errors.
Connecting your AI agent
- In Unity, open Window, then AI Game Developer.
- Click Auto-generate skills (the recommended option), or click Configure to set up MCP for your agent.
- If your agent isn’t on the list, copy the raw JSON shown in the window into your agent’s MCP settings.
You can do all of this from the command line too. Here it is for Claude Code:
unity-mcp-cli setup-skills claude-code ./MyUnityProject unity-mcp-cli setup-mcp claude-code ./MyUnityProject
Run unity-mcp-cli setup-mcp --list to see all 14 supported agent names. Out of the box setup-mcp writes a config pointing at the ai-game.dev cloud. If you’d rather have your agent spin up the local server, add --transport stdio.
Your first requests
Leave Unity open, start your AI agent inside the project folder, and try something small. The README offers a few to start with:
- Explain my scene hierarchy
- Create 3 spheres on top of each other
- Create metallic golden material and attach it to a new sphere gameObject
If you’re in VS Code with Copilot, double-check that Agent mode is switched on. And keep in mind the results lean hard on whatever model your agent runs, so always look over what it actually built.
Settings and features worth knowing
| Task | Command or setting |
|---|---|
| See which tools are enabled | unity-mcp-cli configure ./MyGame --list |
| Turn off risky tools | unity-mcp-cli configure ./MyGame --disable-tools script-execute,assets-delete |
| Check the connection | unity-mcp-cli status ./MyGame |
| Add an extension pack (Tilemap, Terrain, Animation and others) | unity-mcp-cli install-extension --list |
| Run the server in Docker | docker run -p 8080:8080 aigamedeveloper/mcp-server |
| Hide update popups for a whole team | Edit, Project Settings, AI Game Developer |
The standalone server listens on port 8080 by default and shuts itself down after 600 seconds with no connections. When the CLI and plugin run a local server, they settle on a fixed port per project somewhere in the range 20000–29999, worked out from the project path.
Uninstalling
- In Unity, open Window, then Package Manager, select AI Game Developer — MCP and click Remove.
- Close Unity and delete the
Assets/Plugins/NuGetfolder and itsAssets/Plugins/NuGet.metafile.
From the command line, unity-mcp-cli remove-plugin ./MyUnityProject pulls the plugin out of the manifest but leaves the package registry entry behind. There’s no separate update command documented; instead, the plugin pops up a notice in the editor whenever a newer version is out.
When things go wrong
| Problem | What to try |
|---|---|
| Plugin fails or the server won’t start | Check the project path for spaces. Move the project to a path without them. |
unity-mcp-cli won’t install or run | Check your Node.js version. It must be ^20.19.0 or >=22.12.0. |
| The agent can’t see Unity | Run unity-mcp-cli status with your project path. Unity must be open with the plugin installed. |
| Your agent is missing from the window | Copy the raw JSON from the AI Game Developer window into the agent’s MCP config. |
| Copilot answers but does nothing in Unity | Switch VS Code Copilot to Agent mode. |
| Self-hosted server and Unity don’t connect | Make sure the server and the plugin use the same port. |
| On Mac, Unity hangs on a launch dialog | Give your terminal Accessibility permission, or click the dialog yourself. |
| Something else | Add --verbose to any CLI command for more detail. |
If none of that helps, report the problem on GitHub.
This guide is based on the project’s repository as it was on October 2, 2026. The project changes often, so if a step looks different, follow the README on GitHub. ToolsCloset is not connected to the project, to Unity Technologies or to any AI provider. Unity is a trademark of Unity Technologies.
Frequently asked questions
Is Unity MCP free?
The plugin and its command-line tool are open source under the Apache 2.0 licence and free to install. You still need the Unity Editor and an AI assistant, which have their own pricing. The repository does not list prices for the ai-game.dev cloud service.
Does Unity MCP include an AI model?
No. All it does is connect an AI assistant you already have, such as Claude Code, Cursor or GitHub Copilot, to the Unity Editor. The answers come from that assistant’s model.
Which Unity version does Unity MCP need?
The plugin’s package file lists Unity 2022.3 as the minimum version. The project path must not contain spaces.
Does Unity MCP work on Windows and Mac?
Yes. The installer package works inside the Unity Editor on both, and the command-line tool is described as cross-platform for Windows, macOS and Linux.
Is Unity MCP safe to use on a real project?
It can delete assets and scripts and run C# code, so treat it with respect. Back up the project or put it in Git, read what your AI assistant asks to do before approving, and switch off any tools you don’t want with the configure command.
Do I need an ai-game.dev account?
Only for the cloud connection, where the CLI login command signs you in through the browser. The plugin also has a Custom mode for a server you run yourself, and the server can run locally or in Docker.
How do I remove Unity MCP?
Remove the AI Game Developer — MCP package in Unity’s Package Manager, close Unity, then delete the Assets/Plugins/NuGet folder and its .meta file.
More AI tips

Free Claude Code Setup Guide
Run the Claude Code app with free AI models on Windows or Mac. Full steps, plus the precautions most guides skip.

EmailOSINT Review and Guide
See which accounts, data breaches and stolen-password logs are tied to your email, and what to do about each result.

FastMCP for beginners
Turn a plain Python function into a tool an AI assistant can call. Setup on Windows and Mac, step by step.

Set up Context Mode the easy way
Context Mode is an MCP plugin that stops your coding agent's context window from filling up with raw tool output.

TradingView MCP Guide
Self-host the free TradingView MCP server on Windows or Mac, or pay for hosting — and mind the data-not-advice caveat.

AWS MCP servers, explained
AWS publishes a big set of open-source MCP servers. Here's what they do and how to wire one into your AI coding assistant.

MCP servers in TypeScript
A beginner-friendly look at mcp-use for building and connecting MCP servers, clients and agents in TypeScript.

OpenHands Agent Canvas Guide
Set up the OpenHands control centre for AI coding agents on Windows or Mac, with the safety steps to take first.

Dify Self-Hosting Guide
Run the Dify AI app builder on your own computer with Docker Compose, and know the costs and licence limits first.

LibreChat Docker Setup Guide
Run your own ChatGPT-style chat app on your computer with Docker. Full steps, real costs and safety checks.
sprite-gen Setup Guide
Turn one character drawing into a transparent game sprite sheet. Setup steps, real costs and precautions.

Logo Design Skill Setup Guide
Add a free logo-design skill to Claude or another AI agent on Windows or Mac, with the precautions to take first.
Openvid Screen Demo Guide
Record your screen and turn it into a polished demo in the browser, or run Openvid yourself on Windows or Mac.

ReelMimic Setup Guide
Set up ReelMimic to make an original 2D animation in the style of a reference video, with the copyright checks to do first.