Patina Unity MCP is a high-performance Unity MCP tool that provides an extensible API for agent tools. It controls the Unity Editor through a local server and a C# bridge, enabling AI assistants to view scenes, create objects, and interact with the console.
Purpose
Patina is designed to connect AI programming tools directly to the Unity Editor, enabling AI assistants to perform tasks such as scene operations, object creation, and console interaction. It is suitable for scenarios that require AI-assisted Unity development, such as automated scene setup, batch object operations, and prefab editing.
Main Capabilities
- Connects AI programming tools to the Unity Editor through a local TCP channel, with zero manual configuration.
- One-click setup: after installing the UPM package, click a button to automatically configure all supported hosts.
- No Rust environment required: release packages provide precompiled binaries for Windows, Linux, and macOS.
- High performance: the Rust sidecar keeps the MCP layer fast and lightweight, while Unity keeps the main thread running.
- Multi-host support: compatible with Claude Code, Cursor, VS Code, Gemini CLI, JetBrains Rider, Codex CLI, and more.
- Provides 87 commands, accessed through patina_capabilities and patina_call, covering components and properties, batch operations, prefabs, Scriptable Objects, validation and health checks, editor state control, build and player settings, and more.
Usage
- Install the Unity package: in Unity, open Project Settings > Package Manager, add the scoped registry, then install the package by name. You can also use the Package Manager's + icon to select Add package by name... or Add package from git URL... and enter the corresponding address.
- Run one-click setup: open Window > Patina Unity MCP and click One-Click Setup. The setup process verifies the binary, starts the Unity bridge, automatically configures all detected hosts, replaces outdated entries, and shows restart guidance when needed.
- Start building: open an MCP host and try commands such as "Log hello to Unity console", "Show me the scene hierarchy", "Create a cube at position 0, 2, 0".
Suitable Scenarios
- AI-assisted Unity development, automating scene operations and object creation.
- Batch editing of prefabs, components, and properties.
- Editor state control and build settings through AI assistants.
- Unity projects that need integration with multiple MCP hosts.
Limitations
- Requires Unity 6 (6000.3 LTS+) and a supported MCP host.
- Contributors need Rust 1.75+.
- When Unity is waiting on a modal dialog, Patina cannot safely run queued editor commands; the Unity prompt must be resolved first.
- The prefab stage save dialog is handled through a programmatic response, and the save_changes parameter of close_prefab_stage determines whether to save or discard changes.
- Once a modal dialog appears, the Unity main thread is blocked and must be closed manually.
- For editor scripts written by agents, the safe mode is to use methods such as PrefabUtility.LoadPrefabContents to avoid opening a prefab stage.
- Unity's -automated startup flag can disable dialogs, but it may cause problems in mixed workflows; Patina does not require using this flag.
- Local development requires a source code checkout or a staged local UPM test package.