MCP Unity logo

MCP Unity

未认领

作者:CoderGamester

Model Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs

claudecodecodex-clicopilotcursorgame-developmentmcpmodel-context-protocolopenaiopenclawunityunity-packageunity3d

01 / 选择客户端

02 / 连接前的准备

认证方式尚未指定。连接前请查看项目说明。

安装项目所需的运行环境,并确保客户端能够使用它。

项目说明

输入项目说明中的变量名,用逗号分隔。只输入名称,不要输入密钥值。

03 / 添加配置

来源:根据公开安装说明生成

claude mcp add --transport stdio 'mcp-unity' -- 'npx' '-y' '@modelcontextprotocol/inspector' 'node' 'Server~/build/index.js'

替换占位符后在终端中运行。

04 / 在客户端中确认

打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。

更多AI & ML服务器

浏览完整目录

未认领列表

这个 MCP 服务器是你的吗?

此列表根据公开信息自动生成。认领后,你可以编辑页面、设置兼容性并解锁增长工具。全程不超两分钟。

认领此服务器

安全概况

已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理

33 个工具中显示 33 个

文档中列出的工具 (33)

内容来自项目文档。服务器握手不会验证每个工具的说明或行为。

add_asset_to_scene

Adds an asset from the AssetDatabase to the Unity scene

add_package

Installs new packages in the Unity Package Manager

assign_material

Assigns a material to a GameObject's Renderer component

batch_execute

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

create_material

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

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

delete_gameobject

Deletes a GameObject from the scene

delete_scene

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

duplicate_gameobject

Duplicates a GameObject in the scene with optional renaming and reparenting

execute_menu_item

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

get_console_logs

Retrieves logs from the Unity console with pagination support

get_gameobject

Gets detailed information about a specific GameObject including all components

get_material_info

Gets detailed information about a material including shader and all properties

get_play_mode_status

Gets Unity play mode status (isPlaying, isPaused)

get_scene_info

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

load_scene

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

modify_material

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

move_gameobject

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

recompile_scripts

Recompiles all scripts in the Unity project

reparent_gameobject

Changes the parent of a GameObject in the hierarchy

rotate_gameobject

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

run_tests

Runs tests using the Unity Test Runner

save_scene

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

scale_gameobject

Scales a GameObject to a new local scale

select_gameobject

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

send_console_log

Send a console log to Unity

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)

set_transform

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

show_unity_dashboard

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

unload_scene

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

update_component

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

update_gameobject

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

工具变更历史

比较相同配置的完整检查。只列出工具,未调用工具。此处不测量输入结构的变化。

尚无完整工具检查。