Unity MCP Server
Official-style MCP server and Unity Editor plugin that connects AI agents like Claude Code, Cursor, and Windsurf directly to the Unity Editor, enabling natural-language control over scenes, assets, scripts, GameObjects, and automation workflows.
Overview
Unity MCP (also known as MCP for Unity) is a powerful Model Context Protocol (MCP) server and Unity Editor plugin that bridges large language model-based AI agents with the Unity Editor. It allows tools like Claude Desktop/Code, Cursor, Windsurf, and other MCP-compatible clients to interact directly with your Unity project — querying data, modifying scenes, creating assets, editing scripts, and automating complex development tasks through natural language.
Maintained by CoplayDev and widely regarded as one of the most popular and stable community implementations, it turns Unity into a truly AI-augmented development environment.
Key Features
- Direct Editor Control: Create, modify, and delete GameObjects, components, scenes, prefabs, and assets
- Script Generation & Editing: Generate, refactor, and apply C# scripts directly in the Editor
- Scene & Hierarchy Management: Query and manipulate the scene hierarchy, transforms, lighting, and more
- Asset Pipeline Integration: Import, organize, and manage assets via AI prompts
- Automation Workflows: Run tests, build pipelines, apply bulk changes, and iterate rapidly
- Local & Secure: Runs via localhost (HTTP/WebSocket) with proper approval flows
- Easy Setup: Install as a Unity package and start the server from a dedicated Editor window
- Broad Client Support: Works seamlessly with Claude Code, Cursor, VS Code MCP extensions, and more
Installation
Via Unity Package Manager (Recommended)
- Open Window > Package Manager
- Click + → Add package from git URL
- Enter:
https://github.com/CoplayDev/unity-mcp.git
Alternatively, use the beta branch for latest features.
Start the Server
- In Unity: Window > MCP for Unity
- Click Start Server (typically runs on
http://localhost:8080) - In your MCP client (Claude Code, Cursor, etc.), add the server connection
Use Cases
- Rapid game prototyping by describing mechanics in plain English
- AI-assisted level design and scene building
- Automated refactoring of large codebases inside Unity
- Intelligent asset organization and cleanup
- Generating player controllers, UI systems, shaders, and animations
- Full AI-driven development loops for indie games and professional studios
- Integration with Meta XR, VR/AR projects, and custom toolchains
Requirements
- Unity 2022.3 LTS or newer (2021 LTS supported in some forks)
- .NET Standard 2.1 compatible project
- An MCP-compatible client (Claude Code recommended)
- Local network access for localhost communication
Related Projects
- Official Unity AI Assistant MCP integration (com.unity.ai.assistant)
- IvanMurzak/Unity-MCP (advanced runtime + Editor support)
- CoderGamester/mcp-unity (Node.js bridge variant)
- justinpbarnett/unity-mcp and other community forks
Unity MCP represents a major leap in AI-augmented game development, making the Unity Editor a first-class citizen in the MCP ecosystem.