🔥 Unity MCP — AI 助手与 Unity 编辑器的桥梁
英文标题:🔥 CoplayDev/unity-mcp
Unity MCP 通过模型上下文协议(MCP)将 Claude、Codex、VS Code 等大语言模型接入 Unity 编辑器,以 MIT 协议开源并提供 47 个工具入口,可管理资源、控制场景、编辑脚本和自动化开发流程。项目现由 Aura 赞助维护,同时推出面向独立开发者的 Godot AI 项目,对 AI 驱动的游戏开发工作流有变革意义。
11.4 KB
11.5 KB
2.1 MB
834.1 KB
中文

自豪地由 Aura 赞助和维护 —— Unreal 与 Unity 的 AI 助手。
同时不要错过 Godot AI,这是 MCP for Unity 团队推出的全新开源项目。
使用大语言模型创建 Unity 应用。 MCP for Unity 通过 模型上下文协议 将 AI 助手 —— Claude、Codex、VS Code、本地 LLM 等 —— 连接到你的 Unity 编辑器。赋予你的 LLM 管理资源、控制场景、编辑脚本、运行测试以及自动化游戏开发工作流的能力。
近期更新
完整历史:发布说明。
通过任意 MCP 客户端用自然语言控制 Unity 编辑器 —— 创建场景和游戏对象、编辑 C# 脚本、管理资源、运行测试、性能分析以及构建。项目提供 47 个聚焦的 MCP 工具入口,适配所有客户端,基于 MIT 协议免费开源。
系统要求: Unity 2021.3 LTS → 6.x · Python 3.10+(通过 uv 管理)。兼容 任意 MCP 客户端 —— Claude Desktop 与 Code、Cursor、VS Code、Windsurf、Cline、Gemini CLI 等。
- 安装 — Unity → 包管理器 → 通过 git URL 添加:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main(可固定#v10.0.0使用本版本,或通过openupm add com.coplaydev.unity-mcp安装) - 配置 —
Window → MCP for Unity → Configure All Detected Clients。 - 输入提示 — “在原点创建一个立方体并添加刚体。” 立方体在数秒内出现。
社区
- Discord — 与维护者和其他贡献者交流
- Issues — 提交 Bug 和功能请求
- Discussions — 讨论设计思路和更广泛的问题
- 安全:请参阅 SECURITY.md 进行私密报告
请参阅 CONTRIBUTING.md。请基于 beta 分支,而非 main。完整的开发环境搭建、测试和发布流程详见 贡献指南 文档。
如果 MCP for Unity 对你的研究有所帮助,请引用它。
@inproceedings{wu2025mcpunity,
author = {Wu, Shutong and Barnett, Justin P.},
title = {{MCP-Unity}: {Protocol-Driven} Framework for Interactive {3D} Authoring},
year = {2025},
isbn = {9798400721366},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3757376.3771417},
doi = {10.1145/3757376.3771417},
series = {SA Technical Communications '25}
}
Aura 提供 2 款 Unity AI 工具:
- MCP for Unity 以 MIT 协议免费提供。
- Aura for Unity 是面向游戏开发者的高端 Unity/Unreal AI 助手。
本项目是 Unity 编辑器的免费开源工具,与 Unity Technologies 无关联。
许可证: MIT — 详见 LICENSE。
English / 原文

Proudly sponsored and maintained by Aura — the AI assistant for Unreal & Unity.
And don't miss Godot AI, the new open source project from the makers of MCP for Unity.
Create your Unity apps with LLMs. MCP for Unity bridges AI assistants — Claude, Codex, VS Code, local LLMs, and more — with your Unity Editor via Model Context Protocol. Give your LLM the tools to manage assets, control scenes, edit scripts, run tests, and automate your game dev workflows.
Recent Updates
Full history: Release Notes.
Control the Unity Editor in natural language from any MCP client — create scenes & GameObjects, edit C# scripts, manage assets, run tests, profile, and build. 47 focused MCP tool entrypoints, any client, free & MIT.
Browse the full tool catalog →
Requirements: Unity 2021.3 LTS → 6.x · Python 3.10+ (via uv). Works with any MCP client — Claude Desktop & Code, Cursor, VS Code, Windsurf, Cline, Gemini CLI, and more.
- Install — Unity → Package Manager → Add from git URL:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main(pin#v10.0.0for this release, oropenupm add com.coplaydev.unity-mcp) - Configure —
Window → MCP for Unity → Configure All Detected Clients. - Prompt — "Create a cube at the origin and add a Rigidbody." The cube appears in seconds.
Community
- Discord — chat with maintainers and other contributors
- Issues — bugs and feature requests
- Discussions — design ideas and broader questions
- Security: see SECURITY.md for private reporting
See CONTRIBUTING.md. Branch off beta, not main. The full dev setup, testing, and release process live in the Contributing docs.
If MCP for Unity helped your research, please cite it.
@inproceedings{wu2025mcpunity,
author = {Wu, Shutong and Barnett, Justin P.},
title = {{MCP-Unity}: {Protocol-Driven} Framework for Interactive {3D} Authoring},
year = {2025},
isbn = {9798400721366},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3757376.3771417},
doi = {10.1145/3757376.3771417},
series = {SA Technical Communications '25}
}
Aura offers 2 AI tools for Unity:
- MCP for Unity is available freely under the MIT license.
- Aura for Unity is a premium Unity/Unreal AI assistant built for game devs.
This project is a free and open-source tool for the Unity Editor, and is not affiliated with Unity Technologies.
License: MIT — see LICENSE.
