Unity MCP Pro

March 20, 2026 · View on GitHub

Unity editor plugin that connects AI assistants (Claude, Cursor, Windsurf, VS Code Copilot) to the Unity editor via WebSocket.

280+ tools across 50 categories — scene management, GameObjects, scripts, prefabs, physics, lighting, animation, materials, terrain, particles, audio, UI, build pipeline, input simulation, screenshots, testing, 2D, timeline, splines, ECS, netcode, XR, and more.

Features

  • Full Undo/Redo — Every AI operation goes through Unity's Undo system (Ctrl+Z)
  • Production-grade WebSocket — Heartbeat, auto-reconnect with exponential backoff, port scanning (6605–6609)
  • Smart Type Parsing — Automatic conversion of strings to Vector3, Color, Quaternion, etc.
  • Domain Reload Safe — Survives script recompilation without losing connection state
  • Server Setup Window — Built-in editor window for configuring MCP server and IDE integration
  • Unity 2021.3+ — Supports Unity 2022, 2023, and Unity 6 (Built-in, URP, HDRP)

50 Tool Categories

Category#Category#
Project7Animation7
Scene6Animation Extended5
GameObject11UI (Canvas)6
Script6Audio5
Editor5Particle5
Prefab6Navigation5
Material & Shader6Terrain4
Physics6Build Pipeline5
Lighting5Batch Operations6
Analysis & Profiling10Package Manager6
Input Simulation8Debug5
Runtime Extended7Screenshot & Visual4
Testing & QA62D Tools6
Controller4Timeline5
Environment6Spline5
Optimization7Shader Graph5
Camera / Cinemachine6Visual Scripting5
Post-Processing5Profiler4
AI Tools4Benchmark4
Game Systems5Playthrough4
Import Settings5Watch / Monitor3
Multi-Scene4Undo History3
Scene View Camera4Addressables5
Custom Editor4Localization4
Rigging4ECS / DOTS4
Netcode4XR / VR4

Installation

Option 1: Unity Package Manager (Git URL)

  1. Open Unity → WindowPackage Manager
  2. Click +Add package from git URL...
  3. Enter:
    https://github.com/youichi-uda/unity-mcp-pro-plugin.git
    

Option 2: Clone to your project

cd YourUnityProject/Packages
git clone https://github.com/youichi-uda/unity-mcp-pro-plugin.git com.unity-mcp-pro

Option 3: Download and copy

Download this repository and copy it into your project's Packages/com.unity-mcp-pro/ directory.

Setup

This plugin is the Unity-side component of Unity MCP Pro. To use it with AI assistants, you also need the MCP server.

  1. Install this plugin (see above)
  2. Get the MCP server — Available at unity-mcp.abyo.net
  3. Build the MCP server:
    cd server && npm install && npm run build
    
  4. Configure your AI client (or use the built-in Window → Unity MCP Pro → Server Setup):
    {
      "mcpServers": {
        "unity-mcp-pro": {
          "command": "node",
          "args": ["/path/to/server/build/index.js"]
        }
      }
    }
    
  5. Open Unity — The plugin auto-connects when the editor starts. Check Window → Unity MCP Pro for connection status.

Architecture

AI Assistant  ←—stdio/MCP—→  Node.js MCP Server  ←—WebSocket—→  Unity Editor Plugin (this repo)

The plugin runs a WebSocket client inside the Unity editor that connects to the MCP server on 127.0.0.1:6605–6609. All tool calls are dispatched through the CommandRouter to domain-specific command handlers.

Multi-Editor Support

Run multiple Unity editors simultaneously on ports 6605-6609. Set the UNITY_MCP_PORT environment variable to target a specific instance.

Running Tests

  1. Open Unity → WindowGeneralTest Runner
  2. Select EditMode tab
  3. Click Run All

Requirements

  • Unity 2021.3 LTS or later
  • Node.js 18+ (for the MCP server)
  • Any MCP-compatible AI client

License

MIT License — see LICENSE