Unity MCP 🔌 MCP server Open source
Lets AI agents drive the Unity Editor: scenes, C# scripts, assets, tests and builds
- GitHub stars
- 15k
- Stars this week
- +173
- Forks
- 1.5k
- Licence
- MIT
- Last push
- 2026-10-02
- Maintainer
- CoplayDev
openupm add com.coplaydev.unity-mcpThird-party MCP servers run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
Built on the open MCP standard, so it works in every app that supports MCP.
About Unity MCP
What it does
MCP for Unity connects an AI coding agent to a running Unity Editor. It has two parts: a C# package that you add to your Unity project, and a Python server that your MCP client talks to. With both running, the agent can create and change scenes and GameObjects, write and edit C# scripts, manage assets, prefabs and materials, read the console, run tests, profile and start player builds. It is MIT-licensed, maintained by Aura, not affiliated with Unity Technologies, and supports Unity 2021.3 LTS through Unity 6.
Tools it gives your agent
- Core (on by default): scene, GameObject, component, prefab, material, asset and package management; C# script creation, structured edits and validation; menu items, console reading, asset refresh and batch execution
- Builds and editor:
manage_buildfor player builds and platform switching, plus editor state and settings control - Docs:
unity_docsfor the official Unity documentation andunity_reflectfor inspecting the live C# API - Optional groups: animation, ProBuilder modelling, profiling, and AI asset generation for images, audio and 3D models
Works with
This is a local server. By default it runs over HTTP at localhost:8080, and stdio is also available for clients that only speak stdio, such as Claude Desktop. The docs list Claude Code, Claude Desktop, Cursor, VS Code and GitHub Copilot, Windsurf, Cline, Gemini CLI, Codex and Antigravity, and any MCP client should work. A setup window in Unity writes client configs for you, and a remote multi-user mode with API keys is documented.
How to connect
In Unity's Package Manager, add the package from its git URL (or use OpenUPM), then open Window → MCP for Unity and configure your detected clients. For manual stdio setup:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
openupm add com.coplaydev.unity-mcp
uvx --from mcpforunityserver mcp-for-unity --transport stdio
Cost and limits
The package and server are free. You need Python 3.10+ with uv. The asset generation tools use your own keys for fal.ai, OpenRouter, Tripo or Meshy, and those services charge you directly.
Safety notes
The agent can delete scripts and assets and run menu items, so use version control on the project. Turn off tool groups you don't need. If you use the remote-hosted mode, keep API-key validation turned on.
Pros
- Broad tool set covering scenes, scripts, assets, builds and profiling
- In-Editor setup window auto-configures detected MCP clients
- Tool groups keep the default tool list small
Cons
- Needs both a Unity package and a Python/uv server running
- AI asset generation tools depend on paid third-party keys
Similar MCP servers
All developer tool MCP servers →GitHub MCP Server 🔌 MCP serverFree
GitHub's official MCP server: issues, pull requests, code, Actions and security alerts
XcodeBuildMCP 🔌 MCP serverOpen source
Build, run, test and debug iOS and macOS apps from AI agents, maintained by Sentry
Sentry MCP 🔌 MCP serverFreemium
Sentry's MCP server: pull errors, stack traces and issues into your agent
🔥 Sentry for Startups: up to $5,000 in credits (12-month expiry) for companies founded in the last 2 years with under $5M raisedMCP Reference Servers 🔌 MCP serverFree
The official reference MCP servers: fetch, filesystem, git, memory and more
n8n-MCP 🔌 MCP serverFreemium
n8n node docs, templates and validation so agents build workflows that actually run
🔥 Startup Plan: 50% off the self-hosted Business plan (fewer than 20 employees, under €5M raised)MATLAB MCP Server 🔌 MCP serverFree
Official MathWorks server to run, test and lint MATLAB code from AI agents (needs a MATLAB licence)