Unity MCP Server
Unity MCP Server AI-Powered Unity Editor & Hub Control
The most comprehensive Model Context Protocol (MCP) server for Unity game development. Connect Claude, Cursor, Windsurf, or any MCP-compatible AI assistant to Unity Editor and Unity Hub with 288 tools across 30+ categories. Built and maintained by AnkleBreaker Studio.
AnkleBreaker Unity MCP turns your AI assistant into a full Unity co-pilot — create scenes, manipulate GameObjects, manage components, run builds, profile performance, edit Shader Graphs, control Amplify Shader Editor, sculpt terrain, bake NavMesh, manage animations, run multiplayer playmode scenarios, and much more — all without leaving your AI chat. Works with Claude Desktop, Claude Cowork, Cursor, Windsurf, and any tool that supports the Model Context Protocol.
Neon Brick Breaker — Built from scratch by AI in under 5 minutes
Claude creates the entire game: scene setup, neon materials with bloom post-processing, brick grid layout, game scripts, VFX, and UI — all through Unity MCP commands.
3D Medieval Village — AI-generated terrain, houses, and environment
From an empty scene to a fully decorated village: terrain sculpting, material creation, procedural house building via C# editor scripts, trees, fences, and pathways.
3D Castle — Complete level with FPS walkthrough
AI builds a multi-room castle with courtyard, throne room, armory, and guard room. Adjusts lighting, spawns the player, and runs an FPS walkthrough to verify the result.
How It Works — AI → MCP Server → Unity Plugin → Unity Editor
The Model Context Protocol connects your AI assistant to Unity through a lightweight bridge. Commands flow from your AI chat directly into the editor in real-time.
Features
288 tools covering the full Unity workflow:
Category | Tools |
Unity Hub | List/install editors, manage modules, set install paths |
Scenes | Open, save, create scenes, get full hierarchy tree with pagination |
GameObjects | Create (primitives/empty), delete, duplicate, reparent, activate/deactivate, transform (world/local) |
Components | Add, remove, get/set any serialized property, wire object references, batch wire |
Assets | List, import, delete, search, create prefabs, create & assign materials |
Scripts | Create, read, update C# scripts |
Builds | Multi-platform builds (Windows, macOS, Linux, Android, iOS, WebGL) |
Console & Compilation | Read/clear Unity console logs (errors, warnings, info); get C# compilation errors via CompilationPipeline (independent of console buffer) |
Testing | Run EditMode/PlayMode tests, poll results, list available tests via Unity Test Runner API |
Play Mode | Play, pause, stop |
Editor | Execute menu items, run C# code, get editor state, undo/redo |
Project | Project info, packages (list/add/remove/search), render pipeline, build settings |
Animation | List clips & controllers, get parameters, play animations |
Prefab | Open/close prefab mode, get overrides, apply/revert changes |
Physics | Raycasts, sphere/box casts, overlap tests, physics settings |
Lighting | Manage lights, environment, skybox, lightmap baking, reflection probes |
Audio | AudioSources, AudioListeners, AudioMixers, play/stop, mixer params |
Terrain | Create/modify terrains, paint heightmaps/textures, manage terrain layers, trees, details |
Navigation | NavMesh baking, agents, obstacles, off-mesh links |
Particles | Particle system creation, inspection, module editing |
UI | Canvas, UI elements, layout groups, event system |
Tags & Layers | List/add/remove tags, assign tags & layers |
Selection | Get/set editor selection, find by name/tag/component/layer/tag |
Graphics | Scene and game view capture (inline images for visual inspection) |
Input Actions | Action maps, actions, bindings (Input System package) |
Assembly Defs | List, inspect, create, update .asmdef files |
ScriptableObjects | Create, inspect, modify ScriptableObject assets |
Constraints | Position, rotation, scale, aim, parent constraints |
LOD | LOD group management and configuration |
Profiler | Start/stop profiling, stats, deep profiles, save profiler data |
Frame Debugger | Enable/disable, draw call list & details, render targets |
Memory Profiler | Memory breakdown, top consumers, snapshots ( |
Shader Graph | List, inspect, create, open Shader Graphs & Sub Graphs; VFX Graphs |
Amplify Shader Editor | Full graph manipulation — create, inspect, add/remove/connect/disconnect/duplicate nodes, set properties, templates, save/close (if installed) |
MPPM Scenarios | List, activate, start, stop multiplayer playmode scenarios; get status & player info |
Multi-Instance | Discover and switch between multiple running Unity Editor instances |
Multi-Agent | List active agents, get agent action logs, queue monitoring |
SpriteAtlas | Create, inspect, add/remove sprites, configure settings, delete, list SpriteAtlases |
UMA (Unity Multipurpose Avatar) | Create slots, overlays, wardrobe recipes from FBX; equip/unequip items on DCA; browse/rebuild Global Library |
Project Context | Auto-inject project-specific docs and guidelines for AI agents |
Related MCP server: Unity MCP Server
Architecture
Claude / AI Assistant ←→ MCP Server (this repo) ←→ Unity Editor Plugin (HTTP bridge)
↕
Unity Hub CLIThis server communicates with:
Unity Hub via its CLI (supports both modern
--headlessand legacy-- --headlesssyntax)Unity Editor via the companion unity-mcp-plugin which runs an HTTP API inside the editor
288 Tools Across 30+ Categories
Scene management, GameObjects, components, physics, terrain, Shader Graph, Amplify Shader Editor, profiling, animation, NavMesh, builds, multiplayer, and more.
Two-Tier Tool System
To avoid overwhelming MCP clients with 288 tools, the server uses a two-tier architecture:
Core tools (~70) are always exposed directly
Advanced tools (~130+) are accessed via a single
unity_advanced_toolproxy with lazy loading
This keeps the tool count manageable for clients like Claude Desktop and Cowork while still providing access to every Unity feature. Use unity_list_advanced_tools to discover all advanced tools by category.
Multi-Instance Support
The server automatically discovers all running Unity Editor instances on startup. If only one instance is found, it auto-connects. If multiple instances are running (e.g., main editor + ParrelSync clones), it prompts you to select which one to work with.
Port Resilience — The server includes a multi-layer protection system for reliable multi-project workflows:
Port Identity Validation — When restoring a saved connection, the server verifies the instance identity (project name + path) matches the expected target. If Unity restarts and a different project grabs the port, the server detects this and re-discovers the correct instance.
Compile-Time Resilience — During long Unity compiles (when the editor is unresponsive), the server checks the shared instance registry. If the registry entry is fresh (updated within the last 5 minutes via heartbeat), the connection is preserved instead of dropped.
Crash Detection — The plugin sends a heartbeat every 30 seconds to the instance registry. If Unity crashes and the heartbeat stops, the server detects the stale registry entry (>5 minutes old) and clears it, allowing proper re-discovery.
Port Affinity — The plugin remembers its last-used port via EditorPrefs and reclaims it on restart, minimizing port swaps across editor restarts.
Quick Start
1. Install the Unity Plugin
In Unity: Window > Package Manager > + > Add package from git URL:
https://github.com/AnkleBreaker-Studio/unity-mcp-plugin.git2. Install this MCP Server
git clone https://github.com/AnkleBreaker-Studio/unity-mcp-server.git
cd unity-mcp-server
npm install3. Add to Claude Desktop
Open Claude Desktop > Settings > Developer > Edit Config, and add:
{
"mcpServers": {
"unity": {
"command": "node",
"args": ["C:/path/to/unity-mcp-server/src/index.js"],
"env": {
"UNITY_HUB_PATH": "C:\\Program Files\\Unity Hub\\Unity Hub.exe",
"UNITY_BRIDGE_PORT": "7890"
}
}
}
}Restart Claude Desktop. Done!
4. Try It
"List my installed Unity editors"
"Show me the scene hierarchy"
"Create a red cube at position (0, 2, 0) and add a Rigidbody"
"Profile my scene and show the top memory consumers"
"List all Shader Graphs in my project"
"Build my project for Windows"
"List and start my MPPM multiplayer scenarios"
"Capture a screenshot of my scene view"
"Show me the active agent sessions"
Configuration
Environment Variable | Default | Description |
|
| Unity Hub executable path |
|
| Editor bridge host |
|
| Editor bridge port (auto-discovered when using multi-instance) |
|
| Request timeout in ms |
|
| Start of port scan range for multi-instance discovery |
|
| End of port scan range |
|
| Registry entry staleness timeout in ms (crash detection) |
|
| Response size soft limit in bytes (warning) |
|
| Response size hard limit in bytes (truncation) |
|
| Enable debug logging for troubleshooting |
The Unity plugin also has its own settings accessible via the Dashboard (Window > MCP Dashboard) for port, auto-start, and per-category feature toggles.
Optional Package Support
Some tools activate automatically when their packages are detected in the Unity project:
Package / Asset | Features Unlocked |
| Memory snapshot capture via MemoryProfiler API |
| Shader Graph creation, inspection, opening |
| VFX Graph listing and opening |
| Input Action map and binding inspection |
| MPPM scenario listing, activation, start/stop, player info |
Amplify Shader Editor (Asset Store) | Amplify shader listing, inspection, opening |
UMA 2 (Asset Store) | UMA SlotDataAsset/OverlayDataAsset creation, WardrobeRecipe pipeline, Global Library management, DCA wardrobe equip/unequip |
Features for uninstalled packages return helpful messages explaining what to install.
Requirements
Node.js 18+
Unity Hub (for Hub tools)
Unity Editor with unity-mcp-plugin installed (for Editor tools)
Troubleshooting
"Connection failed" errors — Make sure Unity Editor is open and the plugin is installed. Check the Unity Console for [MCP Bridge] Server started on port 7890.
"Unity Hub not found" — Update UNITY_HUB_PATH in your config to match your installation.
"Category disabled" errors — A feature category may be toggled off. Open Window > MCP Dashboard in Unity to check category settings.
Port conflicts — Change UNITY_BRIDGE_PORT in your Claude config and update the port in Unity's MCP Dashboard settings.
Why AnkleBreaker Unity MCP?
AnkleBreaker Unity MCP is the most comprehensive MCP integration for Unity, purpose-built to leverage the full power of Claude Cowork and other AI assistants. Here's how it compares to alternatives:
Feature Comparison
Feature | AnkleBreaker MCP | Bezi | Coplay MCP | Unity AI |
Total Tools | 288 | ~30 | 34 | Limited (built-in) |
Feature Categories | 30+ | ~5 | ~5 | N/A |
Non-Blocking Editor | ✅ Full background operation | ❌ Freezes Unity during tasks | ✅ | ✅ |
Open Source | ✅ AnkleBreaker Open License | ❌ Proprietary | ✅ MIT License | ❌ Proprietary |
Claude Cowork Optimized | ✅ Two-tier lazy loading | ❌ Not MCP-based | ⚠️ Basic | ❌ Not MCP-based |
Multi-Instance Support | ✅ Auto-discovery | ❌ | ❌ | ❌ |
Multi-Agent Support | ✅ Session tracking + queuing | ❌ | ❌ | ❌ |
Unity Hub Control | ✅ Install editors & modules | ❌ | ❌ | ❌ |
Scene Hierarchy | ✅ Full tree + pagination | ⚠️ Limited | ⚠️ Basic | ⚠️ Limited |
Physics Tools | ✅ Raycasts, overlap, settings | ❌ | ❌ | ❌ |
Terrain Tools | ✅ Full terrain pipeline | ❌ | ❌ | ❌ |
Shader Graph | ✅ Create, inspect, open | ❌ | ❌ | ❌ |
Profiling & Debugging | ✅ Profiler + Frame Debugger + Memory | ❌ | ❌ | ⚠️ Basic |
Animation System | ✅ Controllers, clips, parameters | ⚠️ Basic | ⚠️ Basic | ⚠️ Basic |
NavMesh / Navigation | ✅ Bake, agents, obstacles | ❌ | ❌ | ❌ |
Particle Systems | ✅ Full module editing | ❌ | ❌ | ❌ |
MPPM Multiplayer | ✅ Scenarios, start/stop | ❌ | ❌ | ❌ |
Visual Inspection | ✅ Scene + Game view capture | ❌ | ⚠️ Limited | ❌ |
Play Mode Resilient | ✅ Survives domain reload | ❌ | ❌ | N/A |
Port Resilience | ✅ Identity validation + crash detection | ❌ | ❌ | N/A |
Project Context | ✅ Custom docs for AI agents | ❌ | ❌ | ⚠️ Built-in only |
Cost Comparison
AnkleBreaker Unity MCP is completely free and open source. The prices below reflect only the cost of the AI assistant (Claude) itself — the MCP plugin and server are $0.
Solution | Monthly Cost | What You Get |
AnkleBreaker MCP (free) + Claude Pro | $20/mo | 288 tools, full Unity control, open source — MCP is free, price is Claude only |
AnkleBreaker MCP (free) + Claude Max 5x | $100/mo | Same + 5x usage for heavy workflows — MCP is free, price is Claude only |
AnkleBreaker MCP (free) + Claude Max 20x | $200/mo | Same + 20x usage for teams/studios — MCP is free, price is Claude only |
Bezi Pro | $20/mo | ~30 tools, 800 credits/mo, freezes Unity |
Bezi Advanced | $60/mo | ~30 tools, 2400 credits/mo, freezes Unity |
Bezi Team | $200/mo | 3 seats, 8000 credits, still freezes Unity |
Unity AI | Included with Unity Pro/Enterprise | Limited AI tools, Unity Points system, no MCP |
Coplay MCP | Free (beta) | 34 tools, basic categories |
Key Advantages
vs. Bezi: Bezi runs as a proprietary Unity plugin with its own credit-based billing — $20–$200/mo on top of your AI subscription. It has historically suffered from freezing the Unity Editor during AI tasks, blocking your workflow. AnkleBreaker MCP is completely free and open source, runs entirely in the background with zero editor impact, and offers 8x more tools — the only cost is your existing Claude subscription.
vs. Coplay MCP: Coplay MCP provides 34 tools across ~5 categories. AnkleBreaker MCP delivers 288 tools across 30+ categories including advanced features like physics raycasts, terrain editing, shader graph management, profiling, NavMesh, particle systems, and MPPM multiplayer — none of which exist in Coplay. Our two-tier lazy loading system is specifically optimized for Claude Cowork's tool limits.
vs. Unity AI: Unity AI (successor to Muse) is built into Unity 6.2+ but limited to Unity's own AI models and a credit-based "Unity Points" system. It cannot be used with Claude or any external AI assistant, has no MCP support, and offers a fraction of the automation capabilities. AnkleBreaker MCP works with any MCP-compatible AI while giving you full control over which AI models you use.
Support the Project
If Unity MCP helps your workflow, consider supporting its development! Your support helps fund new features, bug fixes, documentation, and more open-source game dev tools.
Sponsor tiers include priority feature requests — your ideas get bumped up the roadmap! Check out the tiers on GitHub Sponsors or Patreon.
What's New in v2.28.2
Codex CLI compatibility — Two diagnostic
console.debug(...)calls in the bridge were writing to stdout, corrupting the MCP JSON-RPC framing. Strict clients like Codex CLI closed the transport as soon as they hit the non-JSON line; the bug was invisible on Claude Desktop / Claude Code which tolerate the framing violation. Both call sites now log to stderr.
What's New in v2.28.0
npm auto-publish — A GitHub Action now automatically publishes to npm whenever a new GitHub release is created. Contributed by @vatanaksoytezer in #8.
npm package renamed — Package renamed from
unity-mcp-servertoanklebreaker-unity-mcpto avoid name conflict on npm. Install vianpx anklebreaker-unity-mcp@latest.SpriteAtlas tools — 7 new tools for Unity SpriteAtlas management: create, inspect, add/remove sprites, configure packing & texture settings, delete, and list SpriteAtlases. Contributed by @zaferdace. Registered as advanced tools accessible via
unity_advanced_tool.UTF-8 encoding fix — Fixed corrupted characters in
unity-editor-bridge.jscomments and section headers.
What's New in v2.27.0
UMA (Unity Multipurpose Avatar) integration — 13 new tools for the complete UMA asset pipeline. Create SlotDataAssets, OverlayDataAssets, and WardrobeRecipes directly from FBX files, equip/unequip wardrobe items on DynamicCharacterAvatar, browse and manage the UMA Global Library, verify recipes for missing references, and more. Requires UMA 2 (available on the Asset Store). Registered as advanced tools accessible via
unity_advanced_tool.
What's New in v2.26.0
Compilation error detection — New
unity_get_compilation_errorstool retrieves C# compilation errors and warnings directly from Unity'sCompilationPipelineAPI. Unlikeunity_console_log, this is independent of the console log buffer — not affected by console clear, Play Mode log flooding, or buffer overflow. Supports filtering by severity (error,warning,all) and count limit. Registered as a core tool (always directly accessible, not behindunity_advanced_tool).
What's New in v2.25.0
Parallel-safe instance routing — When multiple AI agents (e.g. Claude Cowork tasks) share the same MCP process, each agent can now include a
portparameter in everyunity_*tool call to guarantee routing to the correct Unity Editor instance. This prevents cross-agent contamination where one task'sunity_select_instancecould redirect another task's commands to the wrong project.Per-request port override — A new stateless routing mechanism bypasses the shared per-agent state entirely. The
portparameter is extracted by middleware before the tool handler runs, used for routing, then stripped from the args. This is safe because MCP stdio transport processes requests sequentially.Schema injection — The optional
portparameter is automatically injected into everyunity_*tool schema (exceptunity_list_instances,unity_select_instance, andunity_hub_*), so AI assistants see it as a legitimate parameter and pass it consistently.Enhanced select_instance response —
unity_select_instancenow returns explicit routing instructions telling the AI to includeportin all subsequent calls.
Frequently Asked Questions
What is Unity MCP? Unity MCP (Model Context Protocol) is an open-source integration that connects AI assistants like Claude, Cursor, and Windsurf to the Unity Editor and Unity Hub. It allows AI to directly control Unity — creating scenes, placing objects, writing scripts, running builds, profiling, and more — through a standardized protocol.
How does AnkleBreaker Unity MCP compare to other Unity AI tools? AnkleBreaker Unity MCP offers 288 tools across 30+ categories, making it the most comprehensive Unity MCP integration available. Competitors like Bezi (~30 tools) and Coplay MCP (34 tools) cover a fraction of Unity's features. Unlike Bezi, AnkleBreaker MCP is free, open source, and doesn't freeze the Unity Editor during AI operations.
Does it work with Claude Desktop / Claude Cowork? Yes. AnkleBreaker Unity MCP is purpose-built for Claude Desktop and Claude Cowork. It uses a two-tier lazy loading system to stay within MCP client tool limits while exposing all 281 tools on demand.
Does it work with Cursor, Windsurf, or other MCP clients? Yes. Any AI tool that supports the Model Context Protocol can connect to this server. This includes Cursor, Windsurf, Claude Desktop, Claude Cowork, and any other MCP-compatible client.
What Unity versions are supported? Unity 2021.3 LTS and newer, including Unity 2022.3 LTS and Unity 6. The plugin is installed via Unity Package Manager (UPM).
Is it free? Yes. Both the MCP server and the Unity plugin are completely free and open source under the AnkleBreaker Open License. The only cost is your AI assistant subscription (e.g., Claude Pro at $20/month).
Can multiple AI agents use it simultaneously? Yes. The server supports multi-agent operation with session tracking, action logging, and queued execution to prevent conflicts. It also supports multiple Unity Editor instances running side-by-side.
Does it support Amplify Shader Editor? Yes. If Amplify Shader Editor is installed in your project, 23 additional tools are unlocked for full shader graph manipulation — creating nodes, connecting them, setting properties, using templates, and more. Projects without Amplify work perfectly; the tools gracefully report that ASE is not installed.
Related Projects
unity-mcp-plugin — The companion Unity Editor plugin (UPM package) that this server connects to
Model Context Protocol — The open standard that powers this integration
Claude Desktop — Anthropic's AI assistant with built-in MCP support
AnkleBreaker Studio — The game studio behind this project
Unity MCP, Unity MCP Server, Unity MCP Plugin, Unity AI, AI game development, AI Unity Editor, Claude Unity, Cursor Unity, Windsurf Unity, Model Context Protocol Unity, MCP server Unity, Unity automation, AI-assisted game development, Unity Editor AI control, Unity Hub AI, Unity build automation, Unity scene management AI, Unity GameObject AI, Unity component automation, Shader Graph AI, Amplify Shader Editor AI, Unity terrain AI, Unity NavMesh AI, Unity physics AI, Unity profiler AI, Unity animation AI, MPPM multiplayer AI, Unity MCP integration, free Unity AI tools, open source Unity AI, AnkleBreaker Studio, AnkleBreaker MCP, Unity MCP bridge, Unity Editor plugin MCP, UPM MCP package, AI co-pilot Unity, Unity game dev AI assistant
License
AnkleBreaker Open License v1.0 — see LICENSE
This license requires: (1) including the copyright notice, (2) displaying "Made with AnkleBreaker MCP" (or "Powered by AnkleBreaker MCP") attribution in any product built with it (personal/educational use is exempt), and (3) reselling the tool is forbidden — you may not sell, sublicense, or commercially distribute this software or derivatives of it. See the full LICENSE for details.
Available Tools
80 toolsunity_advanced_toolA
Execute an advanced Unity tool by name (269 cached + plugin lazy-loaded; discover names via unity_list_advanced_tools search=/category=, parameters via tool=).
Inputs: tool (required), port, params.
unity_agent_logA
Get the action log for a specific agent, showing the last 100 actions with timestamps.
Inputs: agentId (required), port.
unity_agents_listA
List all active agent sessions connected to the AB Unity MCP bridge. Shows each agent's ID, connection time, last activity, current action, total actions count, queued/completed request counts, and average response time.
Inputs: port.
unity_asset_create_prefabB
Create a prefab from an existing GameObject in the scene.
Inputs: savePath (required), gameObjectPath (required), port.
unity_asset_deleteA
Delete an asset — to the OS trash by default (NOT undoable via unity_undo_last). Deleting a FOLDER is recursive and refuses without recursive:true.
Inputs: path (required), port, permanent, recursive.
unity_asset_importB
Import an external file into the Unity project as an asset.
Inputs: sourcePath (required), destinationPath (required), port, overwrite.
unity_asset_instantiate_prefabC
Instantiate a prefab into the current scene.
Inputs: prefabPath (required), name, port, parent, +2 more.
unity_asset_listC
List assets in the project. Can filter by path, type, and search term.
Inputs: port, type, folder, search, +2 more.
unity_buildC
Build the project for a target platform.
Inputs: target (required), outputPath (required), port, scenes, +2 more.
unity_component_addA
Add a component to a GameObject. Supports built-in types (Rigidbody, BoxCollider, AudioSource, Light, Camera, etc.) and custom scripts.
Inputs: componentType (required), gameObjectPath (required), port.
unity_component_batch_wireA
Wire multiple object references in one call (e.g. a manager to all its panels). Each entry: target GameObject, property, reference to assign.
Inputs: references (required), port.
unity_component_get_propertiesB
Get all serialized properties of a component on a GameObject.
Inputs: componentType (required), gameObjectPath (required), port.
unity_component_get_referenceableA
Discover what objects can be assigned to an ObjectReference property. Returns matching scene objects and project assets filtered by the expected type. Useful before wiring references to know what's available.
Inputs: propertyName (required), path, port, instanceId, +2 more.
unity_component_removeB
Remove a component from a GameObject.
Inputs: componentType (required), gameObjectPath (required), port, index.
unity_component_set_propertyC
Set a serialized component property: numbers, strings, bools, vectors, colors, enums or object references.
Inputs: value (required), propertyName (required), componentType (required), gameObjectPath (required), +1 more.
unity_component_set_referenceA
Wire an object reference on a component property. Resolves by asset path, scene GameObject name, component type, or instance ID (richer than set_property for ObjectReference fields).
Inputs: propertyName (required), path, port, clear, +6 more.
unity_console_clearA
Clear the Unity console log.
Inputs: port.
unity_console_logB
Get recent Unity console log messages (errors, warnings, info).
Inputs: port, type, count, maxStackFrames, +1 more.
unity_editor_pingA
Check if the Unity Editor bridge is running and responsive. Returns editor version, project name, and connection status.
Inputs: port.
unity_editor_stateB
Get the current Unity Editor state: play mode, compilation status, active scene, project path.
Inputs: port.
unity_execute_codeA
Run C# in the Unity Editor with Unity API access. Return a small JSON result. If an error has executionCompleted=true, the code already ran; inspect its effects before retrying.
Inputs: code (required), port.
unity_gameobject_createB
Create a new GameObject in the scene. Can specify primitive type (Cube, Sphere, Capsule, Cylinder, Plane, Quad), parent, and initial transform.
Inputs: name (required), port, scale, parent, +3 more.
unity_gameobject_deleteA
Delete a GameObject by path or name. Refuses if its runtime mesh is shared by other objects (ProBuilder clones) — reports sharedWith; pass force:true to override.
Inputs: path, port, force, instanceId.
unity_gameobject_duplicateB
Duplicate a GameObject with all its children and components.
Inputs: path, port, newName, instanceId.
unity_gameobject_infoA
Get detailed info about a specific GameObject: transform, components, children, active state, tags, layer.
Inputs: path, port, instanceId.
unity_gameobject_reparentB
Move a GameObject under a new parent in the hierarchy.
Inputs: path, port, newParent, instanceId, +1 more.
unity_gameobject_set_activeB
Set a GameObject active or inactive.
Inputs: active (required), path, port, instanceId.
unity_gameobject_set_transformC
Set the transform (position, rotation, scale) of a GameObject.
Inputs: path, port, local, scale, +3 more.
unity_get_compilation_errorsA
Get C# compilation errors/warnings via CompilationPipeline — independent of the console buffer (survives console clear and log flooding). Prefer this over unity_console_log for compile issues.
Inputs: port, count, severity.
unity_get_project_contextA
Get the project docs/guidelines the team prepared for AI agents (from Assets/MCP/Context/). No args = all context; pass a category for one document. Call early in a session.
Inputs: port, category.
unity_graphics_game_captureB
Render one camera to inline PNG, without Game View composition or overlay UI. Whole-pixel sizes within device limits, at most 33554432 pixels.
Inputs: port, width, height, cameraName.
unity_graphics_scene_captureB
Render the Scene View camera to inline PNG. Whole-pixel sizes within device limits, at most 33554432 pixels.
Inputs: port, width, height.
unity_hub_available_releasesA
List Unity Editor versions available for download from Unity Hub.
Inputs: no named parameters.
unity_hub_get_install_pathA
Get the current default installation path for Unity Editors.
Inputs: no named parameters.
unity_hub_install_editorB
Install a specific Unity Editor version. Optionally include platform modules (android, ios, webgl, linux, macos, windows-il2cpp).
Inputs: version (required), modules.
unity_hub_install_modulesA
Install additional platform modules to an already-installed Unity Editor version.
Inputs: modules (required), version (required).
unity_hub_list_editorsA
List all Unity Editor versions currently installed via Unity Hub, including their installation paths.
Inputs: no named parameters.
unity_hub_set_install_pathB
Set the default installation directory for Unity Editors.
Inputs: path (required).
unity_list_advanced_toolsA
Discover advanced Unity tools (execute them via unity_advanced_tool) without loading full schemas: search=keywords → matching tools; category=name → its tools with parameter names; tool=name → that tool's full parameter schema; no args → all category names with counts (e.g. animation, terrain, shadergraph, probuilder, uma, physics, lighting, ui, …).
Inputs: port, tool, search, category, +1 more.
unity_list_instancesA
List running Unity Editor instances (name, port, version, clone flag, pluginVersion). With multiple instances, select one with unity_select_instance next.
Inputs: refresh.
unity_material_createC
Create a new material asset with a specified shader and properties.
Inputs: path (required), port, color, shader, +2 more.
unity_packages_addA
Add/install a Unity package by identifier (e.g. 'com.unity.cinemachine' or 'com.unity.cinemachine@3.0.0').
Inputs: identifier (required), port.
unity_packages_infoA
Get detailed info about an installed package including versions and dependencies.
Inputs: name (required), port.
unity_packages_listA
List all installed Unity packages with their name, version, source, and status.
Inputs: port.
unity_packages_removeC
Remove/uninstall a Unity package by name.
Inputs: name (required), port.
unity_packages_searchB
Search for Unity packages in the registry.
Inputs: query (required), port.
unity_play_modeB
Control Unity Editor play mode: enter play, pause, or stop.
Inputs: action (required), port.
unity_prefab_infoA
Get detailed prefab information: overrides, variant status, added/removed components. Works on both prefab assets and scene instances.
Inputs: path, port, assetPath, instanceId.
unity_project_infoA
Get project information: name, path, Unity version, render pipeline, packages, build settings.
Inputs: port.
unity_queue_infoB
Queue depths, agents and results. Plugin metrics: http, httpCommands (admission), completedResults (cost/evictions), historyNotifications (backlog), historyPersistence (file limits/failures). Reset on reload. serverAgentState: Node agent/identity limits, leases, evictions. Accounted bytes are not heap usage.
Inputs: port.
unity_redoA
Redo the last undone operation in Unity Editor.
Inputs: port.
unity_renderer_set_materialC
Assign a material to a GameObject's renderer.
Inputs: materialPath (required), gameObjectPath (required), port, materialIndex.
unity_scene_hierarchyA
Get the hierarchy tree of all GameObjects in the active scene, including their components and children. Dense by default: per-node fields at their default value (active=true, tag=Untagged, layer=Default, origin position, Transform) are omitted — an absent field means the default.
Inputs: port, verbose, maxDepth, maxNodes, +1 more.
unity_scene_infoB
Get information about the currently open scene(s), including name, path, dirty state, and root game objects.
Inputs: port.
unity_scene_newA
Create a new empty scene (REPLACES the current one). Refuses if any loaded scene has unsaved changes — pass saveFirst or discardUnsavedChanges.
Inputs: port, saveFirst, discardUnsavedChanges.
unity_scene_openA
Open a scene by its asset path (relative to Assets/). Refuses if any loaded scene has unsaved changes — pass saveFirst or discardUnsavedChanges.
Inputs: path (required), port, saveFirst, discardUnsavedChanges.
unity_scene_saveA
Save the current scene. A never-saved scene requires path, else Unity opens its interactive Save dialog.
Inputs: path, port, overwrite.
unity_scene_statsA
Get comprehensive scene statistics: total objects, vertices, triangles, lights, cameras, colliders, and top component types.
Inputs: port.
unity_screenshot_editor_windowA
Capture an existing EditorWindow to PNG (Windows PrintWindow) without requesting keyboard focus. Hidden tabs require activateTab:true; ambiguous names return id: candidates. GPU/minimized windows can refuse capture. USE ONLY ON EXPLICIT USER REQUEST; never proactively or for your own inspection. On macOS/Linux report unsupported, do not retry; use Game/Scene captures there.
Inputs: window (required), path, port, activateTab, +1 more.
unity_screenshot_gameA
Capture a screenshot of the Game View. The screenshot is saved on the next frame render.
Inputs: path, port, superSize.
unity_screenshot_sceneB
Capture a screenshot of the Scene View camera. Returns immediately with the saved file path.
Inputs: path, port, width, height.
unity_script_createB
Create a new C# script file in the project with the given content.
Inputs: path (required), content (required), port, className, +1 more.
unity_script_readB
Read the contents of a C# script file from the project.
Inputs: path (required), port.
unity_script_updateB
Update the contents of an existing C# script file.
Inputs: path (required), content (required), port.
unity_search_assetsA
Search for assets in the project by name, type, and folder. Uses Unity's AssetDatabase search.
Inputs: port, type, query, folder, +1 more.
unity_search_by_componentB
Find all GameObjects in the scene that have a specific component type. Returns their paths and instance IDs.
Inputs: componentType (required), port, limit, includeInactive.
unity_search_by_layerB
Find all GameObjects on a specific layer.
Inputs: layer (required), port, limit.
unity_search_by_nameB
Find all GameObjects whose name contains a pattern. Supports substring matching or regex.
Inputs: name (required), port, limit, regex, +1 more.
unity_search_by_tagB
Find all GameObjects with a specific tag.
Inputs: tag (required), port, limit.
unity_search_missing_referencesB
Find all missing/broken object references and missing scripts in the scene. Essential for cleanup and debugging.
Inputs: port, limit, scope.
unity_select_instanceA
Select the Unity Editor instance this session targets; subsequent unity_* calls route there. Identify it by projectName (stable) or port (dynamic — can change across editor restarts). PARALLEL SAFETY: after selecting, include port on every unity_* call when multiple agents share this MCP process.
Inputs: port, projectName.
unity_selection_find_by_typeC
Find all GameObjects in the scene that have a specific component type.
Inputs: typeName (required), port, limit.
unity_selection_focus_scene_viewA
Control the Scene View camera: frame a GameObject, set pivot/rotation/zoom, toggle orthographic.
Inputs: path, port, size, position, +3 more.
unity_selection_getA
Get the currently selected GameObjects in the Unity Editor.
Inputs: port.
unity_selection_setC
Set the editor selection to specific GameObjects.
Inputs: path, port, paths, instanceId.
unity_set_object_referenceA
[LEGACY] Set an object reference on a component. Prefer unity_component_set_reference (richer resolution).
Inputs: propertyName (required), path, port, instanceId, +3 more.
unity_undoA
Undo the single most recent step on Unity's global undo stack (Ctrl+Z). To revert a specific MCP action, prefer unity_undo_last.
Inputs: port.
unity_undo_historyB
Show which recorded MCP actions can still be reverted, with agent, target and current Unity Undo state.
Inputs: port, count, agentId.
unity_undo_lastA
Revert the latest verified MCP Undo group, optionally by agentId. Newer MCP/native groups require force:true. Only Unity-registered changes are covered; this revert creates no Redo step. Use unity_undo for normal Undo/Redo. Reads and execute-code are not targets.
Inputs: port, force, agentId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 80 tools
Several tools target the same resource/action: unity_search_by_component and unity_selection_find_by_type are effectively duplicates, and unity_screenshot_scene/unity_graphics_scene_capture plus their game-view variants overlap. Legacy unity_set_object_reference also overlaps with unity_component_set_reference, creating real misselection risk despite descriptive text.
All names use snake_case with a unity_ prefix, but verb/noun order is inconsistent: domain_action (unity_scene_save, unity_asset_delete) mixes with action_domain (unity_list_instances, unity_get_project_context) and bare verbs (unity_build, unity_redo). Readable overall, but the pattern is not predictable.
80 direct tools is far beyond the 25+ threshold; additionally unity_advanced_tool fronts 269+ lazy-loaded tools. This is an extreme over-scoping that burdens discovery and selection.
Core Unity editor automation is broadly covered: GameObjects, components, scenes, assets, prefabs, scripts, packages, Hub, play mode, build, and advanced tools. Minor gaps remain (e.g., direct asset move/rename, material property edit, script delete), but most can be handled via execute_code/menu/advanced tools.
Maintenance
Related MCP Connectors
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to interact with Unity projects through multimodal vision, code analysis, asset management, and scene manipulation. Supports real-time Unity editor control, project search, script creation, and visual debugging through screenshots.32MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Unity Editor projects through 68+ tools for manipulating scenes, GameObjects, components, and assets, plus live access to console logs, hierarchies, and test results.10MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query and control the Unity Editor, supporting scene management, GameObject manipulation, asset browsing, play mode control, and real-time editor operations through 52+ tools.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Unity Editor, managing scenes, game objects, animations, materials, scripts, and more via natural language commands.2MIT