Unity MCP Server 是 Unity 官方产品吗?
不是。MCP for Unity 是 CoplayDev 维护的社区项目,与 Unity Technologies 没有关联。Unity 在其 AI Assistant 包中另外提供了官方 MCP 服务器。
@justinpbarnett
基本信息
Unity MCP 充当 AI 助手与 Unity Editor 之间的桥梁。为你的 LLM 提供工具,用于在 Unity 中管理资源、控制场景、编辑脚本和自动化任务。
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
Unity MCP Server(MCP for Unity)是一个免费、采用 MIT 许可的 unity mcp 桥接工具,让 Claude、Cursor、VS Code、Codex 等 AI 助手可以直接操控 Unity Editor:管理资源、搭建场景、编辑 C# 脚本、运行测试。
该项目由 CoplayDev 维护,Aura 赞助。它最初是 justinpbarnett/unity-mcp,现在这个地址会跳转到 CoplayDev/unity-mcp。这是社区项目,与 Unity Technologies 没有关联。README 称它提供 50 个精简的 MCP 工具入口,任何 MCP 客户端都能用。
前提条件: Unity 2021.3 LTS 至 6.x;Python 3.10+ 和 uv;PATH 中有 git(用 Git URL 安装时需要);一个 MCP 客户端。核心工具不需要 API Key。
+,选择“Add package from git URL...”,粘贴:https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
也可以通过 OpenUPM 或 Unity Asset Store 安装:
openupm add com.coplaydev.unity-mcp
uv,再列出本机检测到的 MCP 客户端。选中需要的客户端,点击 Configure Selected。之后也可以从 Window → MCP for Unity → Configure All Detected Clients 重新配置,重复运行不会出问题。Connected。unity mcp server 默认通过 HTTP 运行在 localhost:8080,也可以改用 stdio。
Claude Code 会被自动配置为 HTTP 连接。如需手动添加:
claude mcp add --transport http UnityMCP http://localhost:8080/mcp
如果在 MCP for Unity 窗口里切换了 HTTP 和 stdio,需要重启 Claude Code。
Claude Desktop 只支持 stdio。即使全局选择了 HTTP,配置器也会为它使用 stdio。macOS / Linux 的手动配置:
{
"mcpServers": {
"unityMCP": {
"command": "uvx",
"args": ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"]
}
}
}
在 Windows 上,请把 command 设为 uvx.exe 的完整路径(例如 C:/Users/YOUR_USERNAME/AppData/Local/Microsoft/WinGet/Links/uvx.exe)。
自动配置会写好配置项,之后还要在 Cursor Settings → MCP 中启用 unityMCP 服务器。手动配置:
{
"mcpServers": {
"unityMCP": {
"url": "http://localhost:8080/mcp"
}
}
}
VS Code 使用 servers 而不是 mcpServers:
{
"servers": {
"unityMCP": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
}
项目的客户端对照表把这两者列为 HTTP 客户端。运行配置器后,它们会自动连接。
core、animation、ui、vfx、testing、probuilder、profiling、docs、asset_gen 等)。默认只启用 core,提示词因此更精简manage_scene、manage_gameobject、find_gameobjects、manage_components、manage_prefabs、manage_camera、manage_physics 和 manage_material 用于创建和编辑场景内容。create_script、apply_text_edits、script_apply_edits、validate_script、find_in_file 和 delete_script 让模型安全地编写和修补 C# 代码。manage_editor、manage_asset、manage_packages、manage_build、execute_menu_item、read_console、refresh_unity,以及可在一次调用中执行多条命令的 batch_execute。run_tests 和 get_test_job(testing)、manage_shader 和 manage_vfx(vfx)、manage_ui、manage_animation、manage_profiler、manage_probuilder,以及 generate_model、generate_image 等 asset_gen 工具。这些工具需要你自己的服务商密钥。manage_tools 可按会话启用或关闭分组,例如 manage_tools(action="activate", group="vfx")。set_active_instance 用于选择要操作的 Editor。Assets/Scripts and tell me which ones reference Rigidbody.”testing 分组后,在同一个对话里运行测试并修复失败用例。blender_bridge 工具可以连接已安装 BlenderMCP 插件并正在运行的 Blender。git。请安装 Git,或改用 OpenUPM 或 Asset Store。uv --version 能正常运行,再查看 MCP for Unity 日志。localhost:8080,并且客户端配置中的 URL 与之一致。Cursor 还需要在 MCP 设置中启用该服务器。8080 端口可能与其他服务冲突(例如 Tailscale),可以在 MCP for Unity 设置中修改端口。System.Collections.Immutable 冲突: 项目文档建议把 System.Collections.Immutable v9.0.0 作为 DLL 放到 Assets/Plugins/。不是。MCP for Unity 是 CoplayDev 维护的社区项目,与 Unity Technologies 没有关联。Unity 在其 AI Assistant 包中另外提供了官方 MCP 服务器。
免费。它以 MIT 许可开源。可选的资源生成工具使用第三方服务商,需要你自己的密钥。
Unity 2021.3 LTS 至 Unity 6.x,同时需要安装 Python 3.10+ 和 `uv`。
可以。内置配置器可以设置 Claude Code、Claude Desktop、Cursor、VS Code、Windsurf、Cline、Codex、Gemini CLI 等客户端。Cursor 配置后还需要手动打开 MCP 开关。
默认是 `localhost:8080` 上的 HTTP。也可以用 stdio,Claude Desktop 始终使用 stdio。可以在 Window → MCP for Unity 中切换传输方式。
可以。多实例路由让同一个服务器指向特定的 Editor,`set_active_instance` 用于选择当前实例。
默认只启用 `core` 分组。可以让助手调用 `manage_tools` 来启用 `testing`、`ui`、`vfx` 等分组。
这些工具会直接作用于当前打开的项目,可以创建、修改和删除资源与脚本。请使用版本控制。Roslyn 校验可以在脚本出错前把问题拦下来。

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Senso MCP turns a Joomla 5 or 6 site into a remote MCP server. It runs inside Joomla itself (no extra server, no Node.js bridge) and is secured with OAuth 2.1 and Joomla's own ACL. The free pack lets an AI assistant crea
不止于 CSS
评论