游戏与游戏化 · 开发者工具

MCP Unity logo

MCP Unity

codergamester/mcp-unity

MCP Unity是一个实现Model Context Protocol的Unity编辑器扩展,通过Node.js服务器桥接AI助手与Unity项目的交互,提供菜单执行、对象选择、组件更新等功能。

安装

npm i -g wscat

客户端配置

{
  "mcpServers": {
    "mcp-unity": {
      "command": "node",
      "args": [
        "<value>"
      ]
    }
  }
}

环境变量

LOGGINGLOGGING_FILEUNITY_HOST
GitHub 星标
435
分类
游戏与游戏化, 开发者工具
许可证
MIT
更新于
2026年10月6日

工具(33)

  • execute_menu_item

    Executes Unity menu items (functions tagged with the MenuItem attribute)

  • select_gameobject

    Selects game objects in the Unity hierarchy by path or instance ID

  • update_gameobject

    Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist

  • update_component

    Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component

  • add_package

    Installs new packages in the Unity Package Manager

  • run_tests

    Runs tests using the Unity Test Runner

  • send_console_log

    Send a console log to Unity

  • add_asset_to_scene

    Adds an asset from the AssetDatabase to the Unity scene

  • create_prefab

    Creates a prefab with optional MonoBehaviour script and serialized field values

  • create_scene

    Creates a new scene and saves it to the specified path

  • load_scene

    Loads a scene by path or name, with optional additive loading

  • delete_scene

    Deletes a scene by path or name and removes it from Build Settings

  • get_gameobject

    Gets detailed information about a specific GameObject including all components

  • get_console_logs

    Retrieves logs from the Unity console with pagination support

  • recompile_scripts

    Recompiles all scripts in the Unity project

  • save_scene

    Saves the current active scene, with optional Save As to a new path

  • get_scene_info

    Gets information about the active scene including name, path, dirty state, and all loaded scenes

  • unload_scene

    Unloads a scene from the hierarchy (does not delete the scene asset)

  • duplicate_gameobject

    Duplicates a GameObject in the scene with optional renaming and reparenting

  • delete_gameobject

    Deletes a GameObject from the scene

  • reparent_gameobject

    Changes the parent of a GameObject in the hierarchy

  • move_gameobject

    Moves a GameObject to a new position (local or world space)

  • rotate_gameobject

    Rotates a GameObject to a new rotation (local or world space, Euler angles or quaternion)

  • scale_gameobject

    Scales a GameObject to a new local scale

  • set_transform

    Sets position, rotation, and scale of a GameObject in a single operation

  • create_material

    Creates a new material with specified shader and saves it to the project

  • assign_material

    Assigns a material to a GameObject's Renderer component

  • modify_material

    Modifies properties of an existing material (colors, floats, textures)

  • get_material_info

    Gets detailed information about a material including shader and all properties

  • batch_execute

    Executes multiple tool operations in a single batch request, reducing round-trips and enabling atomic operations with optional rollback on failure

  • show_unity_dashboard

    Opens the Unity dashboard MCP App in VS Code (requires VS Code 1.109+)

  • get_play_mode_status

    Gets Unity play mode status (isPlaying, isPaused)

  • set_play_mode_status

    Controls Unity play mode with actions: 'play' (start or unpause), 'pause' (toggle pause), 'stop' (exit play mode), 'step' (advance one frame)

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cursor logo

Cursor

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Cursor 编辑器让开发者与 AI 的工作真正融合在一起,提供如魔法般的编码体验。

WindowsMacOSLinux
Windsurf logo

Windsurf

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Windsurf 编辑器让开发者与 AI 的工作真正融合在一起。

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

桌面端 · 免费增值 · MIT

VS Code 通过代理模式将 MCP 与 GitHub Copilot 集成,允许在你的代理编码工作流中直接与 MCP 提供的工具交互。在 Claude Desktop、工作区或用户设置中配置服务器,提供引导式 MCP 安装和安全处理输入变量中的密钥,避免泄露硬编码密钥。

WindowsMacOSLinuxWeb

相关 MCP 服务器

更多服务器
HAN JIE logo

HAN JIE

hedge-dev/XenonRecomp

6k

XenonRecomp是一个将Xbox 360可执行文件转换为C++代码的工具,支持跨平台重新编译,目前仅支持x86架构。该项目受N64 Recompiled启发,专注于指令转换、内存处理、优化和补丁机制,但不提供运行时实现。

游戏与游戏化
Unity MCP logo

Unity MCP

justinpbarnett/unity-mcp

1.8k

Unity MCP是一个连接Unity编辑器与大型语言模型(LLM)的桥梁工具,通过本地MCP客户端实现自然语言控制Unity编辑器功能,支持资产管理、场景控制、脚本编辑等自动化操作。

游戏与游戏化
Unreal MCP logo

Unreal MCP

chongdashu/unreal-mcp

542

虚幻引擎模型上下文协议(MCP)集成的文档,帮助理解、设置和使用MCP系统。

游戏与游戏化
Unity logo

Unity

arodoid/unitymcp

422

UnityMCP是一个Unity编辑器插件,实现模型上下文协议(MCP),提供Unity与AI助手的无缝集成,包括实时状态监控、远程命令执行和日志功能。

游戏与游戏化
Godot logo

Godot

coding-solo/godot-mcp

329

Godot MCP是一个为Godot游戏引擎设计的模型上下文协议服务器,提供与Godot编辑器和项目的交互功能。

游戏与游戏化
UE5-MCP logo

UE5-MCP

VedantRGosavi/UE5-MCP

227

UE5-MCP是一个集成AI驱动的自动化工具,旨在优化Blender与Unreal Engine 5的工作流程,提供从场景生成到游戏开发的端到端解决方案。

游戏与游戏化