Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

unity-mcp-plugin

> 包管理
Open source

Unity MCP Plugin (UPM) — Editor bridge for AI-assisted game development. Enables Claude, Cursor & MCP-compatible AI to control Unity Editor with 268 tools: scen

192 stars0 likes3 views
WebsiteGitHub

About

Unity MCP Plugin (UPM) — Editor bridge for AI-assisted game development. Enables Claude, Cursor & MCP-compatible AI to control Unity Editor with 268 tools: scen

Unity MCP Plugin — AI-Powered Unity Editor Bridge (UPM Package)

The Unity Editor side of the most comprehensive MCP (Model Context Protocol) integration for Unity game development. Install via Unity Package Manager to let Claude, Cursor, Windsurf, or any MCP-compatible AI assistant control your Unity Editor with 288 tools across 30+ categories. Built and maintained by AnkleBreaker Studio.

What It Does

This package runs a lightweight HTTP bridge inside the Unity Editor on localhost:7890. The companion Unity MCP Server connects to it, exposing 288 tools to AI assistants across 30+ feature categories — scenes, GameObjects, components, builds, profiling, Shader Graph, Amplify Shader Editor, terrain, physics, NavMesh, animation, multiplayer, and much more.

Neon Brick Breaker — Built from scratch by AI in under 5 minutes

Claude creates the entire game: scene setup, neon materials with bloom post-processing, brick grid layout, game scripts, VFX, and UI — all through Unity MCP commands.

3D Medieval Village — AI-generated terrain, houses, and environment

From an empty scene to a fully decorated village: terrain sculpting, material creation, procedural house building via C# editor scripts, trees, fences, and pathways.

3D Castle — Complete level with FPS walkthrough

AI builds a multi-room castle with courtyard, throne room, armory, and guard room. Adjusts lighting, spawns the player, and runs an FPS walkthrough to verify the result.

How It Works — AI → MCP Server → Unity Plugin → Unity Editor

The Model Context Protocol connects your AI assistant to Unity through a lightweight bridge. Commands flow from your AI chat directly into the editor in real-time.

Core Capabilities:

  • Scene Management — Open, save, create scenes; browse full hierarchy tree
  • GameObjects — Create (primitives or empty), delete, inspect, set transforms (world/local)
  • Components — Add/remove components, get/set any serialized property
  • Assets — List, import, delete assets; create prefabs and materials; assign materials
  • Scripts — Create, read, update C# scripts
  • Builds — Trigger multi-platform builds (Windows, macOS, Linux, Android, iOS, WebGL)
  • Console & Compilation — Read errors/warnings/logs, clear console; get C# compilation errors via CompilationPipeline (independent of console buffer)
  • Testing — Run EditMode/PlayMode tests, poll results, list available tests via Unity Test Runner API
  • Play Mode — Play, pause, stop
  • Editor — Execute menu items, run arbitrary C# code, check editor state, get project info

Extended Capabilities:

  • Animation — List clips, get clip info, list Animator controllers and parameters, set Animator properties, play animations
  • Prefab (Advanced) — Open/close prefab editing mode, check prefab status, get overrides, apply/revert changes
  • Physics — Raycasts, sphere/box casts, overlap tests, get/set physics settings (gravity, layers, collision matrix)
  • Lighting — Manage lights, configure environment lighting/skybox, bake lightmaps, list/manage reflection probes
  • Audio — Manage AudioSources, AudioListeners, AudioMixers, play/stop clips, adjust mixer parameters
  • Terrain — Create/modify terrains, paint heightmaps/textures, manage terrain layers, trees, and detail objects
  • Navigation — NavMesh baking, agents, obstacles, off-mesh links
  • Particles — Particle system creation, inspection, module editing
  • UI — Canvas, UI elements, layout groups, event system
  • Tags & Layers — List tags and layers, add/remove tags, assign tags/layers to GameObjects
  • Selection — Get/set editor selection, find objects by name/tag/component/layer
  • Graphics — Scene and game view capture as inline images for visual inspection
  • Input Actions — List action maps and actions, inspect bindings (Input System package)
  • Assembly Definitions — List, inspect, create, update .asmdef files
  • ScriptableObjects — Create, inspect, modify ScriptableObject assets
  • Constraints — Position, rotation, scale, aim, parent constraints
  • LOD — LOD group management and configuration

Profiling & Debugging:

  • Profiler — Start/stop profiler, get stats, take deep profiles, save profiler data
  • Frame Debugger — Enable/disable frame debugger, get draw call list and details, get render target info
  • Memory Profiler — Memory breakdown by asset type, top memory consumers, take memory snapshots (with com.unity.memoryprofiler package)

Shader & Visual Tools (conditional on packages):

  • Shader Graph — List, inspect, create, open Shader Graphs; inspect shader properties; list Sub Graphs and VFX Graphs (requires com.unity.shadergraph / com.unity.visualeffectgraph)
  • Amplify Shader Editor — Full graph manipulation: list, inspect, create, add/remove/connect/disconnect/duplicate nodes, set properties, templates, save/close (requires Amplify Shader Editor asset)

Multiplayer (conditional on MPPM package):

  • MPPM Scenarios — List, activate, start, stop multiplayer playmode scenarios; get status and player info (requires com.unity.multiplayer.playmode)

Infrastructure:

  • Multi-Instance Support — Multiple Unity Editor instances discovered automatically (including ParrelSync clones)
  • Port Affinity — Each editor remembers its last-used port via EditorPrefs and reclaims it on restart, minimizing port swaps across sessions
  • Registry Heartbeat — The plugin sends a heartbeat every 30 seconds to the shared instance registry (lastSeen timestamp), enabling the MCP server to distinguish between compiling editors (fresh entry) and crashed editors (stale entry >5 minutes)
  • Multi-Agent Support — Multiple AI agents can connect simultaneously with session tracking, action logging, and queued execution
  • Play Mode Resilience — MCP bridge survives domain reloads during Play Mode via SessionState persistence
  • Dashboard — Built-in Editor window (Window > MCP Dashboard) showing server status, category toggles, agent sessions, and update checker
  • Project Context — Auto-inject project-specific documentation and guidelines for AI agents (via Assets/MCP/Context/)
  • Settings — Configurable port, auto-start, and per-category enable/disable via EditorPrefs
  • Update Checker — Automatic GitHub release checking with in-dashboard notification

Installation via Unity Package Manager

  1. Open Unity > Window > Package Manager
  2. Click the + button > Add package from git URL...
  3. Enter:
    https://github.com/AnkleBreaker-Studio/unity-mcp-plugin.git
  4. Click Add

Unity will download and install the package. You should see in the Console:

[MCP Bridge] Server started on port 7890

Verify

Open a browser and visit: http://127.0.0.1:7890/api/ping

You should see JSON with your Unity version and project name.

Companion: MCP Server

This plugin is one half of the system. You also need the Node.js MCP Server that connects Claude to this bridge:

unity-mcp-server

Dashboard

Open Window > MCP Dashboard to access:

  • Server status with live indicator (green = running, red = stopped)
  • Start / Stop / Restart controls
  • Per-category feature toggles (enable/disable any of the 30+ categories)
  • Port and auto-start settings
  • Active agent session monitoring
  • Version display with update checker

Requirements

  • Unity 2021.3 LTS or newer (tested on 2022.3 LTS and Unity 6)
  • .NET Standard 2.1 or .NET Framework

Optional Packages

Some features activate automatically when their corresponding packages are detected:

Package / Asset Features Unlocked
com.unity.memoryprofiler Memory snapshots via MemoryProfiler API
com.unity.shadergraph Shader Graph create, inspect, open
com.unity.visualeffectgraph VFX Graph listing and opening
com.unity.inputsystem Input Action maps and bindings inspection
com.unity.multiplayer.playmode MPPM scenario management (list, activate, start/stop, status)
Amplify Shader Editor (Asset Store) Amplify shader listing, inspection, opening

Configuration

Configuration is managed through the MCP Dashboard (Window > MCP Dashboard > Settings):

  • Port — HTTP server port (default: 7890)
  • Auto-Start — Automatically start the bridge when Unity opens (default: true)
  • Category Toggles — Enable/disable any of the 30+ feature categories

Settings are stored in EditorPrefs and persist across sessions.

Security

  • The server only binds to 127.0.0.1 (localhost) — it is not accessible from the network
  • No authentication is required since it's local-only
  • All operations support Unity's Undo system
  • Multi-agent requests are queued to prevent conflicts

288 Tools Across 30+ Categories

Scene management, GameObjects, components, physics, terrain, Shader Graph, Amplify Shader Editor, profiling, animation, NavMesh, builds, multiplayer, and more.

Why AnkleBreaker Unity MCP?

AnkleBreaker Unity MCP is the most comprehensive MCP integration for Unity, purpose-built to leverage the full power of Claude Cowork and other AI assistants. Here's how it compares to alternatives:

Feature Comparison

Feature AnkleBreaker MCP Bezi Coplay MCP Unity AI
Total Tools 288 ~30 34 Limited (built-in)
Feature Categories 30+ ~5 ~5 N/A
Non-Blocking Editor ✅ Full background operation ❌ Freezes Unity during tasks ✅ ✅
Open Source ✅ AnkleBreaker Open License ❌ Proprietary ✅ MIT License ❌ Proprietary
Claude Cowork Optimized ✅ Two-tier lazy loading ❌ Not MCP-based ⚠️ Basic ❌ Not MCP-based
Multi-Instance Support ✅ Auto-discovery ❌ ❌ ❌
Multi-Agent Support ✅ Session tracking + queuing ❌ ❌ ❌
Unity Hub Control ✅ Install editors & modules ❌ ❌ ❌
Scene Hierarchy ✅ Full tree + pagination ⚠️ Limited ⚠️ Basic ⚠️ Limited
Physics Tools ✅ Raycasts, overlap, settings ❌ ❌ ❌
Terrain Tools ✅ Full terrain pipeline ❌ ❌ ❌
Shader Graph ✅ Create, inspect, open ❌ ❌ ❌
Profiling & Debugging ✅ Profiler + Frame Debugger + Memory ❌ ❌ ⚠️ Basic
Animation System ✅ Controllers, clips, parameters ⚠️ Basic ⚠️ Basic ⚠️ Basic
NavMesh / Navigation ✅ Bake, agents, obstacles ❌ ❌ ❌
Particle Systems ✅ Full module editing ❌ ❌ ❌
MPPM Multiplayer ✅ Scenarios, start/stop ❌ ❌ ❌
Visual Inspection ✅ Scene + Game view capture ❌ ⚠️ Limited ❌
Play Mode Resilient ✅ Survives domain reload ❌ ❌ N/A
Port Resilience ✅ Identity validation + crash detection ❌ ❌ N/A
Project Context ✅ Custom docs for AI agents ❌ ❌ ⚠️ Built-in only

Cost Comparison

AnkleBreaker Unity MCP is completely free and open source. The prices below reflect only the cost of the AI assistant (Claude) itself — the MCP plugin and server are $0.

Solution Monthly Cost What You Get
AnkleBreaker MCP (free) + Claude Pro $20/mo 288 tools, full Unity control, open source — MCP is free, price is Claude only
AnkleBreaker MCP (free) + Claude Max 5x $100/mo Same + 5x usage for heavy workflows — MCP is free, price is Claude only
AnkleBreaker MCP (free) + Claude Max 20x $200/mo Same + 20x usage for teams/studios — MCP is free, price is Claude only
Bezi Pro $20/mo ~30 tool

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#aiai-assisted-developmentai-game-developmentamplify-shader-editor

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image