Unity-MCP
by IvanMurzak·★ 2,767·Score 57
Unity-MCP enables AI agents to work directly in Unity Editor and runtime through MCP protocol.
Overview
Unity-MCP is a comprehensive MCP server that bridges Unity game development with AI capabilities. It provides extensive tools for AI agents to manipulate Unity projects, create game objects, modify assets, and even work within compiled games at runtime. The server supports multiple AI providers including Claude, OpenAI, and Microsoft with no vendor lock-in, and features a CLI for quick setup. Its ability to enable AI interaction inside games opens up possibilities for dynamic NPC behavior and real-time debugging.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose Unity MCP if you're developing with Unity and want to integrate AI directly into your development workflow or game runtime.
When NOT to choose this
Don't choose Unity MCP if you're not using Unity or need AI integration with other game engines.
Tools this server exposes
12 tools extracted from the READMEassets-copyCopy the asset at path and stores it at newPath
gameobject-createCreate a new GameObject in opened Prefab or in a Scene
scene-openOpen scene from the project asset file
script-update-or-createUpdates or creates script file with the provided C# code
reflection-method-callCall any C# method with input parameters and return results
editor-application-set-stateControl the Unity Editor application state (start/stop/pause playmode)
assets-findSearch the asset database using the search filter string
gameobject-modifyModify GameObjects and/or attached component's fields and properties
package-addInstall a package from the Unity Package Manager registry
tests-runExecute Unity tests (EditMode/PlayMode) with filtering and detailed results
screenshot-game-viewCaptures a screenshot from the Unity Editor Game View
reflection-method-findFind method in the project using C# Reflection (even private methods)
Comparable tools
Installation
Installation
Unity Package
- [Download the Unity package](https://github.com/IvanMurzak/Unity-MCP/releases/latest/download/AI-Game-Dev-Installer.unitypackage)
- Import it into your Unity project
OpenUPM
openupm add com.ivanmurzak.unity.mcpCLI
# Install CLI
npm install -g unity-mcp-cli
# Install plugin in Unity project
unity-mcp-cli install-plugin ./MyUnityProject
# Setup AI skills
unity-mcp-cli setup-skills claude-code ./MyUnityProjectClaude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"unity-mcp": {
"command": "npx",
"args": ["unity-mcp-server"],
"env": {}
}
}
}FAQ
- Does Unity-MCP work in runtime games?
- Yes, unlike many other tools, Unity-MCP works inside your compiled game, allowing for real-time AI debugging and player-AI interaction.
- Which AI providers are supported?
- Unity-MCP supports AI agents from Anthropic (Claude), OpenAI, Microsoft, and any other provider with no vendor lock-in.
- Can I create custom tools?
- Yes, the server is extensible - you can create custom tools in your project code by exposing C# methods as MCP tools.
On Hacker News
Recent discussion from the developer community.
- Story by IvanMurzak · 2025-04-19
Compare Unity-MCP with
Last updated · Auto-generated from public README + GitHub signals.