unity.com
unity.com logo

Unity

Enables real-time interaction with Unity projects for tasks like automated level design, asset management, and debugging...

Created byApr 22, 2025

UnityMCP [![](https://img.shields.io/badge/LinkedIn-0077B5?style=flat&logo=linkedin&logoColor=white 'LinkedIn')](https://www.linkedin.com/in/jack-w-richards/)

![](https://img.shields.io/github/last-commit/Arodoid/UnityMCP 'Last Commit') <a href="https://github.com/Arodoid/UnityMCP/pulls"><img src="https://img.shields.io/github/issues-pr/Arodoid/UnityMCP" alt="Pull Requests Badge"/></a> <a href="https://github.com/Arodoid/UnityMCP/issues"><img src="https://img.shields.io/github/issues/Arodoid/UnityMCP" alt="Issues Badge"/></a> ![](https://img.shields.io/badge/License-MIT-red.svg 'MIT License')
<a href="https://github.com/Arodoid/UnityMCP/stargazers"><img src="https://img.shields.io/github/stars/Arodoid/UnityMCP" alt="Stars Badge"/></a> <a href="https://github.com/Arodoid/UnityMCP/network/members"><img src="https://img.shields.io/github/forks/Arodoid/UnityMCP" alt="Forks Badge"/></a>
UnityMCP is a powerful Unity Editor plugin that implements the Model Context Protocol (MCP), enabling seamless integration between Unity and AI assistants. It provides real-time editor state monitoring, remote command execution, and comprehensive logging capabilities.
UnityMCP

Architecture

The project consists of two main components:

1. Unity Plugin (UnityMCPPlugin)

A Unity Editor plugin that provides:
  • Debug window for connection status and monitoring
  • WebSocket client for real-time communication
  • C# code execution engine
  • Comprehensive logging system
  • Editor state tracking and serialization

2. MCP Server (unity-mcp-server)

A TypeScript-based MCP server that exposes Unity Editor functionality through standardized tools:

Available Tools

  1. get_editor_state
  1. execute_editor_command
  1. get_logs

Installation

Installing via Smithery

To install UnityMCP for Claude Desktop automatically via Smithery:

Prerequisites

  • Unity 2022.3 or later
  • Node.js 18 or later
  • npm 9 or later

Unity Plugin Setup

  1. Copy the UnityMCPPlugin folder to your Unity project's Assets directory
  1. Open Unity Editor
  1. Access the plugin through Unity's top menu bar > UnityMCP > Debug Window

MCP Server Setup

Usage

Starting the Server

Connecting from Unity

  1. Open your Unity project
  1. Open the UnityMCP Debug Window (Window > UnityMCP > Debug Window)
  1. The plugin will automatically attempt to connect to the MCP server
  1. Monitor connection status and logs in the debug window

Example: Executing Commands

Development

Building the Server

Watching for Changes

  • Command execution timeout protection
The system provides comprehensive error handling for:
The project consists of two main components:
  • Debug window for connection status and monitoring
To install UnityMCP for Claude Desktop automatically via Smithery:

Example: Executing Commands

Security Features

Contributing

  1. Commit your changes (git commit -m 'Add amazing feature')

License