Unity MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --host | No | Host of the Unity bridge when using it across machines / over LAN (e.g. 192.168.1.20). | |
| --open | No | Automatically open the browser after starting. | |
| --no-ui | No | Only run the MCP server (same as --headless); the web studio is skipped. | |
| --stdio | No | Only run the MCP server (stdio), without the web workflow studio. | |
| --token | No | Token required by /call and /tools when the bridge is bound to 0.0.0.0 for LAN/remote access. | |
| --project | No | Path to the Unity project root; reads Temp/UnityMcpBridge.json to locate the bridge quickly. | |
| --http-port | No | Web studio port. | 17800 |
| --unity-port | No | Directly specify the Unity bridge port (by default it auto-scans 17653–17700). | 17653 |
| --strict-port | No | Used with --unity-port to pin a single editor instance and disable the fallback port scan (useful when several projects are open at once). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Unity editor control tools (namespaced mcp__unity__unity_*). Start with unity_status to confirm the bridge is alive. Object paths look like "Parent/Child". Build scenes with unity_create + unity_add_component + unity_set_property / unity_set_material, then unity_screenshot to see the result. For multi-step jobs, unity_run_workflow executes a saved node graph in one call.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| unity_statusA | Report editor state: Unity version, project, play mode, compile state, active scene, selection, bridge port. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_consoleA | Read the editor console ring buffer (log/warning/error) with stack traces. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_hierarchyA | Dump the active scene object tree with paths, active flags and component type names. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_findA | Find game objects by name glob and/or component type name. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_createB | Create a GameObject (empty or primitive) in the active scene, optionally parented and positioned. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_deleteB | Delete a GameObject (and its children) from the active scene. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_set_transformB | Set position/rotation/scale/active state of a GameObject. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_set_propertyA | Set any serialized property or component field. Auto-resolves 'color' -> m_Color style names. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_get_propertyC | Read a serialized property or component field value. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_add_componentB | Add a component by type name (short or full name, fuzzy matched). (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_set_materialA | Set a shader property (color/float/vector) on the material of an object, or on a material asset. By default the renderer gets its own copy so other objects sharing the material are untouched. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_asset_searchA | Search project assets by name filter and/or type. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_asset_infoB | Inspect one asset: type, size, guid, dependencies. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_sceneB | Scene operations: new, open, save, save_as, info. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_playmodeB | Enter/exit/pause play mode. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_menuA | Execute an editor menu item by path, e.g. 'GameObject/3D Object/Cube'. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_refreshA | Refresh the asset database and trigger a script compile if needed. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_screenshotA | Render the game camera or scene view camera to a PNG and return its path. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_selectionC | Get or set the editor selection. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_invokeB | Invoke a public static C# method by type+method name with JSON args (escape hatch for anything not covered). (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_run_csharpA | Compile and run a C# snippet against the live editor with Unity's own Roslyn compiler. Use |
| unity_create_scriptB | Write a .cs file into the project (MonoBehaviour by default), optionally compiling it right away. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_animationB | Author Animator-free animation clips: create a .anim asset, add float curves (position/scale/rotation), attach an Animation component to an object, and play it in play mode. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_uiB | Build uGUI screens: create a Canvas (with EventSystem), text labels, images, and buttons with labels. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_timelineB | Create Timeline assets, add tracks, bind a PlayableDirector on an object, and control playback in play mode. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_runtimeA | Read play-mode runtime state: fps, time, frame count, loaded scenes, object counts. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_prefabB | Instantiate a prefab into the scene or save a GameObject as a prefab. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_run_workflowA | Run a node graph against the Unity editor in one call. Pass either a saved workflow file name or an inline graph. Nodes run in dependency order; a node reads upstream output with {{nodeId.field}} placeholders. Returns per-node outputs plus errors. Use this instead of many separate calls when a job has several dependent steps. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
| unity_list_workflowsA | List workflow files that unity_run_workflow can execute. (Unity editor offline right now: schemas are cached; calls will fail until it reconnects) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Unity editor status | |
| Active scene hierarchy | |
| Recent editor console |
TDQS
Scored across 29 tools
Most tools target a distinct resource+action (create/delete/set_transform/set_property, asset_search/asset_info, screenshot, playmode). A few pairs overlap by design: unity_run_csharp vs unity_invoke vs unity_menu are all escape hatches, and unity_set_property vs unity_set_material both write component/material state, but descriptions make the intended boundary reasonably clear.
Every tool shares the unity_ snake_case prefix, which keeps the set highly predictable. However the stem ordering is mixed: verb_noun (unity_set_transform, unity_find, unity_create_script) alongside noun-first domain names (unity_console, unity_hierarchy, unity_scene, unity_asset_search, unity_playmode), and a couple of bare nouns (unity_selection, unity_prefab) that don't state an action.
29 tools is on the heavy side of the recommended range, though the breadth of Unity's editor domain (scene, assets, components, prefabs, animation, UI, timeline, play mode, workflows) justifies most of them. A few could be collapsed, notably the three escape-hatch tools (invoke, run_csharp, menu) and the separate run/list workflow pair.
Coverage is broad and lifecycle-aware for GameObjects, components, properties, scenes, prefabs, assets, animation, UI and timeline, plus runtime introspection. Gaps exist — no component removal, no asset create/delete/move, no prefab editing/unpack, no build or test-runner tools — but the documented escape hatches (run_csharp, invoke, menu, run_workflow) let an agent work around them.