MCP for Unity

Three-tier Unity Editor bridge to build scenes, inspect hierarchy objects, run tests, and edit C# scripts via AI

Connects Claude Desktop, Cursor, and VS Code to live Unity 2021.3 LTS through Unity 6.x Editor instances via a FastMCP Python WebSocket hub and C# MCPForUnity package.

Install & Client JSON Configurations

All client configuration manifests are exposed directly below without hidden tabs for zero-click copying.

CLI Install Command
uvx --from mcpforunityserver mcp-for-unity
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "unity-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "unity-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity"
      ]
    }
  }
}
VS Code · .vscode/mcp.json
{
  "servers": {
    "unity-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity"
      ]
    }
  }
}

Three-Tier Unity Editor Architecture

Unlike generic filesystem editors that only modify raw YAML scene files while Unity is closed, CoplayDev MCP for Unity operates a three-tier runtime architecture: your MCP client sends requests to a local FastMCP Python and WebSocket hub, which relays commands directly onto the main thread of the active C# MCPForUnity Editor plugin.

Supported Engine Versions & Tool Surface

  • Unity Compatibility: Supports Unity 2021.3 LTS through Unity 6.x using git URL installation or OpenUPM package com.coplaydev.unity-mcp.
  • Scene & Hierarchy Control: Instantiate prefabs, adjust Transform vectors, inspect serialized Inspector fields, and run Play Mode checks.
  • C# Script & Console Loop: Create MonoBehaviour scripts, compile inside Editor, capture compiler warnings cleanly, and execute Unity Test Runner suites.

Alternative Servers in This Category

Developer Tools
Core Ecosystem

Git Local History MCP

Inspect branch diffs, blame history, and commit regressions locally offline

stdiononeopen-source
Tool Surface6 tools
Reliability Score95 / 100
1040 tok · 13,800 starsInspect config
Developer Tools
Rising Stack

Repomix Codebase Packager MCP

Token-counted repository bundler and grep-free structural context engine

stdiononeopen-source
Tool Surface6 tools
Reliability Score94 / 100
1180 tok · 16,400 starsInspect config
Developer Tools
Long-Tail Niche

ast-grep Structural Search MCP

Syntax-aware AST pattern matching across TypeScript, Python, Go, and Rust

stdiononeopen-source
Tool Surface4 tools
Reliability Score92 / 100
890 tok · 1,150 starsInspect config