Unity editor plugin for AI assistant integration via Model Context Protocol
Top 66.9% on sourcepulse
This project provides a Unity Editor plugin and a companion Node.js server to enable AI assistants to interact with and control the Unity game engine. It targets Unity developers and AI researchers looking to integrate AI-driven workflows into game development, offering real-time editor state monitoring, remote command execution, and logging.
How It Works
The system uses a WebSocket-based Model Context Protocol (MCP) for real-time, bidirectional communication. A Unity Editor plugin (C#) acts as the client, monitoring editor state, executing C# code, and logging events. A Node.js server exposes these functionalities via standardized tools, allowing AI assistants to query editor state, execute arbitrary C# code within the Unity environment, and retrieve logs. This approach allows AI models to directly manipulate and query the Unity editor state, facilitating complex automation and debugging tasks.
Quick Start & Requirements
npx -y @smithery/cli install @Arodoid/unitymcp --client claude
UnityMCPPlugin
folder to Unity project's Assets
.cd unity-mcp-server && npm install && npm run build
.cd unity-mcp-server && node build/index.js
.Highlighted Details
UnityEngine
and UnityEditor
API access.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The CC BY-NC 4.0 license strictly prohibits commercial use, limiting adoption for professional game development studios. The README does not detail specific performance benchmarks or extensive testing across different Unity versions or operating systems.
4 months ago
1 week