能力标签
Unity MCP 服务器
🔌
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 深度解析 真实文档 完整度 48/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <img src="docs/hero.svg" alt="AnkleBreaker Unity MCP: one workflow, many Unity worlds. Multiple agents, independent editors and multiplayer tools." width="960" /> </p>

Watch it build a playable prototype

Neon brick breaker: scene construction, materials, gameplay scripts and visual iteration, with the assistant and Unity visible together.

Watch the AI assistant build a neon brick-breaker prototype in the Unity Editor

▶ Open video · 25 seconds · Download MP4 · Village and castle demos

Recorded, accelerated excerpts. The silent videos export the same recordings as the GIFs; their duration is not a build-time benchmark. Media details and example prompts.

2. Install the server

Use Node.js 18 or newer; a maintained Node.js LTS is recommended.

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

From environments to playable levels

Built for demanding Unity workflows

Your workflowWhat AnkleBreaker provides
**Several projects and agents**Independent request routing, explicit project selection and a fair queue for each editor. [Architecture](docs/architecture.md)
**Multiplayer iteration**MPPM scenario/player controls and parent/virtual-player discovery, plus ParrelSync identity. [Workflow and live tests](docs/multiplayer.md)
**Work you can inspect**Agent history, named undo for supported actions, queue timings, command errors and the Unity Dashboard. [Monitoring](docs/queue-monitoring.md)
**Mixed versions and interrupted calls**Per-editor capability detection, legacy fallback and protected retries when both components support them. [Compatibility](docs/compatibility.md) / [Retry contract](docs/queue-protocol.md)
**A full production toolset**Scene authoring, builds, profiling, packages and optional integrations, with advanced schemas discovered on demand. [Tool guide](docs/features.md)

The combination is the strength: routing, scheduling, multiplayer controls and observable results in one workflow. See choosing a Unity integration for a sourced comparison.

Why choose AnkleBreaker? Each agent keeps its project identity, each editor has its own queue, and supported actions leave a history you can inspect and undo. Advanced tools extend that workflow into multiplayer iteration, Unity Hub and project-specific integrations. Those behaviors have dedicated regression checks and real-editor evidence, not just a feature list.

1. Add the Unity plugin

In Unity, open Window → Package Manager → Add package from git URL:

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

The MCP status dropdown appears automatically in Unity's main toolbar. Open the Dashboard from it, Window → AB Unity MCP, or Tools → AnkleBreaker → Unity MCP. Verify the bridge is running there. If you previously hid the indicator, choose Show Toolbar Status. Toolbar and menu access.

4. Try a complete workflow

List my running Unity projects. Select my prototype, inspect its scene and compilation errors, create a platform, then capture the scene so I can review it.
Find the multiplayer tools. List my MPPM scenarios and the players configured in the selected project.
Inspect the scene's memory use and largest objects, then show me the actions performed by each agent.

Workflows to try next

GoalAsk your assistantWhat makes it useful
**Compare two projects**“List my editors, inspect the package versions and compilation errors in each, then summarize the differences.”Explicit targets and independent queues.
**Iterate on multiplayer**“Find the MPPM tools, inspect the selected scenario and start its configured Host and Client players.”Native scenario and virtual-player identity. [Guide](docs/multiplayer.md)
**Validate a change**“Run the selected EditMode tests, wait for the job, then show failures and fetch the detailed results in pages.”Persistent job IDs, diagnostics and paginated reads. [Guide](docs/testing.md)
**Review agent work**“Show recent actions by agent and tell me which supported actions can be undone safely.”Native stack checks and attributed action history. [Guide](docs/undo.md)
**Find expensive content**“Inspect memory consumers and mesh statistics, then capture the scene for review.”Inspection without copying geometry buffers just to count it. [Guide](docs/mesh-metadata.md)
**Maintain a package**“Compare installed packages, check compilation and inspect my build settings before making changes.”Package requests yield to editor updates. [Guide](docs/packages.md)

These are example prompts, not automatic scripts. Select the intended project first and let the assistant discover the current tool schemas and available packages.

Monitor and troubleshoot

<p align="center"> <img src="docs/media/dashboard-validation.png" alt="Actual Unity Dashboard in a validation project showing bridge status, three agent sessions, request queue and HTTP counters" width="640" /> </p>

Actual Dashboard capture from a Unity 6.6 validation project. The deliberately long agent/request names exercise layout behavior; displayed counters belong to that test session.

The plugin Dashboard shows queue activity, agent sessions, HTTP activity and recent actions. Agent cards update in place, sections remember their state, and long request text stays readable through tooltips. HTTP counters include input refused before ticket creation, body traffic and domain reloads. Dashboard behavior · HTTP fields and measurements.

Requested editor-window captures preserve keyboard focus, identify ambiguous windows explicitly and bound native image allocations. Docked captures exclude tab chrome; inactive tabs require an explicit temporary-switch option. Owned Windows fixtures verify actual UI Toolkit/IMGUI pixels and Dashboard layouts at 360 and 640 px.

Code execution reuses bounded compiler metadata and reports cache activity in unity_editor_state.codeExecution. A local Unity 6.6 benchmark of twenty small calls fell from 15.85 s to 1.01 s; this measures one workload, not every Unity operation. Execution behavior, measurements and limits.

  • No editor found: check the plugin dashboard, console and discovered project path. See connection troubleshooting.
  • Slow calls: inspect unity_queue_info, unity_agents_list and unity_agent_log. Ticket status separates queue wait and processing time; queue info also exposes inactive-session retention and evictions. Monitoring fields and measurements →
  • Compilation in progress: wait for isCompiling: false, then inspect compilation errors. An empty error list during compilation is inconclusive.
  • Tool unavailable: check category switches and optional packages in the dashboard. Advanced route discovery supports newer plugins without expanding the initial tool list.
  • Response too large: request smaller read results; inspect the effects before repeating a write. Response budgets and image handling.
  • Stopped a request: the server stops waiting and polling; accepted Unity work can still finish. Cancellation behavior.
  • Client registry limit: set UNITY_MCP_COMPACT_TOOLS=1. Full parameter documentation remains available through advanced discovery.

Frequently asked questions

Which AI clients can use it? Clients that support spawning an MCP stdio server can connect using the Node command above. Configuration syntax and image/tool support depend on the client; no specific model is required by the bridge.

Do I need every optional Unity package? No. The core bridge works independently of optional integrations. Enable the relevant categories and install the packages needed for your workflow; use advanced discovery to inspect available tools.

Can several assistants work on the same project? Yes. Requests are attributed and scheduled per agent. Assign ownership of shared objects: scheduling does not resolve conflicting design changes.

Can I undo every AI action? Supported Unity writes have named undo groups and history. Filesystem operations, arbitrary code and some deferred workflows have different recovery limits. Inspect the Undo contract before relying on rollback.

Is this already a released upgrade? No. This README documents the modernization branch. Existing server/plugin version numbers remain independent; the installation instructions above select the development preview explicitly.

How does it compare? Start with the sourced comparison: routing, fair scheduling, retry recovery, multiplayer controls, monitoring and tool discovery. The measured gains above compare AnkleBreaker revisions under specific workloads.

🇨🇳 中文文档镜像 AI 翻译 2026-06-04
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Unity MCP 服务是一个用于连接 AI 助手(如 Claude、Cursor 和 Windsurf)到 Unity 编辑器和 Unity Hub 的开源集成。它允许 AI 直接控制 Unity — 创建场景、放置对象、编写脚本、运行构建等。

⚡ 功能介绍

Unity MCP 服务提供了 288 个工具,涵盖了 Unity 工作流的全部内容,包括 Unity Hub、场景、游戏对象、组件等。它还支持 AI 直接控制 Unity 的功能,例如创建场景、放置对象、编写脚本等。

📋 环境依赖

Unity MCP 服务需要 Node.js 18+、Unity Hub 和 Unity 编辑器(需要安装 unity-mcp-plugin 插件)等环境依赖。

🛠 安装步骤(Docker/pip/源码)

安装 Unity MCP 服务需要在 Unity 中安装 unity-mcp-plugin 插件,然后在终端中使用 npm install 安装 MCP 服务。

🚀 使用教程

使用 Unity MCP 服务需要在 Unity 中打开编辑器并安装 unity-mcp-plugin 插件,然后使用 MCP 服务的工具和功能。

⚙️ 配置说明(含 MCP / env)

Unity MCP 服务的配置包括环境变量(如 UNITY_HUB_PATH、UNITY_BRIDGE_HOST 和 UNITY_BRIDGE_PORT)等。这些变量可以在 MCP 服务的配置文件中设置。

🔄 工作流/模块

Unity MCP 服务的工作流包括 AI → MCP 服务 → Unity 插件 → Unity 编辑器。它使用 Model Context Protocol 连接 AI 助手到 Unity 编辑器和 Unity Hub,允许 AI 直接控制 Unity 的功能。

❓ FAQ 摘要

Unity MCP 服务的常见问题包括“连接失败”错误、“Unity Hub 未找到”错误和“类别禁用”错误等。这些问题的解决方法包括检查 Unity 编辑器是否打开、更新 UNITY_HUB_PATH 变量等。

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

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

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
部署方案
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
unity-mcp-server 中文教程unity-mcp-server 安装报错怎么办unity-mcp-server MCP 配置unity-mcp-server Agent 工作流unity-mcp-server 与同类工具对比unity-mcp-server 最佳实践unity-mcp-server 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效

👥 适合人群

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

🎯 使用场景

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

⚖️ 优点与不足

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

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

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

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

📄 License 说明

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

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

unity-mcp-server 是一款JavaScript开发的AI辅助工具。开源MCP工具:Unity MCP Server — 268 tools for AI-assisted game development. Connect Claude, C。⭐216 · JavaScript 主要应用场景包括:游戏开发辅助。
💡 AI Skill Hub 点评

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

⬇️ 获取与下载
📚 深入学习 Unity MCP 服务器
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 unity-mcp-server
原始描述 开源MCP工具:Unity MCP Server — 268 tools for AI-assisted game development. Connect Claude, C。⭐216 · JavaScript
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-05 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →