Unity编辑器MCP服务器 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
专为Unity编辑器设计的高级MCP服务器工具,支持代码执行、提示词和资源管理等功能。集成Claude等AI模型,帮助游戏开发者通过AI辅助提高开发效率,适合使用Cursor、Claude Code等工具的Unity开发人员。
Unity编辑器MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
专为Unity编辑器设计的高级MCP服务器工具,支持代码执行、提示词和资源管理等功能。集成Claude等AI模型,帮助游戏开发者通过AI辅助提高开发效率,适合使用Cursor、Claude Code等工具的Unity开发人员。
Unity编辑器MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/FunplayAI/funplay-unity-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"unity---mcp---": {
"command": "npx",
"args": ["-y", "funplay-unity-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Unity编辑器MCP服务器 执行以下任务... Claude: [自动调用 Unity编辑器MCP服务器 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"unity___mcp___": {
"command": "npx",
"args": ["-y", "funplay-unity-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <h1 align="center">Funplay MCP for Unity</h1> <p align="center"> <strong>The Most Advanced MCP Server for Unity Editor</strong> </p> <p align="center"> <a href="#"><img src="https://img.shields.io/badge/Unity-2022.3%2B-black?logo=unity" alt="Unity 6000.0+"></a> <a href="#"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a> <a href="#"><img src="https://img.shields.io/badge/MCP-Compatible-green" alt="MCP Compatible"></a> <a href="#"><img src="https://img.shields.io/badge/Platform-Editor%20Only-orange" alt="Editor Only"></a> </p> <p align="center"> <a href="./README_CN.md">中文</a> | English </p> <p align="center"> <img src="./Documentation~/Text%2BLogo.png" alt="The Most Advanced MCP Server for Unity" width="100%"> </p> </p>
💖 If you find this project useful, please consider giving it a Star. It helps more Unity developers discover it and supports ongoing development.
---
Funplay MCP for Unity is an MIT-licensed Unity Editor MCP server that lets AI assistants like Claude Code, Cursor, LM Studio, Windsurf, Codex, and VS Code Copilot operate directly inside your running Unity project.
Describe your game in one sentence — your AI assistant builds it in Unity through Funplay MCP for Unity's 91 built-in tools for scene creation, script generation, runtime validation, input simulation, performance analysis, and editor automation.
"Build a snake game with a 10x10 grid, food spawning, score UI, and game-over screen" Your AI assistant handles it through Funplay MCP for Unity: creates the scene, generates all scripts, sets up the UI, and configures the game logic — all from a single prompt.
<p align="center"> <img src="./Documentation~/demo.gif" alt="Funplay MCP for Unity — 16s demo" width="100%"> </p> <p align="center"><em>16-second demo — AI generates a 3D model and integrates it into the scene end-to-end. <a href="https://github.com/FunplayAI/funplay-unity-mcp/raw/main/Documentation~/demo.mp4">Watch HD MP4</a>.</em></p>
instanceId Chaining — Tools return {success, message, data} JSON with stable instanceId fields so agents can chain by_id calls reliably instead of re-resolving by nameIFunplayCommand for execute_code — New snippet template with auto-Undo (ctx.RegisterObjectCreation/Modification/DestroyObject), structured logs (ctx.Log/LogWarning/LogError), and a tracked changelog returned to the agentunitypackagecore and fullunity-mcp-workflow skillThe current open-source package exposes four high-value capability layers:
full, 29 focused tools in coreexecute_code for rich editor/runtime orchestrationfix_compile_errors, runtime_validation, and create_playable_prototypeNewtonsoft.JsonIn Unity, go to Window → Package Manager → + → Add package from git URL:
https://github.com/FunplayAI/funplay-unity-mcp.git
💡 Before you clone or install, a quick ⭐ on GitHub would be greatly appreciated.
Open your AI client and try: "Create a 3D platformer level with 5 floating platforms"
If you just want to get connected fast, do these three things:
Funplay > MCP ServerUse the built-in One-Click MCP Configuration in the Funplay > MCP Server window first.
Select your target client, click Configure, and the package writes the recommended MCP config entry for you.
For Claude Code, Cursor, and Codex, click Configure + Skills to also install the default project MCP workflow skill.
If you want project-specific AI guidance for the current Unity project, open Funplay → Project Skills to choose supported platforms and install the default unity-mcp-workflow skill.
If you prefer to edit config files manually, use the examples below as fallback references:
<details> <summary>Claude Code / Claude Desktop</summary>
{
"mcpServers": {
"funplay": {
"type": "http",
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>Cursor</summary>
{
"mcpServers": {
"funplay": {
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>LM Studio</summary>
LM Studio's mcp.json location can vary by version and platform. Prefer Program > Install > Edit mcp.json in LM Studio. Funplay's one-click Configure button opens LM Studio's lmstudio://add_mcp link and only updates an existing config file if one is already present, instead of creating a guessed path.
{
"mcpServers": {
"funplay": {
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>VS Code</summary>
{
"servers": {
"funplay": {
"type": "http",
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>Trae</summary>
{
"mcpServers": {
"funplay": {
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>Kiro</summary>
{
"mcpServers": {
"funplay": {
"type": "http",
"url": "http://127.0.0.1:8765/"
}
}
}
</details>
<details> <summary>Codex</summary>
[mcp_servers.funplay]
url = "http://127.0.0.1:8765/"
</details>
<details> <summary>Windsurf</summary>
Use the same JSON structure as Cursor unless your local Windsurf version requires a different MCP config format.
</details>
The table below compares this repository with the publicly documented behavior of Coplay's open-source unity-mcp repository on GitHub.
| Area | Funplay MCP for Unity | Coplay unity-mcp |
|---|---|---|
| Unity-side architecture | Embedded Unity Editor package with built-in HTTP MCP server | Unity bridge plus local Python MCP server |
| Extra local prerequisites | Unity package only for core workflows | Unity + Python 3.10+ + uv according to the public quick start |
| Primary workflow style | execute_code first, then focused helper tools | Broad manage_* tool families exposed through the bridge |
| Default tool exposure | Compact core profile with optional full expansion | Public docs emphasize a broad always-available tool surface |
| Built-in context model | Project resources, resource templates, workflow prompts, interaction history | Public README emphasizes tool families and bridge/server workflow |
| Play mode validation | Built-in play mode control, screenshots, logs, and input simulation in the package | Public README emphasizes broad Unity management and automation tools |
| Positioning | Lightweight, direct, MIT-licensed Unity MCP server for AI-driven editor control | Full-featured Unity bridge maintained by Coplay with Python-backed server setup |
Source for Coplay column: CoplayDev/unity-mcp
The table below compares this repository with Unity Technologies' official com.unity.ai.assistant package (v2.7.0-pre.2 as of 2026-05).
| Area | Funplay MCP for Unity | Unity AI Assistant |
|---|---|---|
| Minimum Unity version | 2022.3 | 6000.3 (Unity 6 only) |
| License | MIT, open source | Unity Terms of Service, proprietary |
| Deployment | Local HTTP MCP server in Editor, no cloud | Editor + native Relay subprocess + Unity Cloud backend |
| Billing | Free, user brings their own AI client | Credits-based (Unity Dashboard) |
| Tool exposure | 91 tools across 20 modules, core (29) / full profiles | ~15 MCP tools (mostly Manage* families) |
| Generic escape hatch | execute_code — CodeDom in-memory compile, IFunplayCommand + Undo, no sandbox (client-side approval) | RunCommand — namespace blacklist sandbox |
| Play mode validation | Full loop: enter / simulate input / capture / read logs / exit | Enter/Exit only; no input simulation |
| Asset generators | Not built-in (compose external APIs via execute_code) | Native Image / Mesh / PBR / Sound / Animation generators |
| Primary client model | BYO any MCP client (Claude Code / Cursor / LM Studio / Codex / VS Code) | Built-in chat window + ACP for Claude/Gemini via Gateway |
| Offline-capable | Yes for tool calls (inference depends on chosen client) | No (inference requires Unity Cloud) |
For a long-form comparison of the two approaches see Funplay Unity MCP vs Unity AI Assistant detailed comparison (Chinese).
融合Unity开发与AI能力的创新工具,代码执行能力强大但需防范安全风险。社区关注度中等,维护活跃度有待观察。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,Unity编辑器MCP服务器 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | funplay-unity-mcp |
| 原始描述 | 开源MCP工具:The Most Advanced MCP Server for Unity Editor with execute_code, prompts/resourc。⭐64 · C# |
| Topics | UnityMCP服务器AI编程游戏开发代码执行 |
| GitHub | https://github.com/FunplayAI/funplay-unity-mcp |
| License | MIT |
| 语言 | C# |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端