IvanMurzak / Unity-MCP
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.
View on GitHubAI Architecture Analysis
This repository is indexed by RepoMind. By analyzing IvanMurzak/Unity-MCP in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler view✨ AI Game Developer — Unity SKILLS, MCP 中文 | 日本語 | Español 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 Quick Start Get up and running in three steps: • **Install plugin** — download the installer or run > **Alternative:** — see CLI documentation • **Pick an AI agent** — Claude Code, Claude Desktop, GitHub Copilot, Cursor, or any other • **Setup AI agent** — open in Unity and click **Auto-generate skills** (recommended) or **Configure MCP** > **Alternative:** — 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 100+ built-in tools across three 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. Project & Assets • - Copy the asset at path and stores it at newPath • - Creates a new folder in the specified parent folder • - Delete the assets at paths from the project • - Search the asset database using the search filter string • - Search the built-in assets of the Unity Editor • - Get asset data from the asset file including all serializable fields and properties • - Create new material asset with default parameters • - Modify asset file in the project • - Move the assets at paths in the project (also used for rename) • - Close currently opened prefab • - Create a prefab from a GameObject in the current active scene • - Instantiates prefab in the current active scene • - Open prefab edit mode for a specific GameObject • - Save a prefab in prefab editing mode • - Refreshes the AssetDatabase • - List all available shaders in the project assets and packages • - Install a package from the Unity Package Manager registry, Git URL, or local path • - List all packages installed in the Unity project (UPM packages) • - Remove (uninstall) a package from the Unity project • - Search for packages in both Unity Package Manager registry and installed packages Scene & Hierarchy • - Add Component to GameObject • - Destroy one or many components from target GameObject • - Get detailed information about a specific Component on a GameObject • - List C# class names extended from UnityEngine.Component • - Modify a specific Component on a GameObject • - Create a new GameObject in opened Prefab or in a Scene • - Destroy GameObject and all nested GameObjects recursively • - Duplicate GameObjects in opened Prefab or in a Scene • - Finds specific GameObject by provided information • - Modify GameObjects and/or attached component's fields and properties • - Set parent GameObject to list of GameObjects • - Get data of the specified Unity Object • - Modify the specified Unity Object • - Create new scene in the project assets • - Retrieves the list of root GameObjects in the specified scene • - Returns the list of currently opened scenes in Unity Editor • - Open scene from the project asset file • - Save opened scene to the asset file • - Set the specified opened scene as the active scene • - Unload scene from the opened scenes in Unity Editor • - Captures a screenshot from a camera and returns it as an image • - Captures a screenshot from the Unity Editor Game View • - Captures a screenshot from the Unity Editor Scene View Scripting & Editor • - Retrieves Unity Editor logs with filtering options • - Returns information about the Unity Editor application state (playmode, paused, compilation) • - Control the Unity Editor application state (start/stop/pause playmode) • - Get information about the current Selection in the Unity Editor • - Set the current Selection in the Unity Editor • - Call any C# method with input parameters and return results • - Find method in the project using C# Reflection (even private methods) • - Delete the script file(s) • - Compiles and executes C# code dynamically using Roslyn • - Reads the content of a script file • - Updates or creates script file with the provided C# code • - Execute Unity tests (EditMode/PlayMode) with filtering and detailed results 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 ParticleSystem** | Set of additional tools for Unity Particle System | | **AI ProBuilder** | Set of additional tools for Unity ProBuilder | Contents • Quick Start • Skills and Tools Reference • Install Additional…