
funplay-unity-mcp
by FunplayAI·★ 57·综合分 46
Unity Editor 的高级 MCP 服务器,拥有91个内置工具,支持自动化、场景创建和 AI 开发。
概述
Funplay MCP for Unity 是一个全面的 MCP 服务器,使 Claude Code、Cursor 和 VS Code Copilot 等 AI 助手能够直接在 Unity 项目中操作。它提供用于内存中 C# 执行的 execute_code 功能,91个跨各类别的内置工具,并支持带有输入模拟和截图的游戏模式自动化。服务器采用清晰的架构,包含核心和完整工具配置文件,使用户能够根据需要选择适当的功能级别。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当使用Unity项目并需要AI代理通过创建场景、生成脚本和自动化的全面工具集直接与编辑器交互时,选择此服务器。
什么时候不要选它
如果您需要游戏运行时功能(此服务器仅限编辑器)或更喜欢基于Python的MCP服务器架构而非Unity包,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具execute_codeExecute C# code in-memory within Unity Editor
get_scene_infoRetrieve information about the currently open Unity scene
unity://project/contextAccess the current Unity project context including scene, selection, and compilation state
play_mode_controlControl Unity play mode (enter, exit, pause)
simulate_inputSimulate keyboard and mouse input in Unity play mode
capture_screenshotTake screenshots of the game view or scene view
get_performance_dataRetrieve Unity performance metrics and frame data
get_console_outputRead Unity console logs and error messages
find_objects_by_typeLocate Unity objects by type or component
edit_componentModify components on GameObjects using SerializedObject
check_compilationCheck if Unity scripts compile successfully
execute_menu_itemExecute Unity menu items programmatically
可对比工具
安装
- 通过 UPM(Git URL)安装:在 Unity 中,转到 **窗口 → 包管理器 → + → 从 git URL 添加包** 并输入
https://github.com/FunplayAI/funplay-unity-mcp.git - 启动 MCP 服务器:使用 **菜单:Funplay → MCP 服务器** 在
http://127.0.0.1:8765/上启动服务器 - 配置您的 AI 客户端:使用内置的 **一键 MCP 配置** 或手动添加:
{
"mcpServers": {
"funplay": {
"type": "http",
"url": "http://127.0.0.1:8765/"
}
}
}FAQ
- 'core' 和 'full' 工具配置文件有什么区别?
- 'core' 配置文件暴露29个专注于核心功能的高信号工具,而 'full' 暴露所有91个工具。用户可以在 MCP 服务器窗口中切换配置文件。
- 这个包是否适用于任何支持 MCP 的 AI 客户端?
- 是的,它是供应商无关的,可与 Claude Code、Cursor、Windsurf、Codex、VS Code Copilot 以及任何其他兼容 MCP 的客户端一起使用。
funplay-unity-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。