Control Unity Editor Scenes and Assets Through MCP for Unity

Preface

In Unity projects, when modifying scenes, manipulating assets, or patching scripts, the common practice is to switch back and forth between your IDE and the Editor, then verbally describe the steps to an AI so it can generate a “please execute manually” checklist. The model does not directly touch the current project, making it prone to missing context and difficult to automatically run tests for verification.

Below is an introduction to Control Unity Editor scenes and assets through MCP for Unity on SkillHub. It aligns the Agent’s workflow with MCP for Unity: after installing the MCP bridge on the Unity side and enabling this Skill in the client, MCP-compatible agents can inspect scenes, manage assets, edit scripts, and run tests according to documented conventions, undertaking a portion of automatable development tasks.

What is this

Control Unity Editor scenes and assets through MCP for Unity is a community-sourced (community) Agent Skill, with coordinates @user_3c6cb52e/control-unity-editor-scenes-and-assets-through-mcp-for-unity, current version 1.0.0, and categorized under dev-programming. The SkillHub page summary is consistent with the SKILL.md inside the package: Connect MCP-compatible agents to the Unity Editor to inspect scenes, manage assets, edit scripts, run tests, and automate game development tasks.

Two layers need to be distinguished:

  1. Skill (This entry): A SKILL.md workflow description written for the AI, telling the agent when and how to operate the editor in coordination with MCP for Unity.
  2. MCP for Unity (Upstream Toolchain): The Unity package and MCP service maintained by CoplayDev. The official documentation is at coplaydev.github.io/unity-mcp. The Skill notes that the content is excerpted from the upstream README and points to that documentation site.

SkillHub Metadata: requires_api_key=false. Installing this Skill does not require an API Key; however, actual connection to the editor still depends on local Unity and MCP client configuration.

Core Functions

Based on the Skill description and upstream MCP for Unity public statements, verifiable capabilities include:

  • Scenes and Objects: Drive the editor via natural language to create scenes and GameObjects, and perform scene-related operations (upstream claims to provide about 50 focused MCP tool entries, see Tool Catalog for details).
  • Scripts: Create and modify C# scripts within the project (upstream Quickstart examples include editing actions like adding components to objects).
  • Assets and Project: Manage Unity assets, execute tests, and handle editor-side workflows like profiling and building mentioned in upstream documentation.
  • Testing: Integrate with Unity Test Framework capabilities (“run tests” in the Skill description; refer to official tool references for specific tool names).

This Skill does not replace Unity or the MCP protocol itself; rather, it enables the Agent, under the premise that MCP for Unity is already connected, to select tools according to SKILL.md and official documentation, rather than just outputting manual steps.

Installation and Enablement

The complete chain is divided into two steps: First, enable MCP for Unity in Unity, then install the Skill into the current Agent’s skills directory.

1. Unity and MCP for Unity (Upstream)

Prerequisites listed in the Skill’s SKILL.md:

  • Unity Editor
  • Python 3.10+ (Upstream Quickstart also suggests managing the Python environment via uv)
  • Any MCP-compatible client (Skill examples: Claude, Codex, VS Code, Cursor)

The upstream README Quickstart steps are as follows.

Install the package from Git via Package Manager in Unity:

https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main

Path: Window → Package Manager → + → Add package from git URL, paste the URL above. Upstream states Unity version support ranges from 2021.3 LTS to 6.x; you can also use openupm add com.coplaydev.unity-mcp (see upstream docs).

Configure detected local MCP clients:

Window → MCP for Unity → Configure All Detected Clients

If a setup wizard appears after import, follow it to confirm Python/uv and client configuration; you can also start/stop services, switch transport modes, or reconfigure anytime via Window → MCP for Unity. Details are subject to the Installation Documentation.

2. Install this Skill on SkillHub (Agent)

The installation prompt provided by the SkillHub page is: Refer to SkillHub Installation Instructions and install coordinates @user_3c6cb52e/control-unity-editor-scenes-and-assets-through-mcp-for-unity.

If the skillhub CLI is not installed, check the version first:

command -v skillhub && skillhub --version

If not installed, the official one-click installation script is provided (full installation includes CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install the Skill to the skills directory recognized by the current Agent (must use --dir, otherwise the default ./skills/ might not be loaded). For example, Cursor:

skillhub install @user_3c6cb52e/control-unity-editor-scenes-and-assets-through-mcp-for-unity --dir ~/.cursor/skills/

Common paths for other clients (excerpted from SkillHub installation docs): Claude Code is ~/.claude/skills/; Codex is ~/.codex/skills/ or .agents/skills/ under the project. After installation, refresh or restart according to each client’s requirements to activate the Skill.

Typical Usage

After the above steps are completed—Unity Editor running, MCP client showing connected, and Agent loaded with this Skill—you can describe the target within the editor in natural language. The example prompt from the upstream Quickstart is:

Create a cube at the origin and add a Rigidbody.

The expected behavior is that the agent creates the object and adds the component via MCP in the scene, rather than just returning operation instructions. For more complex scene editing, asset modification, script changes, and testing, refer to the MCP for Unity Tool Reference and the documentation pointed to within the Skill for item-by-item verification.

The SKILL.md inside the Skill package is relatively short. For practical operation, coplaydev.github.io/unity-mcp serves as the authoritative supplement; advanced topics like multi-instance, tool groups, and remote services can be found in the upstream Advanced section links.

Applicable Scenarios and Notes

Who is it for

  • Developers already using MCP clients like Cursor, Claude Code, Codex, VS Code, and hoping for AI to directly operate the current Unity project.
  • Teams willing to maintain Unity + Python/uv + MCP services locally and accept manual review of generated scripts and scene changes.

Limitations and Notes

  • This Skill 1.0.0 is a documentation-type Skill and does not contain the Unity package itself; you must first complete the MCP for Unity package installation and client configuration, otherwise the Agent has no MCP tools available.
  • SkillHub Statistics (based on crawled data): Rating 100000, Downloads 1216; Tag requires_api_key=false. This is consistent with “no SkillHub API Key required” but does not mean Unity-side environment configuration is not required.
  • The upstream is an independent tool under MIT license, not affiliated with Unity Technologies; versions and tool lists will update with the CoplayDev repository. Please check the current Release Notes before production use.
  • Before letting the Agent modify scripts or scenes, it is recommended to verify with version control and read_console or testing tools (refer to official references for specific tool names) to avoid uncompiled errors or scene corruption entering the main branch directly.

Conclusion

The value of Control Unity Editor scenes and assets through MCP for Unity lies in transforming a “model that knows how to write Unity tutorials” into a “collaborator capable of executing MCP calls within a connected Editor”—the premise being that the Unity package and client are configured according to upstream documentation, and the Agent installs this Skill via SkillHub.

  • SkillHub Page: https://www.skillhub.cn/skills/user_3c6cb52e/control-unity-editor-scenes-and-assets-through-mcp-for-unity
  • API Entry: https://api.skillhub.cn/user_3c6cb52e/control-unity-editor-scenes-and-assets-through-mcp-for-unity
  • MCP for Unity Docs: https://coplaydev.github.io/unity-mcp/
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye