能力标签
🔌
MCP工具

Unity MCP 服务器

基于 JavaScript · 让 AI 助手直接操作你的系统与工具
英文名:unity-mcp-server
⭐ 216 Stars 🍴 31 Forks 💻 JavaScript 📄 NOASSERTION 🏷 AI 8.0分
8.0AI 综合评分
mcpaiai-assisted-developmentjavascript
⚙️ 配置说明
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:Unity MCP 服务器 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

Unity MCP 服务器 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 Unity MCP 服务器,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。Unity MCP 服务器 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 Unity MCP 服务器 评为 AI 评分 8.0 分,属于同类工具中的优质选择。

📋 工具概览

Unity MCP 服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 216
开发语言
JavaScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
8.0 分
工具类型
MCP工具
Forks
31

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Unity MCP 服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/AnkleBreaker-Studio/unity-mcp-server

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "unity-mcp----": {
      "command": "npx",
      "args": ["-y", "unity-mcp-server"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 Unity MCP 服务器 执行以下任务...
Claude: [自动调用 Unity MCP 服务器 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "unity_mcp____": {
      "command": "npx",
      "args": ["-y", "unity-mcp-server"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 83/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <img src="icon.png" alt="AnkleBreaker MCP" width="180" /> </p>

Features

288 tools covering the full Unity workflow:

CategoryTools
**Unity Hub**List/install editors, manage modules, set install paths
**Scenes**Open, save, create scenes, get full hierarchy tree with pagination
**GameObjects**Create (primitives/empty), delete, duplicate, reparent, activate/deactivate, transform (world/local)
**Components**Add, remove, get/set any serialized property, wire object references, batch wire
**Assets**List, import, delete, search, create prefabs, create & assign materials
**Scripts**Create, read, update C# scripts
**Builds**Multi-platform builds (Windows, macOS, Linux, Android, iOS, WebGL)
**Console & Compilation**Read/clear Unity console logs (errors, warnings, info); 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 C# code, get editor state, undo/redo
**Project**Project info, packages (list/add/remove/search), render pipeline, build settings
**Animation**List clips & controllers, get parameters, play animations
**Prefab**Open/close prefab mode, get overrides, apply/revert changes
**Physics**Raycasts, sphere/box casts, overlap tests, physics settings
**Lighting**Manage lights, environment, skybox, lightmap baking, reflection probes
**Audio**AudioSources, AudioListeners, AudioMixers, play/stop, mixer params
**Terrain**Create/modify terrains, paint heightmaps/textures, manage terrain layers, trees, details
**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/add/remove tags, assign tags & layers
**Selection**Get/set editor selection, find by name/tag/component/layer/tag
**Graphics**Scene and game view capture (inline images for visual inspection)
**Input Actions**Action maps, actions, bindings (Input System package)
**Assembly Defs**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
**Profiler**Start/stop profiling, stats, deep profiles, save profiler data
**Frame Debugger**Enable/disable, draw call list & details, render targets
**Memory Profiler**Memory breakdown, top consumers, snapshots (com.unity.memoryprofiler)
**Shader Graph**List, inspect, create, open Shader Graphs & Sub Graphs; VFX Graphs
**Amplify Shader Editor**Full graph manipulation — create, inspect, add/remove/connect/disconnect/duplicate nodes, set properties, templates, save/close (if installed)
**MPPM Scenarios**List, activate, start, stop multiplayer playmode scenarios; get status & player info
**Multi-Instance**Discover and switch between multiple running Unity Editor instances
**Multi-Agent**List active agents, get agent action logs, queue monitoring
**SpriteAtlas**Create, inspect, add/remove sprites, configure settings, delete, list SpriteAtlases
**UMA (Unity Multipurpose Avatar)**Create slots, overlays, wardrobe recipes from FBX; equip/unequip items on DCA; browse/rebuild Global Library
**Project Context**Auto-inject project-specific docs and guidelines for AI agents

What's New in v2.30.0

  • unity_screenshot_editor_window tool — capture any Editor window (Inspector, Project, Console, custom editor windows) to a PNG. Unlike the game/scene capture tools (which render a camera), it grabs the real editor UI via the Win32 PrintWindow API, so it works even when the window is hidden behind other windows — no raising or focus-stealing. Windows editor only: on macOS/Linux it returns a clear "unsupported platform" message instead of capturing, and the assistant will tell you the feature isn't available on your OS. Defaults to Assets/Screenshots/, accepts any user-chosen .png path. The assistant only invokes it when you explicitly ask for an editor-window screenshot. Companion to unity-mcp-plugin v2.32.0.

What's New in v2.28.2

  • Codex CLI compatibility — Two diagnostic console.debug(...) calls in the bridge were writing to stdout, corrupting the MCP JSON-RPC framing. Strict clients like Codex CLI closed the transport as soon as they hit the non-JSON line; the bug was invisible on Claude Desktop / Claude Code which tolerate the framing violation. Both call sites now log to stderr.

What's New in v2.28.0

  • npm auto-publish — A GitHub Action now automatically publishes to npm whenever a new GitHub release is created. Contributed by @vatanaksoytezer in #8.
  • npm package renamed — Package renamed from unity-mcp-server to anklebreaker-unity-mcp to avoid name conflict on npm. Install via npx anklebreaker-unity-mcp@latest.
  • SpriteAtlas tools — 7 new tools for Unity SpriteAtlas management: create, inspect, add/remove sprites, configure packing & texture settings, delete, and list SpriteAtlases. Contributed by @zaferdace. Registered as advanced tools accessible via unity_advanced_tool.
  • UTF-8 encoding fix — Fixed corrupted characters in unity-editor-bridge.js comments and section headers.

What's New in v2.27.0

  • UMA (Unity Multipurpose Avatar) integration — 13 new tools for the complete UMA asset pipeline. Create SlotDataAssets, OverlayDataAssets, and WardrobeRecipes directly from FBX files, equip/unequip wardrobe items on DynamicCharacterAvatar, browse and manage the UMA Global Library, verify recipes for missing references, and more. Requires UMA 2 (available on the Asset Store). Registered as advanced tools accessible via unity_advanced_tool.

What's New in v2.26.0

  • Compilation error detection — New unity_get_compilation_errors tool retrieves C# compilation errors and warnings directly from Unity's CompilationPipeline API. Unlike unity_console_log, this is independent of the console log buffer — not affected by console clear, Play Mode log flooding, or buffer overflow. Supports filtering by severity (error, warning, all) and count limit. Registered as a core tool (always directly accessible, not behind unity_advanced_tool).

What's New in v2.25.0

  • Parallel-safe instance routing — When multiple AI agents (e.g. Claude Cowork tasks) share the same MCP process, each agent can now include a port parameter in every unity_* tool call to guarantee routing to the correct Unity Editor instance. This prevents cross-agent contamination where one task's unity_select_instance could redirect another task's commands to the wrong project.
  • Per-request port override — A new stateless routing mechanism bypasses the shared per-agent state entirely. The port parameter is extracted by middleware before the tool handler runs, used for routing, then stripped from the args. This is safe because MCP stdio transport processes requests sequentially.
  • Schema injection — The optional port parameter is automatically injected into every unity_* tool schema (except unity_list_instances, unity_select_instance, and unity_hub_*), so AI assistants see it as a legitimate parameter and pass it consistently.
  • Enhanced select_instance responseunity_select_instance now returns explicit routing instructions telling the AI to include port in all subsequent calls.

Requirements

  • Node.js 18+
  • Unity Hub (for Hub tools)
  • Unity Editor with unity-mcp-plugin installed (for Editor tools)

1. Install the Unity Plugin

In Unity: Window > Package Manager > + > Add package from git URL:

https://github.com/AnkleBreaker-Studio/unity-mcp-plugin.git

2. Install this MCP Server

git clone https://github.com/AnkleBreaker-Studio/unity-mcp-server.git
cd unity-mcp-server
npm install

Quick Start

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.

<p align="center"> <img src="docs/unity-mcp-showcase-village.gif" alt="Unity MCP — AI building a 3D medieval village with houses, trees, and terrain" width="800" /> </p>

Configuration

Environment VariableDefaultDescription
UNITY_HUB_PATHC:\Program Files\Unity Hub\Unity Hub.exeUnity Hub executable path
UNITY_BRIDGE_HOST127.0.0.1Editor bridge host
UNITY_BRIDGE_PORT7890Editor bridge port (auto-discovered when using multi-instance)
UNITY_BRIDGE_TIMEOUT30000Request timeout in ms
UNITY_PORT_RANGE_START7890Start of port scan range for multi-instance discovery
UNITY_PORT_RANGE_END7899End of port scan range
UNITY_REGISTRY_STALENESS_TIMEOUT300000Registry entry staleness timeout in ms (crash detection)
UNITY_RESPONSE_SOFT_LIMIT2097152Response size soft limit in bytes (warning)
UNITY_RESPONSE_HARD_LIMIT4194304Response size hard limit in bytes (truncation)
UNITY_MCP_DEBUGfalseEnable debug logging for troubleshooting

The Unity plugin also has its own settings accessible via the Dashboard (Window > MCP Dashboard) for port, auto-start, and per-category feature toggles.

Optional Package Support

Some tools activate automatically when their packages are detected in the Unity project:

Package / AssetFeatures Unlocked
com.unity.memoryprofilerMemory snapshot capture via MemoryProfiler API
com.unity.shadergraphShader Graph creation, inspection, opening
com.unity.visualeffectgraphVFX Graph listing and opening
com.unity.inputsystemInput Action map and binding inspection
com.unity.multiplayer.playmodeMPPM scenario listing, activation, start/stop, player info
Amplify Shader Editor (Asset Store)Amplify shader listing, inspection, opening
UMA 2 (Asset Store)UMA SlotDataAsset/OverlayDataAsset creation, WardrobeRecipe pipeline, Global Library management, DCA wardrobe equip/unequip

Features for uninstalled packages return helpful messages explaining what to install.

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.

<p align="center"> <img src="docs/unity-mcp-architecture.gif" alt="Unity MCP Architecture — AI Assistant → MCP Server → Unity Plugin → Unity Editor" width="800" /> </p>

Feature Comparison

Feature**AnkleBreaker MCP****Bezi****Coplay MCP****Unity AI**
**Total Tools****288**~3034Limited (built-in)
**Feature Categories****30+**~5~5N/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 reloadN/A
**Port Resilience**✅ Identity validation + crash detectionN/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 tools, 800 credits/mo, freezes Unity | | Bezi Advanced | $60/mo | ~30 tools, 2400 credits/mo, freezes Unity | | Bezi Team | $200/mo | 3 seats, 8000 credits, still freezes Unity | | Unity AI | Included with Unity Pro/Enterprise | Limited AI tools, Unity Points system, no MCP | | Coplay MCP | Free (beta) | 34 tools, basic categories |

Troubleshooting

"Connection failed" errors — Make sure Unity Editor is open and the plugin is installed. Check the Unity Console for [MCP Bridge] Server started on port 7890.

"Unity Hub not found" — Update UNITY_HUB_PATH in your config to match your installation.

"Category disabled" errors — A feature category may be toggled off. Open Window > MCP Dashboard in Unity to check category settings.

Port conflicts — Change UNITY_BRIDGE_PORT in your Claude config and update the port in Unity's MCP Dashboard settings.

Frequently Asked Questions

What is Unity MCP? Unity MCP (Model Context Protocol) is an open-source integration that connects AI assistants like Claude, Cursor, and Windsurf to the Unity Editor and Unity Hub. It allows AI to directly control Unity — creating scenes, placing objects, writing scripts, running builds, profiling, and more — through a standardized protocol.

How does AnkleBreaker Unity MCP compare to other Unity AI tools? AnkleBreaker Unity MCP offers 288 tools across 30+ categories, making it the most comprehensive Unity MCP integration available. Competitors like Bezi (~30 tools) and Coplay MCP (34 tools) cover a fraction of Unity's features. Unlike Bezi, AnkleBreaker MCP is free, open source, and doesn't freeze the Unity Editor during AI operations.

Does it work with Claude Desktop / Claude Cowork? Yes. AnkleBreaker Unity MCP is purpose-built for Claude Desktop and Claude Cowork. It uses a two-tier lazy loading system to stay within MCP client tool limits while exposing all 281 tools on demand.

Does it work with Cursor, Windsurf, or other MCP clients? Yes. Any AI tool that supports the Model Context Protocol can connect to this server. This includes Cursor, Windsurf, Claude Desktop, Claude Cowork, and any other MCP-compatible client.

What Unity versions are supported? Unity 2021.3 LTS and newer, including Unity 2022.3 LTS and Unity 6. The plugin is installed via Unity Package Manager (UPM).

Is it free? Yes. Both the MCP server and the Unity plugin are completely free and open source under the AnkleBreaker Open License. The only cost is your AI assistant subscription (e.g., Claude Pro at $20/month).

Can multiple AI agents use it simultaneously? Yes. The server supports multi-agent operation with session tracking, action logging, and queued execution to prevent conflicts. It also supports multiple Unity Editor instances running side-by-side.

Does it support Amplify Shader Editor? Yes. If Amplify Shader Editor is installed in your project, 23 additional tools are unlocked for full shader graph manipulation — creating nodes, connecting them, setting properties, using templates, and more. Projects without Amplify work perfectly; the tools gracefully report that ASE is not installed.

🎯 aiskill88 AI 点评 A 级 2026-06-04

高质量的AI辅助游戏开发工具

⚡ 核心功能

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

MCP是游戏开发辅助工具
💡 AI Skill Hub 点评

总体来看,Unity MCP 服务器 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
📚 深入学习 Unity MCP 服务器
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 unity-mcp-server
Topics mcpaiai-assisted-developmentjavascript
GitHub https://github.com/AnkleBreaker-Studio/unity-mcp-server
License NOASSERTION
语言 JavaScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/AnkleBreaker-Studio/unity-mcp-server 🌐 官方网站  https://anklebreaker-consulting.com/en/projects/unity-mcp

收录时间:2026-06-04 · 更新时间:2026-06-04 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。