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
- Clone this repository
- Open the Unity project
- Import the
UnityMCP
folder into your project'sAssets
directory - The plugin will appear in the Unity Editor under
Window > Unity MCP
Usage
- Open the Unity MCP window from
Window > Unity MCP
- Click "Start Server" to begin listening for AI commands
- Configure your AI client to connect to the MCP server
- Start sending commands to manipulate your Unity scene
Development
This project is structured as follows:
UnityMCP/
- Main plugin directoryEditor/
- Editor scripts and windowsRuntime/
- Runtime components and utilitiesServer/
- Socket server implementationProtocol/
- MCP protocol implementation
License
MIT License