Unity

Integrates with
Unity Editor

Unity MCP (Model Context Protocol)

A Unity Editor plugin that enables AI-powered scene manipulation and automation through the Model Context Protocol.

Features

  • Two-way communication between AI and Unity Editor
  • Scene manipulation and automation
  • GameObject creation and modification
  • Component management
  • Asset import/management
  • Editor window control

Requirements

  • Unity 2022.3 or newer
  • .NET Framework 4.7.1 or newer
  • Python 3.10 or newer (for MCP server)

Installation

  1. Clone this repository
  2. Open the Unity project
  3. Import the UnityMCP folder into your project's Assets directory
  4. The plugin will appear in the Unity Editor under Window > Unity MCP

Usage

  1. Open the Unity MCP window from Window > Unity MCP
  2. Click "Start Server" to begin listening for AI commands
  3. Configure your AI client to connect to the MCP server
  4. Start sending commands to manipulate your Unity scene

Development

This project is structured as follows:

  • UnityMCP/ - Main plugin directory
    • Editor/ - Editor scripts and windows
    • Runtime/ - Runtime components and utilities
    • Server/ - Socket server implementation
    • Protocol/ - MCP protocol implementation

License

MIT License