Claude Game Studio

Unity MCP: set it up with Claude Code

Unity MCP lets Claude Code inspect and change your Unity project through a connected editor.

  1. Install Unity CLI and connect your project with Pipeline.
  2. Register the stdio command below, replacing both absolute paths.
  3. Open /mcp in Claude Code; ask which project and scene are connected.
claude mcp add --transport stdio unity -- "/absolute/path/to/unity" mcp --project-path "/absolute/path/to/MyGame"

Choose your Unity connection

Unity CLI and Pipeline

Choose the official route for a new setup on Unity 6 or later. The CLI starts the MCP process; Pipeline exposes your open editor's commands. A terminal command, an MCP connection and an editor connection are three separate things to check. Installing the executable alone does not give Claude a scene to edit.

Coplay MCP for Unity

Choose this community route if your project already uses its editor package or needs its tool surface. It has separate tools for scenes, scripts, prefabs, tests and assets. Our pinned standalone server advertised 49 tools. Keep its Python server and Unity package at the same revision when repeating this guide.

Unity's migration notice, read 30 November 2026, replaces the older Assistant-package server with CLI MCP. Third-party integrations are unaffected. For subscription and assistant questions, see Unity AI and Claude Code.

1. Connect the official CLI

Follow Unity's CLI installation instructions for your operating system. We ran version 1.1.0 on Linux. On your desktop, check unity --version and open the project before installing Pipeline. Unity's Pipeline instructions, read 30 November 2026, require Unity 6.0 or later.

In the project folder, follow the vendor's sign-in step, then run unity pipeline install. Let the editor finish recompiling. Run unity pipeline editors and confirm that the intended project has a reachable Pipeline server. Do these desktop steps before expecting editor tools in Claude.

unity --version unity auth login unity pipeline install unity pipeline editors

The sign-in step is interactive on your desktop. The install command changes your project; save a version-control checkpoint first. If you have several editors open, use the registration command's --project-path to select one explicitly. Keep the project path on the machine that runs the editor and CLI.

The command at the top registers a local stdio process. Claude Code's MCP documentation explains configuration scopes and the /mcp connection view. A connected MCP process still needs its Pipeline editor; request the project name and active scene together.

  1. 1. Claude Code

    Discovers MCP tools and sends your request.

  2. 2. Unity CLI

    Runs unity mcp and selects the project.

  3. 3. Pipeline

    Executes editor commands in the open Unity project.

  4. 4. Inspect the result

    Read hierarchy, changed files and console after the action.

2. Pin the Coplay alternative

This is the separate community setup we also started on Linux. Install Git, Python 3.10 or later and uv. Download the source, select the tested revision and install its Server package in a dedicated environment:

git clone https://github.com/CoplayDev/unity-mcp.git git -C unity-mcp checkout 19b66ecef4ac3a9be22a7a62ea21accb975c39e7 uv venv unity-mcp-env uv pip install --python unity-mcp-env/bin/python ./unity-mcp/Server

On Windows, the environment's executable directory is Scripts instead of bin. Use the full path to its mcp-for-unity executable in the registration command. This source identifies its server package as 10.3.0.

In Unity's Package Manager, add this Git URL. The fragment pins the editor package to the same source as the Python server:

https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#19b66ecef4ac3a9be22a7a62ea21accb975c39e7
claude mcp add --transport stdio unity-coplay -- "/absolute/path/to/unity-mcp-env/bin/mcp-for-unity" --transport stdio

Open Window → MCP for Unity, select Stdio and use Start Session if the bridge is not running. Follow the pinned installation source and Coplay's documentation for the available transport settings. Register one route at a time so similarly named tools are easy to attribute.

What we ran on Linux

Unity CLI 1.1.0, with --cli-tools

7tools returned

EDITOR_NOT_RUNNING

Coplay server 10.3.0

49tools returned

No Unity Editor instances found

Actual MCP responses on Linux, 30 November 2026. No engine editor was connected. Open the tool lists and responses.

On 30 November 2026 we installed and started both standalone servers, completed MCP initialization and requested their actual tool lists. Unity CLI 1.1.0 returned seven tools with --cli-tools. They were unity-cli-status, unity-status, unity-editors-list, unity-projects-list, unity-projects-info, unity-releases and unity-doctor.

Calling unity-cli-status returned EDITOR_NOT_RUNNING. There was no editor with a reachable Pipeline server. These read-only CLI tools do not establish that a scene operation works. Without --cli-tools, this editor-absent setup advertised only its status tool.

Coplay returned 49 tools, including manage_scene, manage_gameobject, manage_components, create_script, read_console and run_tests. We called manage_scene with {"action":"get_hierarchy"}; its response reported No Unity Editor instances found.

The downloadable tool lists and responses include all 49 names and both source versions. The Unity Editor is not installed on this host. Pipeline installation, scene changes, C# compilation, physics and builds were not run here. The steps above come from the linked vendor documentation, read on the test date.

3. Make one physics cube

Begin with a new scene in your own project. A cube that falls onto a floor checks object creation, components, saved assets, Play mode and console feedback with one visible result. Give Claude this bounded request once the project and hierarchy queries work:

Use the connected Unity tools. First identify the project and active scene, then list the hierarchy and console errors. Create a new saved test scene. Add a static floor with a BoxCollider if absent. Add one cube named MCP_PracticeCube at (0, 2, 0), with a BoxCollider and Rigidbody, above that floor. Keep the camera. Save, enter Play, check that the cube lands on the floor, read the console and exit Play. List the changed assets. Ask before changing any other scene.

Inspect the cube's Transform, BoxCollider and Rigidbody before pressing Play. Watch it fall and settle, then stop Play and reopen the saved scene. Changes made only during Play can disappear when Play ends. Ask Claude to show which scene file was saved rather than accepting a description of a cube.

If the cube falls through, check the floor collider and the cube's starting height. If nothing falls, inspect whether the Rigidbody is kinematic and whether Play actually started. If the console has a compile error, repair that error before adding another feature. Repeat the same task after reconnecting to confirm the connection targets the same project.

Fix the connection first

For official CLI MCP, start with unity pipeline editors. An empty discovery result means there is no reachable Pipeline editor. Check the open project and package before changing Claude's prompt. For Coplay, inspect the package window, selected transport and active Unity instance. A Python server that starts cleanly can still have no editor bridge.

Choose Godot MCP or Unreal Engine MCP for a different engine. For a browser game, the AI game walkthrough shows an actual finished build. The studio kit supplies browser templates, assets and game-making guidance; choose it for that workflow after choosing your engine connection.

Questions

What is Unity MCP?

Unity MCP connects an MCP client such as Claude Code to tools for a Unity project. Unity's current official route is the Unity CLI with the Pipeline package. Coplay's MCP for Unity is a separate community implementation with its own editor package and Python server.

How do I connect Unity MCP to Claude Code?

Install Unity CLI, open your project in Unity 6 or later, and follow Unity's Pipeline installation instructions. Register unity mcp as a stdio server with claude mcp add, using absolute executable and project paths. In /mcp, check the connection, then request the active scene before making changes.

Is the Unity AI Assistant MCP server deprecated?

Yes. Unity's current migration documentation deprecates the MCP server inside com.unity.ai.assistant and replaces it with unity mcp in the CLI. This does not deprecate MCP itself or third-party packages such as Coplay's server.

Can Unity MCP run without the Unity Editor?

The server process can run, but scene and GameObject operations need a connected editor. Our Linux test started Unity CLI 1.1.0 and Coplay's server without an editor. The official status tool reported EDITOR_NOT_RUNNING; Coplay's scene query reported no Unity Editor instances.

Why do I see only a Unity status tool?

Unity CLI has no reachable Pipeline editor to advertise commands from. Open the intended project, install or start Pipeline, and check unity pipeline editors. The --cli-tools option adds read-only machine and project commands; it does not create editor access.