MCP Catalogs
首页unity-mcp-plugin screenshot

unity-mcp-plugin

by AnkleBreaker-Studio·97·综合分 50

Unity MCP 插件将 Unity 编辑器与 Claude、Cursor 等 AI 助手通过 288 个工具桥接,用于游戏开发。

developer-toolsai-llmproductivity
16
Forks
4
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

Unity MCP 插件是一个全面的桥梁,通过模型上下文协议 (MCP) 使 AI 助手能够控制 Unity 编辑器。它在 Unity 内部的 localhost:7890 上运行一个轻量级 HTTP 服务器,提供 30 多个类别的 288 个工具访问权限,包括场景管理、游戏对象、组件、物理、地形、着色器开发、性能分析等。该插件是双部分系统的一半,需要 Node.js MCP 服务器将 AI 助手连接到 Unity 桥接器。

试试问 AI

装完之后,这里有 7 个你可以让 AI 做的事:

:AI 辅助几分钟内从零开始创建游戏
:自动化的 Unity 项目构建和部署
:通过 AI 界面实时调试和性能分析
:自动化的着色器创建和优化
:哪些 AI 助手与此 MCP 插件兼容?
:支持哪些 Unity 版本?
:多个 Unity 编辑器可以连接到同一个 MCP 服务器吗?

什么时候选它

如果您使用 Unity 并希望获得全面的 AI 辅助开发能力,特别是需要自动化复杂任务或让 AI 从头构建完整的游戏系统,请选择此 MCP 服务器。

什么时候不要选它

如果您不使用 Unity、需要其他游戏引擎,或需要身份验证/远程访问(因为服务器仅绑定到本地主机),请不要选择它。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • create_scene

    Create a new Unity scene

  • create_gameobject

    Create a new GameObject in the scene

  • add_component

    Add a component to a selected GameObject

  • build_project

    Build the Unity project for specified platforms

  • play_scene

    Start playing the current scene

  • create_shader_graph

    Create a new Shader Graph asset

  • create_terrain

    Create a new terrain object in the scene

  • bake_navmesh

    Bake NavMesh for navigation in the scene

  • create_prefab

    Create a prefab asset from a GameObject

  • create_material

    Create a new material asset

  • create_script

    Create a new C# script asset

  • profiler_start

    Start the Unity Profiler

可对比工具

bezicoplay-mcpunity-ai

安装

安装

  1. 打开 Unity > **窗口** > **包管理器**
  2. 点击 **+** 按钮 > **从 git URL 添加包...**
  3. 输入:https://github.com/AnkleBreaker-Studio/unity-mcp-plugin.git
  4. 点击 **添加**

通过在浏览器中访问 http://127.0.0.1:7890/api/ping 进行验证。

MCP 服务器设置

此插件需要配套的 Node.js MCP 服务器。请参阅 [unity-mcp-server](https://github.com/AnkleBreaker-Studio/unity-mcp-server) 进行安装。

FAQ

哪些 AI 助手与此 MCP 插件兼容?
Unity MCP 插件与 Claude(通过 Claude Desktop)、Cursor、Windsurf 以及任何其他兼容 MCP 的 AI 助手配合使用。
支持哪些 Unity 版本?
Unity 2021.3 LTS 或更高版本(已在 2022.3 LTS 和 Unity 6 上测试)。需要 .NET Standard 2.1 或 .NET Framework。
多个 Unity 编辑器可以连接到同一个 MCP 服务器吗?
可以,该插件支持自动多实例发现(包括 ParrelSync 克隆),每个编辑器使用自己的端口。

unity-mcp-plugin 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。