mcp4unity

Manage Unity Editor lifecycle and execute editor scripts via callable tools.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Purisky/MCP4Unity --skill mcp4unity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp4unity
Source: https://github.com/Purisky/MCP4Unity/tree/main/MCPServer~/mcp4unity
Command: npx skills add https://github.com/Purisky/MCP4Unity --skill mcp4unity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill bridges the gap between AI agents and the Unity Editor, enabling real-time scene inspection, asset management, compilation, and arbitrary Editor code execution without leaving your AI workflow.

Core Features & Use Cases

  • Unity Process Management: Start, stop, and check the status of the Unity Editor.
  • Compilation & Error Handling: Trigger script recompilation and retrieve console logs to fix errors.
  • Scene & Asset Manipulation: Inspect and modify GameObjects, components, properties, and assets within your Unity project.
  • Use Case: An AI agent can use this Skill to automatically compile code, identify and fix compilation errors, then inspect the scene hierarchy to modify a GameObject's position.

Quick Start

Use the mcp4unity skill to start the Unity editor.

Frequently Asked Questions about mcp4unity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use AI to automate Unity Editor scripting and compilation?

You can control the Unity Editor with AI by using a Skill that exposes editor functionalities as callable tools, enabling AI agents to manage the editor lifecycle, execute scripts, and manipulate scene objects.

Can an AI agent automatically fix compilation errors in Unity?

Yes, an AI agent can trigger script recompilation in Unity, retrieve console logs to identify compilation errors, and execute editor scripts to resolve them automatically within your workflow.

How do I manipulate Unity scene objects and assets using an AI agent?

An AI agent manipulates Unity scene objects and project assets by calling exposed editor tools to inspect and modify GameObjects, components, and properties directly through the connected Node.js server.

Do I need a Node.js server to connect AI with the Unity Editor?

Yes, facilitating communication between an AI agent and the Unity Editor requires a running Node.js server alongside the Unity Editor with the MCP4Unity service actively running.

What are the limitations of controlling Unity Editor through AI?

The primary limitation is the strict dependency on an active Node.js server and a running Unity Editor with the MCP4Unity service, meaning the AI agent cannot interact with the editor if this communication bridge is offline.