High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
MCP server and CLI for Unity agents
Unity-MCP connects AI agents to Unity through MCP, with a plugin for the Unity project and a CLI for setup and login. It can run locally or over HTTP, and it supports Editor actions, tests, reflection calls, screenshots, profiling, and runtime AI behavior inside compiled games.

Builders who want their agents to control Unity Editor and runtime from Claude Code, Cursor, Copilot, Gemini, or similar tools.
You can build, test, and debug Unity work through an agent instead of switching between the editor and your chat tool.
What it does
Unity MCP tools
Provides 70+ built-in tools for assets, scenes, scripting, tests, screenshots, and profiling.
CLI setup
Uses `unity-mcp-cli` to install the plugin, sign in, open a project, and wait for Unity to be ready.
Skills generation
Generates agent skills from the OS, Unity version, and project plugins.
Runtime AI support
Lets LLMs run inside the compiled game for NPC behavior and live debugging.
Custom tools
Lets you turn C# methods into tools and add your own MCP tools and prompts.
Multiple agent support
Works with Claude Code, Cursor, Copilot, Gemini, and other MCP-capable clients.
How to get it
- 14. Add MCP server using command line
gemini mcp add ai-game-developer <command>
- 2Replace from the table above
claude mcp add ai-game-developer <command>
- 3Replace from the table above
copilot
- 4Run
/mcp add
- 5Example (CI/CD batch mode)
Unity.exe -batchmode -nographics \ -UNITY_MCP_CLOUD_URL=http://localhost:8080 \ -UNITY_MCP_KEEP_CONNECTED=true \ -UNITY_MCP_AUTH_OPTION=token \ -UNITY_MCP_TOKEN=my-secret-token
- 6Run
docker run -p 8080:8080 aigamedeveloper/mcp-server
README
Unity MCP is an AI-powered game development assistant for Editor & Runtime. Connect Claude, Cursor, & Windsurf to Unity via MCP. Automate workflows, generate code, and enable AI within your games.
Unlike other tools, this plugin works inside your compiled game, allowing for real-time AI debugging and player-AI interaction.
💬 Join our Discord Server - Ask questions, showcase your work, and connect with other developers!
- ✔️ AI agents - Use the best agents from Anthropic, OpenAI, Microsoft, or any other provider with no vendor lock-in
- ✔️ Tools - A wide range of default MCP Tools for operating in Unity Editor
- ✔️ Skills - Generate skills for AI based on operating system, Unity version, plugins in the project
- ✔️ Code and Tests - Develop game mechanics and test them with AI agents
- ✔️ Runtime (in-game) - Use LLMs directly inside your compiled game for dynamic NPC behavior or debugging
- ✔️ Debug support - Let AI debug and fix the problems in a project
- ✔️ Natural conversation - Chat with AI like you would with a human
- ✔️ Flexible deployment - Works locally (stdio) and remotely (http) via configuration
- ✔️ Extensible - Create custom Tools in your project code
https://github.com/user-attachments/assets/228baf4d-4f00-4dce-939d-fb985ebdd8dd
OR use cli
# 1. Install unity-mcp-cli
npm install -g unity-mcp-cli
# 2. Install "AI Game Developer" in Unity project
unity-mcp-cli install-plugin ./MyUnityProject
# 3. Sign in to ai-game.dev (opens your browser — OAuth device flow)
unity-mcp-cli login
# 4. Open Unity project (auto-connects and generates skills)
unity-mcp-cli open ./MyUnityProject

Quick Start
Get up and running in three steps:
- Install plugin — download the
.unitypackageinstaller or runopenupm add com.ivanmurzak.unity.mcpAlternative:
npx unity-mcp-cli install-plugin ./MyUnityProject— see CLI documentation - Pick an AI agent — Claude Code, Claude Desktop, GitHub Copilot, Cursor, or any other
- Setup AI agent — open
Window/AI Game Developerin Unity and click Auto-generate skills (recommended) or Configure MCP
Alternative:
npx unity-mcp-cli setup-skills claude-code ./MyUnityProject— see CLI documentation
That's it. Ask your AI "Create 3 cubes in a circle with radius 2" and watch it happen. ✨
Skills and Tools Reference
The plugin ships with 70+ built-in tools across four categories. Each tool brings AI skill. All tools are available immediately after installation — no extra configuration required. See docs/default-mcp-tools.md for the full reference with detailed descriptions.
🧰 Browse the full MCP tools registry online: ai-game.dev/docs/tools
Project & Assets
assets-copy- Copy the asset at path and stores it at newPathassets-create-folder- Creates a new folder in the specified parent folderassets-delete- Delete the assets at paths from the projectassets-find- Search the asset database using the search filter stringassets-find-built-in- Search the built-in assets of the Unity Editorassets-get-data- Get asset data from the asset file including all serializable fields and propertiesassets-material-create- Create new material asset with default parametersassets-modify- Modify asset file in the projectassets-move- Move the assets at paths in the project (also used for rename)assets-prefab-close- Close currently opened prefabassets-prefab-create- Create a prefab from a GameObject in the current active sceneassets-prefab-instantiate- Instantiates prefab in the current active sceneassets-prefab-open- Open prefab edit mode for a specific GameObjectassets-prefab-save- Save a prefab in prefab editing modeassets-refresh- Refreshes the AssetDatabaseassets-shader-get-data- Get detailed data about a shader asset (properties, subshaders, passes)assets-shader-list-all- List all available shaders in the project assets and packagespackage-add- Install a package from the Unity Package Manager registry, Git URL, or local pathpackage-list- List all packages installed in the Unity project (UPM packages)package-remove- Remove (uninstall) a package from the Unity projectpackage-search- Search for packages in both Unity Package Manager registry and installed packages
Scene & Hierarchy
gameobject-component-add- Add Component to GameObjectgameobject-component-destroy- Destroy one or many components from target GameObjectgameobject-component-get- Get detailed information about a specific Component on a GameObjectgameobject-component-list-all- List C# class names extended from UnityEngine.Componentgameobject-component-modify- Modify a specific Component on a GameObjectgameobject-create- Create a new GameObject in opened Prefab or in a Scenegameobject-destroy- Destroy GameObject and all nested GameObjects recursivelygameobject-duplicate- Duplicate GameObjects in opened Prefab or in a Scenegameobject-find- Finds specific GameObject by provided informationgameobject-modify- Modify GameObjects and/or attached component's fields and propertiesgameobject-set-parent- Set parent GameObject to list of GameObjectsobject-get-data- Get data of the specified Unity Objectobject-modify- Modify the specified Unity Objectscene-create- Create new scene in the project assetsscene-get-data- Retrieves the list of root GameObjects in the specified scenescene-list-opened- Returns the list of currently opened scenes in Unity Editorscene-open- Open scene from the project asset filescene-save- Save opened scene to the asset filescene-set-active- Set the specified opened scene as the active scenescene-unload- Unload scene from the opened scenes in Unity Editorscreenshot-camera- Captures a screenshot from a camera and returns it as an imagescreenshot-game-view- Captures a screenshot from the Unity Editor Game Viewscreenshot-isolated- Render a GameObject in isolation from a chosen angle (optional composite 2x2 view)screenshot-scene-view- Captures a screenshot from the Unity Editor Scene View
Scripting & Editor
console-clear-logs- Clears the MCP log cache and the Unity Editor Console windowconsole-get-logs- Retrieves Unity Editor logs with filtering optionseditor-application-get-state- Returns information about the Unity Editor application state (playmode, paused, compilation)editor-application-set-state- Control the Unity Editor application state (start/stop/pause playmode)editor-selection-get- Get information about the current Selection in the Unity Editoreditor-selection-set- Set the current Selection in the Unity Editorreflection-method-call- Call any C# method with input parameters and return resultsreflection-method-find- Find method in the project using C# Reflection (even private methods)script-delete- Delete the script file(s)script-execute- Compiles and executes C# code dynamically using Roslynscript-read- Reads the content of a script filescript-update-or-create- Updates or creates script file with the provided C# codetests-run- Execute Unity tests (EditMode/PlayMode) with filtering and detailed resultstype-get-json-schema- Generate a JSON Schema for a C# type via reflection
Profiling & Diagnostics
profiler-capture-frame- Capture the current frame's timing info (delta time, FPS, frame counts)profiler-clear-data- Discard all frames currently held by the Editor Profilerprofiler-enable-module- Toggle the local enabled flag for a named profiler moduleprofiler-get-memory-stats- Return a memory statistics snapshot (reserved, allocated, mono heap, graphics)profiler-get-rendering-stats- Return frame timing, FPS, vsync, target frame rate, graphics device typeprofiler-get-script-stats- Return script execution timing plus Mono / GC memory usageprofiler-get-status- Return the profiler's enabled state, active modules, and platform supportprofiler-list-modules- List all known profiler module names with their enabled flagprofiler-load-data- Read back a previously-saved profiler JSON snapshotprofiler-save-data- Save a snapshot of profiler-derived stats to a JSON fileprofiler-start- Enable Unity's runtime profiler and open the Profiler windowprofiler-stop- Disable Unity's runtime profiler
Install Additional Skills and Tools
Install extensions when need more tools or create your own tools.
| Extension | Description |
|---|---|
| AI Animation | Set of additional tools for Unity Animations |
| AI Cinemachine | MCP Tools for Cinemachine |
| AI InputSystem | MCP Tools for the Unity Input System |
| AI Navigation | MCP Tools for AI Navigation (NavMesh surfaces, baking, agents, links) |
| AI ParticleSystem | Set of additional tools for Unity Particle System |
| AI ProBuilder | Set of additional tools for Unity ProBuilder |
| AI Splines | MCP Tools for Unity Splines |
| AI Terrain | Set of additional tools for Unity Terrain |
| AI Tilemap | MCP Tools for Unity 2D Tilemaps |
| AI Timeline | MCP Tools for Unity Timeline cutscenes and sequences |
Contents
- Quick Start
- Skills and Tools Reference
- Contents
- Installation
- AI Workflow Examples
- Customize Tools
- Runtime usage (in-game)
- Unity
MCP Serversetup - How Unity MCP Architecture Works
- Contribution 💙💛
More Documentation
| Document | Description |
|---|---|
| Default MCP Tools | Full reference of all built-in tools with descriptions |
| MCP Server Setup | Server configuration, environment variables, remote hosting |
| Docker Deployment | Step-by-step Docker deployment guide |
| Development Guide | Architecture, code style, CI/CD — for contributors |
| Wiki | Getting started, tutorials, API reference, FAQ |
| CLI Tool | Install plugins, configure, and connect via command line |
Installation
Step 1: Install Unity MCP Plugin
⚠️ Requirements (click)
[!IMPORTANT] Project path cannot contain spaces
- ✅
C:/MyProjects/MyProject- ❌
C:/My Projects/MyProject- ❌
C:/My Projects/My Project- ❌
C:/MyProjects/My Project
Option 1 - Installer
- ⬇️ Download Installer
- 📂 Import installer into Unity project
- You can double-click on the file - Unity will open it automatically
- OR: Open Unity Editor first, then click on
Assets/Import Package/Custom Package, and choose the file
Option 2 - CLI (recommended)
Install the plugin via unity-mcp-cli — no Unity Editor needed:
# 1.1 Install unity-mcp-cli # ┌────────────────────┐
npm install -g unity-mcp-cli # │ Available AI agent │
# ├────────────────────┤
# 1.2 (Optional) Install Unity # │ antigravity │
unity-mcp-cli install-unity # │ claude-code │
# │ claude-desktop │
# 1.3 (Optional) Create Unity project # │ cline │
unity-mcp-cli create-project ./MyUnityProject # │ codex │
# │ cursor │
# 2. Install "AI Game Developer" in Unity project # │ gemini │
unity-mcp-cli install-plugin ./MyUnityProject # │ github-copilot-cli │
# │ kilo-code │
# 3. Sign in to ai-game.dev (OAuth device flow) # │ open-code │
unity-mcp-cli login # │ rider-junie │
# │ unity-ai │
# 4. Open Unity project (auto-connects and generates skills) │ vs-copilot │
unity-mcp-cli open ./MyUnityProject # │ vscode-copilot │
# └────────────────────┘
# 5. Wait for Unity Editor to be ready
unity-mcp-cli wait-for-ready ./MyUnityProject
See full CLI documentation for all available commands.
Cloud sign-in & project pinning:
unity-mcp-cli loginruns the browser OAuth device flow and stores the credential in the shared machine store (~/.ai-game-dev/credentials.json) — there is no personal access token to paste. By default the AI-agent config thatsetup-mcpwrites points at a per-project pinned endpoint (https://ai-game.dev/mcp/p/<pin>); pass--no-pinto use the sharedhttps://ai-game.dev/mcpendpoint instead. Teams can distribute access with an enrollment code:unity-mcp-cli install-plugin --enroll <code>.
Step 2: Install AI agent
Choose a single AI agent you prefer - you don't need to install all of them. This will be your main chat window to communicate with the LLM.
- Claude Code (recommended)
- Claude Desktop
- GitHub Copilot in VS Code
- Antigravity
- Cursor
- Windsurf
- Any other supported
The AI Game Developer is quite universal, which is why you may use any AI agent you prefer - it will work as smoothly as any other. The only important requirement is that the AI agent must support Skills or dynamic MCP Tool updates.
Step 3: Configure AI agent
Automatic configuration
- Open Unity project
- Open
Window/AI Game Developer - Option 1: Click
Auto-generateSkills (recommended) - Option 2: Click
ConfigureModel Context Protocol (MCP)

If your MCP client is not in the list, use the raw JSON shown in the window to inject it into your MCP client. Read the instructions for your specific MCP client on how to do this.
Manual configuration
If automatic configuration doesn't work for you for any reason, use the JSON from the AI Game Developer (Unity-MCP) window to con
Files in the repo
- .claude
- .github
- .vscode
- cli
- commands
- docs
- Installer
- memory
- Unity-MCP-Plugin
- Unity-Tests
- .gitignore
- CLAUDE.md
- LICENSE
- README.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More connectors

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code
Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.
Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.
20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。