Unity Mcp
ivanmurzak/unity-mcp · 3.1k stars · C# · Apache-2.0
MCP server 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.
Install
The repo has no one-line install. Follow its README.
Files
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.mcp
Alternative:
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
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
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
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)
Facts
- Kind
- MCP server
- Repo
- ivanmurzak/unity-mcp
- Group
- Uncategorized
- Stars
- 3.1k
- License
- Apache-2.0
- Language
- C#
- Last push
- 2026-10-04
- Forks
- 391
- Homepage
- ai-game.dev
- Topics
- ai, ai-integration, anthropic, claude, claude-code, claude-desktop, cli, copilot, cursor, game-development, gamedev, gemini, llm, mcp, mcp-server, model-context-protocol
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k