MCP Server Studio

Unity MCP MCP server

Unity Editor automation for AI agents: scenes, prefabs, assets, shaders, Timeline, tests, builds.

Registry name: dev.shiranui-isuzu/unity-mcp

Publisher
shiranui-isuzu.dev
Runs
Runs locally
Package
NuGet
Version
4.4.2
Category
AI & agents
Updated
2026-09-17

Source code on GitHub

Set up Unity MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "unity-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
        "UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add unity-mcp -e UNITY_MCP_STATE_DIR='<UNITY_MCP_STATE_DIR>' -e UNITY_MCP_HOST='<UNITY_MCP_HOST>' -- dnx [email protected] --yes

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "unity-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
        "UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "unity-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
        "UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "unity-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
        "UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
UNITY_MCP_STATE_DIRNoWhere the Editor writes its descriptors. Set this only when the default location cannot be reached, such as from WSL.
UNITY_MCP_HOSTNoReplaces 127.0.0.1 in the descriptor endpoint, for reaching an Editor on the Windows host from WSL.

More ai & agents MCP servers