MCP Catalogs
首页funplay-unity-mcp screenshot

funplay-unity-mcp

by FunplayAI·57·综合分 46

Unity Editor 的高级 MCP 服务器,拥有91个内置工具,支持自动化、场景创建和 AI 开发。

developer-toolsai-llmproductivity
5
Forks
0
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Funplay MCP for Unity 是一个全面的 MCP 服务器,使 Claude Code、Cursor 和 VS Code Copilot 等 AI 助手能够直接在 Unity 项目中操作。它提供用于内存中 C# 执行的 execute_code 功能,91个跨各类别的内置工具,并支持带有输入模拟和截图的游戏模式自动化。服务器采用清晰的架构,包含核心和完整工具配置文件,使用户能够根据需要选择适当的功能级别。

试试问 AI

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

:通过自然语言提示自动化 Unity 场景创建和脚本生成
:通过输入模拟和截图捕获进行游戏机制的测试和验证
:使用自动化检查工具进行 Unity 项目的性能分析和调试
:'core' 和 'full' 工具配置文件有什么区别?
:这个包是否适用于任何支持 MCP 的 AI 客户端?

什么时候选它

当使用Unity项目并需要AI代理通过创建场景、生成脚本和自动化的全面工具集直接与编辑器交互时,选择此服务器。

什么时候不要选它

如果您需要游戏运行时功能(此服务器仅限编辑器)或更喜欢基于Python的MCP服务器架构而非Unity包,请避免使用。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • execute_code

    Execute C# code in-memory within Unity Editor

  • get_scene_info

    Retrieve information about the currently open Unity scene

  • unity://project/context

    Access the current Unity project context including scene, selection, and compilation state

  • play_mode_control

    Control Unity play mode (enter, exit, pause)

  • simulate_input

    Simulate keyboard and mouse input in Unity play mode

  • capture_screenshot

    Take screenshots of the game view or scene view

  • get_performance_data

    Retrieve Unity performance metrics and frame data

  • get_console_output

    Read Unity console logs and error messages

  • find_objects_by_type

    Locate Unity objects by type or component

  • edit_component

    Modify components on GameObjects using SerializedObject

  • check_compilation

    Check if Unity scripts compile successfully

  • execute_menu_item

    Execute Unity menu items programmatically

可对比工具

unity-mcpplaywright-mcpshell-mcp

安装

  1. 通过 UPM(Git URL)安装:在 Unity 中,转到 **窗口 → 包管理器 → + → 从 git URL 添加包** 并输入 https://github.com/FunplayAI/funplay-unity-mcp.git
  2. 启动 MCP 服务器:使用 **菜单:Funplay → MCP 服务器** 在 http://127.0.0.1:8765/ 上启动服务器
  3. 配置您的 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 对比

GitHub →

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