Unity Editor and runtime plugin that connects Claude, Cursor, Copilot and other agents to Unity over MCP, with a query language for scenes and assets, C# execution, tests and screenshots.
MCP for Unity
Summary
Coplay's open-source bridge between MCP clients and the Unity Editor: build scenes, edit C# scripts, manage assets, run tests and builds from Claude, Cursor or VS Code.
Features
- Create and edit scenes and GameObjects from natural language
- Write and edit C# scripts with optional Roslyn validation
- Manage assets, run tests, profile and build
- About 50 tools and 25 read-only resources, grouped into toggleable tool groups
- HTTP transport shared by several clients, or stdio for Claude Desktop
- Auto-configures detected MCP clients from the Unity Editor
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
MCP for Unity (CoplayDev/unity-mcp) lets an AI assistant drive the Unity Editor through the Model Context Protocol. You describe what you want — "create a cube at the origin and add a Rigidbody" — and the assistant creates GameObjects, edits scenes, writes and edits C# scripts, manages assets, runs tests, profiles and builds, all inside your open project.
It is maintained by Coplay and sponsored by Aura, and is a separate project from the similarly named IvanMurzak/Unity-MCP.
How it works
Three layers: your MCP client talks to a Python server (FastMCP), which talks over a WebSocket hub to a C# Editor plugin that runs commands on Unity's main thread. The server advertises about 50 tool entry points and 25 read-only resources, organised into tool groups (VFX, animation, UI, testing and more) so a client sees only what it needs. Multiple Unity instances can be routed from one client, and Roslyn-based script validation is available.
Transports
- HTTP (default) — the server listens on
http://localhost:8080/mcp; several clients (for example Claude Code and Cursor) can share one Editor with per-client session isolation. It binds to loopback unless you opt into LAN binding, and remote endpoints require HTTPS; an API-key-authenticated remote-hosted mode is documented. - stdio — the client spawns the server with
uvx; this is what Claude Desktop uses.
Setup
Requires Unity 2021.3 LTS through 6.x and Python 3.10+ with uv. Install the package in Unity (Package Manager → Add package from git URL https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main, the Asset Store, or openupm add com.coplaydev.unity-mcp). A setup wizard checks Python and uv, then Window → MCP for Unity → Configure All Detected Clients writes the config for some 24 supported clients. The manual configs below are for clients the configurator does not handle.
Free and MIT-licensed; not affiliated with Unity Technologies.
Related MCP Servers
See all MCP for Unity alternativesMCP: Audio Studio MCP
by KanaWorks_AI
Generate music loops and sound effects locally with Stable Audio 3, then loop, normalize and export them, from any MCP client.
MCP: Ludo AI MCP
by Ludo.ai
Generate game-ready sprites, animations, 3D models, video, music and sound effects from your AI assistant through Ludo.ai's hosted MCP server.
Red Hat's zero-dependency C++23 code-context engine — ranked call graphs and blast-radius analysis, indexing a repo in under half a second with no server and no database.