OlympHill
mcp-unity logo

mcp-unity此 MCP 服务器直接将 AI 编码助手连接到 Unity 游戏编辑器。您可以通过简单地输入指示,构建场景、移动对象、改变材料和运行测试,从而节省时间并提高效率。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

MCP Unity 是在 Unity 和 node.js 中实现 MCP(Model Context 传输协议)协议之间的桥梁,使 AI 助手能够与 Unity 项目进行交互。它允许用户通过输入指示来构建场景、移动对象、改变材料和运行测试,能够节省时间并提高效率。MCP Unity 支持与 Cursor、Windsurf 和 Claude Code 等 AI 编码助手的集成。该工具提供 IDE 集成、包缓存访问和 MCP 服务器工具,以操作和查询 Unity 场景和 GameObject。

主要功能

  • IDE 集成
  • 包缓存访问
  • 执行菜单项
  • 选择 gameobject
  • 更新 gameobject
  • 更新组件

价格

模型
Free
评分
暂无评价

使用场景

游戏开发

MCP Unity 可用于加速游戏开发,将开发人员与 Unity 编辑器直接连接起来,使用文本指示交互,从而减少手动导航和单击

AI 助手编码

MCP Unity 允许 AI 编码助手在 Unity 编辑器中执行操作,方便自动化重复任务并提高效率

优点 & 缺点

优点

  • 改善 Unity 包的代码智能
  • 对 Unity 包的自动完成和类型信息提供更好的支持
  • 允许 AI 编码助手在 Unity 编辑器中执行操作
  • 通过使用文本指示与 Unity 项目进行交互可以节省时间
  • 提高了开发人员的生产力

缺点

  • 与所有 AI 编码助手的兼容性信息有限
  • 依赖于 node.js 服务器对 MCP 协议的实现

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Why do some clients fail with KeyError: 'position' during tool initialization?

Some MCP clients may fail while parsing tool schemas when they contain local JSON pointer references such as #/properties/position. MCP Unity avoids this by registering transform tool inputs (set_transform, move_gameobject, rotate_gameobject, scale_gameobject) with fresh nested vector schemas per field, so the generated schema does not rely on local #/properties/... references. If you still see this error: update your MCP client to the latest version, rebuild the Node server (cd Server~ && npm run build), confirm your package version includes this compatibility fix.

Asked by Winifred Adeyemi · Jul 31, 2026

Why do I get a connection failed error when running Play Mode tests?

The run_tests tool returns the following response: Error: Connection failed: Unknown error This error occurs because the bridge connection is lost when the domain reloads upon switching to Play Mode. The workaround is to turn off Reload Domain in Edit > Project Settings > Editor > "Enter Play Mode Settings".

Asked by Rania Nasser · Jul 27, 2026

Why won't the MCP Unity server start?

Check the Unity Console for error messages Ensure Node.js is properly installed and accessible in your PATH Verify that all dependencies are installed in the Server directory

Asked by Frank Müller · Jul 24, 2026

Why am I unable to connect to MCP Unity?

Ensure the WebSocket server is running (check the Server Window in Unity) Send a console log message from MCP client to force a reconnection between MCP client and Unity server Change the port number in the Unity Editor MCP Server window. (Tools > MCP Unity > Server Window)

Asked by Valentina Marino · May 28, 2026

Is MCP Unity free to use?

Yes, MCP Unity is an open-source project distributed under the MIT License. You are free to use, modify, and distribute it according to the license terms.

Asked by Sanjay Gupta · Apr 27, 2026

提问

服务配缩器 的替代品