# Unity Biome MCP Build Unity scenes by asking Claude for the next change, or edit the open scene yourself with `ubiome`. ## Build a toy shop in five requests **Claude Code** · “Make the cube spin.” Watch Claude attach a component and check that the cube actually turns in Play Mode. ![Five requests turn an empty Unity scene into a toy shop with a spinning blue cube and a small house](docs/assets/claude-code-terminal.svg) **Claude Desktop** · Follow the same scene edits in an illustrated chat using the results Unity returned. ![Claude Desktop-style conversation showing the cube, its blue material and the completed house](docs/assets/chat-demo.svg) **Interactive CLI** · Enter `ubiome shell` once. Type `help`, create a pickup, move it and check the editor for compile errors. ![Live Unity terminal session creating, moving and inspecting a pickup](docs/assets/terminal-demo.svg)
Try the five prompts, inspect the tool calls or install the Unity skills [Replay the Toyshop workflow](docs/terminal/claude-code.md) · [Copy the interactive terminal session](docs/terminal/index.md) Claude created the cube and saved the scene in one batch. To teach your agent how to choose tools, batch edits and verify results in your own project, install the optional [Unity skills for Claude Code and Codex](docs/install/ai-skills.md).
Copy the first command and see the recorded output With the [Unity plugin installed](#quick-start) and your project open outside Prefab Mode, run: ```sh ubiome get_scene_tree depth=2 ``` Output from the included SampleScene (first six lines; references vary by session): ```text Main Camera &asK Global Light 2D &asW House &axs │ ├─ Floor &arq │ ├─ WallBack &axC │ ├─ WallFrontL &ato ``` [Read the five Toyshop requests and their results](docs/terminal/claude-code.md).
Install the CLI and try the command offline Install the CLI once with [uv](https://docs.astral.sh/uv/) and Git: ```sh uv tool install 'git+https://github.com/german-krasnikov/unity-biome-mcp.git@master#subdirectory=server' ``` You can check the command before opening Unity: ```console $ ubiome get_scene_tree depth=2 --dry-run [dry-run] get_scene_tree {'depth': 2} ```
[Quick Start](#quick-start) · [Documentation](https://german-krasnikov.github.io/unity-biome-mcp/) · [Browser demos](https://german-krasnikov.github.io/biome-html/unity/) · [Releases](https://github.com/german-krasnikov/unity-biome-mcp/releases) ## Quick Start You need Unity 6 (`6000.0` or later), Git 2.14+ on `PATH`, and [uv](https://docs.astral.sh/uv/getting-started/installation/). The server requires Python 3.14+, which `uvx` manages for the standard setup. Install Python separately for source development or optional Codex skill synchronization. 1. In Unity, open **Window > Package Manager > + > Add package from git URL**: ```text https://github.com/german-krasnikov/unity-biome-mcp.git?path=unity-plugin#master ``` 2. Wait for the package to compile. Keep the project open and run `ubiome get_scene_tree depth=2` in your terminal. If the connection fails, open **MCP > Status > Diagnose** in Unity or run `ubiome doctor`. 3. To use a desktop MCP client as well, open **MCP > Setup Wizard**, choose your client, and point its server entry at the [development server](docs/getting-started/index.md#use-the-development-server) before restarting it. The Wizard configures the client and does not perform an end-to-end connection test. Ask the client to read the loaded scenes at depth 2. A successful `get_scene_tree(depth=2)` call returns the hierarchy shown above. For manual setup, see the [client guides](docs/install/index.md). For in-editor chat, use the [local package setup](docs/getting-started/index.md#in-unity-chat) so the relay runs the matching server. You do not need external-client configuration for this path. For manual OpenCode setup, use its client-specific configuration instead of the Wizard’s standard clipboard JSON. See the [OpenCode guide](docs/install/opencode.md#external-mcp-client).
Local source installation Use Git and Python 3.14 or newer. From a new checkout: ```bash git clone --branch master https://github.com/german-krasnikov/unity-biome-mcp.git cd unity-biome-mcp python install.py setup python install.py configure --tool claude-code python install.py doctor ``` After upgrading your local Python, run `python install.py update` to recreate the virtual environment.
## Browser demos [Play the Unity browser builds](https://german-krasnikov.github.io/biome-html/unity/). These are playable game builds, not a live Unity Editor connection or an MCP client test. Use the quick start to try editor automation in your own project. ## Documentation | Goal | Guide | |---|---| | Install and connect | [Getting Started](docs/getting-started/index.md) | | Choose and configure an MCP client | [Client guides](docs/install/index.md) | | Install project-local AI guidance | [AI Skills and Agents](docs/install/ai-skills.md) | | Find a tool for a task | [Tool Guide](docs/features/tool-guide.md) | | Use batch safely | [Batch Operations](docs/tools/batch.md) | | Build Play Mode workflows | [PlayTest DSL](docs/features/playtest.md) | | Configure In-Unity Chat | [Chat Backends](docs/chat/backends.md) | | Extend Unity Biome MCP | [Plugin Quick Start](docs/plugins/index.md) | | Diagnose failures | [Diagnostics](docs/tools/diagnostics.md) | ## What You Can Do - **Scene and object editing:** inspect and modify GameObjects, components, assets, materials, shaders, and UI. - **Playtesting and verification:** run PlayTest DSL workflows, compile checks, console checks, runtime diagnostics, and visual comparisons. - **Animation and VFX:** work with clips, Animator controllers, Timeline, particles, materials, shaders, and Shader Graph. - **Efficient tool use:** group compatible operations with `execute_batch`, request deferred schemas, and enable capability categories only when needed. - **Extensibility:** add project-specific server tools, Unity commands, Chat context chips, and plugin hooks.
Prompt and batch examples Example prompts: > Create a player object, add a Rigidbody, and place it at the scene origin. > Find enemies without colliders and add a BoxCollider to each. > Run a playtest that moves the player to the door and verifies that the score increases. > Capture the Game View and compare it with the saved baseline. > Summarize scene changes since the last checkpoint. ### Batch example Use `execute_batch` for two or more compatible operations: ```python execute_batch(commands=""" create_node name=Enemy set_component_property path=Enemy component=Transform prop=position value=0,1,0 manage_component path=Enemy type=Rigidbody action=add set_component_property path=Enemy component=Rigidbody prop=mass value=2 """) ``` Some typed tools are direct-only and cannot be placed in a batch. See the [Batch guide](docs/tools/batch.md) for validation, Undo-backed rollback, and error handling.
## Ways to Work ### External MCP client An MCP client launches the Python server over stdio. The server discovers the active Unity project and sends framed commands to the editor plugin over localhost TCP. ### In-Unity Chat Open **MCP > Chat** to work inside the editor. Select a supported CLI backend and use Ask or Agent mode. Authentication is handled by the selected CLI. Context chips can attach scene objects, scripts, and assets to a turn, while each completed AI turn is grouped for Unity undo. See [Chat backends](docs/chat/backends.md) for setup and behavior. ## Architecture Animated architecture diagram: external clients and In-Unity Chat reach the Python MCP server and Unity Editor plugin through their local transport paths The external path is `MCP client -> Python MCP server -> localhost TCP -> Unity Editor plugin`. In-Unity Chat invokes the selected CLI through the local chat relay; that CLI connects to the same Python MCP server and rejoins the shared TCP-to-plugin path. ## AI Skills The Unity package includes 12 reusable domain skills and 4 focused agents for Claude Code and Codex. They cover efficient MCP tool selection, batching, Unity authoring, playtesting, diagnostics, and evidence-based verification. Open **MCP > Install AI Skills** to install them into the current project. Existing and generated files are ownership-checked before replacement. See [AI Skills and Agents](docs/install/ai-skills.md) for paths, safe updates, and Codex synchronization. MCP clients that support Skills can also discover the bundled `unity-mcp-operations` guide and fetch its references from the running server at `skill://unity-mcp-operations/SKILL.md`. ## Project Inventory

Documentation MIT license Latest release

Python CI C# Linux EditMode C# macOS EditMode C# Windows EditMode

Python coverage C# coverage SonarCloud Quality Gate Tool quality score

Registered MCP tools Discovered test inventory unity-biome-mcp MCP server

The values below are generated from registrations, pytest collection, Unity test discovery or source scanning, and package metadata. They are discovery counts, not a claim that every test was executed in the current checkout. 160 registered MCP tools. Test inventory: 17748 entries: 7321 regular Python, 511 Python stress, 658 live Python, and 9258 Unity source attributes. Unity count source: static source scan. Server package version: v3.0.3. ## Unity MCP Product Comparison Verified August 16, 2026: - **Unity Biome MCP:** 160 registered tools, deterministic PlayTest DSL, and visual baseline/diff workflows. - **Unity MCP Server 2.17:** first-party local bridge, connection approval, and multi-client support. - **MCP for Unity 10.1.2:** Unity 2021.3 compatibility, 47 tool entrypoints, and authenticated remote hosting. - **AI Game Developer 0.87.0:** compiled-player runtime plus local, HTTP, cloud, and Docker deployment. - **MCP Unity:** 33 listed tools, optional Undo rollback for batches, and an MCP App dashboard. The detailed matrix cites exact source commits or versioned official documentation and records constraints as well as strengths. [Open the full source-backed comparison](docs/comparison.md) ## Recent Changes **Current release: v3.0.3 (2026-11-17).** [Read the full changelog.](CHANGELOG.md) ## Contributing Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. New contributors can start with [good first issues](https://github.com/german-krasnikov/unity-biome-mcp/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Report security issues through [SECURITY.md](SECURITY.md). ## License [MIT](LICENSE) · [Third-Party Notices](THIRD-PARTY-NOTICES.md)