Skip to main content
Glama
Seokh Unity Open MCP

Seokh Unity Open MCP

by seokh1213

Unity Open MCP

Docs

Unity Open MCP is one of the broadest open-source MCP implementations for Unity, with 270+ typed tools in a production-oriented automation stack. Safety-gated mutations, built-in validation, and live, headless, and offline execution support reliable work on real projectsโ€”from asset intelligence and editor authoring to closed-loop game testing, diagnostics, CI, and package-gated Unity domains.


Part of Open MCP toolset

Related MCP server: Funplay MCP for Unity

Unity Open MCP Unreal Open MCP Godot Open MCP

Key features

Safe typed authoring

Edit GameObjects, scenes, prefabs, materials, packages, and package-gated domains such as NavMesh, Input System, Cinemachine, Timeline, and Shader Graph. Mutations run checkpoint โ†’ mutate โ†’ validate โ†’ delta, with regression checks and targeted fixes.

User: Remove that prefab. Agent: The gate preview found new missing references in Level1 and SpawnPoint, so I stopped before committing a broken project.

Playtest the game like a tester

An agent can play the running game and hand back a report a human can review. It puts the game on a target resolution or Device Simulator device, reads the screen (uGUI text, visibility, layout diagnostics), taps controls by their on-screen label, clicks, drags, swipes and plays multi-second gestures over real frames (legacy Input Manager and Input System projects alike), types into text fields through their own validation (nickname, login, promo code), and waits until the game gets somewhere โ€” a log line, a label, an object, or the project's own predicate, optionally fast-forwarded โ€” and traces values (HP, cooldowns, velocities) every N frames into a buffer it reads back, without per-frame hooks left behind. Captures come at the device's native resolution and safe area, or as frame-scheduled series for animated content. The player's save (PlayerPrefs and persistentDataPath) is snapshotted and restored, so a session does not spend the developer's progress, and the whole run is recorded โ€” steps, verdicts, frames and the console errors each step caused โ€” into a Markdown report. For menu-driven and mobile UI the agent can also hand the tapping to a crawler that walks every screen and button on its own (never money, destructive or leaving controls) and files what looks wrong: overflowing text, controls under the notch, overlapping or tiny buttons, untranslated keys, buttons that do nothing, screens with no way out and the exceptions taps cause โ€” on one device or across a list of phones and tablets, with each problem's devices named. A flow found once โ€” by the crawler or by the agent's own steps โ€” becomes a scenario file in the project that replays without a model after every change: pass or fail per step, what changed on screen, and whether a failure is flaky โ€” optionally down to the pixels, against per-device frames of each screen. What a playtest learns โ€” how to boot, the screen map, the controls never to tap, the findings the team accepted โ€” stays in the project for the next session.

User: Smoke-test the shop on an iPhone 13. Agent: Five steps passed; tapping Buy threw a NullReferenceException. The report has the frames and the stack. Your save is untouched.

See the Playtest guide and Playtest tools.

Test and observe

Run Edit/Play Mode tests, inspect the console, capture screenshots (a UI prefab renders in edit mode without touching a scene), profiler and memory data, and pull events โ€” the feedback an agent needs to trust its own changes.

Live, batch, or offline

Prefer the live Editor, fall back to an exact-version headless Editor for supported tools, and read assets or compile diagnostics from disk when Unity is closed. Structured search, reserialization, and reference / dependency analysis remain available where their route supports it.

Extend and automate

Unity projects can expose typed, discoverable commands without an MCP server release. Explicitly async operations run as observable jobs with progress, idempotency, retained results, and truthful cancellation. The CLI and CI flows add health checks, verify baselines, and regression gates.

See Project commands and Asynchronous jobs.

Discover only what you need

Sessions start with core and gate-and-verify, plus a small set of always-visible meta-tools; Shader Graph, VFX Graph, and Memory Profiler groups auto-activate when their packages are detected, and every other domain is activated on demand. Runtime capabilities provide exact schemas, routes, and availability, while project skills teach agents the mutate โ†’ gate โ†’ fix loop.

Install and maintain

One command installs matching package pins, MCP configuration, and the agent skill. Team and monorepo layouts default to committable, machine-independent configuration. Coordinated update flows cover the MCP server, Unity packages, and the optional Unity Hub Pro desktop app.

More example prompts: docs/api/mcp-tools.md. Full catalog and contracts: docs/api/mcp-tools.md.

Quick setup

Requires Unity 2022.3 LTS or newer and Node.js 18+ for the MCP server.

  1. CLI โ€” recommended: open a terminal in the Unity project and run:

    npx -y unity-open-mcp@latest setup --client cursor

    In a monorepo, run it from the repository root and name the Unity folder: setup --client cursor --unity-subpath Client. Use claude, zcode, vscode, codex, opencode, or agents for another supported writer. The command installs matching pins, project config, and the bundled skill. Run from a repository root, it writes a config with no machine path that the team can commit โ€” see Portable MCP config.

  2. Unity Hub Pro: use the graphical flow in Wizard setup.

  3. Manual: add the Unity packages with Manual setup, then the client entry from MCP client configuration.

  4. Local checkout: build and run the repository with Development setup.

  5. Experimental โ€” AI agent: paste the prompt below into your AI client.

Install Unity Open MCP in this Unity project by following
https://raw.githubusercontent.com/AlexeyPerov/Unity-Open-MCP/master/docs/setup/agent-setup.md
exactly (fetch it fresh; do not improvise from memory).
Resolve my client and the Unity project root, then run step 2 of that page:
npx -y unity-open-mcp@latest setup --project <absolute-unity-project> --client <id>
or, if my client is opened on a folder above the Unity project (monorepo),
from that folder: npx -y unity-open-mcp@latest setup --client <id> --unity-subpath <relative-unity-folder>
Let that package choose all version pins and copy its bundled SKILL.md; do not
invent versions, rewrite the skill, or call generate_skill. Do every agent step
yourself and stop only when human action is required. If a local checkout of the
Unity-Open-MCP repository is available, read docs/setup/agent-setup.md from disk
instead of fetching it.

Full procedure: Agent setup. For teams and monorepos, use a portable MCP configuration that can be committed without per-developer absolute paths.

Documentation

For users:

  • API index โ€” MCP, bridge, resource, routing, and automation contracts.

  • Extensions โ€” embedded domains, dependencies, and tool-group activation.

  • Troubleshooting โ€” connectivity and recovery guidance.

  • Dialog policy โ€” startup modal handling and automation.

  • Skills โ€” agent playbooks installed into Unity projects.

  • Version compatibility โ€” version matching and mismatch recovery.

  • Updating โ€” Hub, MCP, Unity package, and air-gapped update paths.

For contributors:

Would like to see other MCP options? See the MCP tools for Unity comparison โ€” a side-by-side feature matrix of Unity Open MCP and the other MCP tools / AI assistants in the space.

Contributing

License: MIT โ€” see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides 20 tools to control the Unity Editor with natural language, including scene management, component manipulation, script generation, asset handling, project settings, builds, and live C# execution.
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      This MCP server integrates AI assistants with Unity Editor, allowing them to create scenes, generate scripts, simulate input, and automate workflows using 91 built-in tools.
      338
      MIT