Your LLM Can Now Drive the Unity Editor
You've probably had this experience: you're deep in a Unity session, you know exactly what you want—a cube at the origin with a Rigidbody, a new scene, a script tweak—and yet you're still clicking through menus to make it happen. What if you could just ask? That's the premise behind MCP for Unity, a project that bridges AI assistants with the Unity Editor through the Model Context Protocol.
What It Does
MCP for Unity connects AI assistants—Claude, Codex, VS Code, local LLMs, and others—to your Unity Editor via the Model Context Protocol. In practical terms, it gives your LLM the tools to manage assets, control scenes, edit C# scripts, run tests, profile, and build. The README describes it as 50 focused MCP tool entrypoints, and it works with any MCP client.
The architecture is straightforward: you install a Unity package, configure your detected clients through a Unity window, and then prompt your assistant in natural language. Behind the scenes, the MCP server handles the communication between your AI client and the Editor. Requirements are Unity 2021.3 LTS through 6.x, plus Python 3.10+ via uv. The project is MIT-licensed and free.
Why It's Cool
-
It meets you where you already work. The list of supported clients is broad—Claude Desktop and Code, Cursor, VS Code, Windsurf, Cline, Gemini CLI—so you're not locked into one vendor's ecosystem just to get editor automation.
-
The setup is genuinely short. Three steps: add the package from a git URL in Package Manager, run
Window → MCP for Unity → Configure All Detected Clients, and start prompting. The README's example—"Create a cube at the origin and add a Rigidbody"—is the kind of thing that either works in seconds or doesn't, and the project is betting on the former. -
Fifty tools is a meaningful scope. This isn't a toy that can only spawn primitives. Scene and GameObject creation, script editing, asset management, test running, profiling, and builds are all in the catalog. That's enough surface area to cover real workflow chunks rather than just demo tricks.
-
Multi-instance routing exists. If you've ever had two Unity projects open and wondered which one a tool would target, the docs cover routing across multiple instances. It's a small detail that suggests the maintainers have used this in anger.
-
Roslyn script validation. There's a dedicated guide for validating scripts with Roslyn, which hints at a more careful approach to code generation than just writing text to disk and hoping the compiler agrees.
-
Tool groups keep things manageable. With vfx, animation, ui, and testing groups, you can scope what's exposed rather than dumping all 50 entrypoints into every session.
The honest caveat: this is a bridge, not magic. What your LLM can do depends on the tools exposed and the model's ability to use them well. The README doesn't oversell that, which I appreciate.
How to Try It
-
Open Unity and go to Package Manager → Add from git URL:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#mainPin
#v10.0.0if you want this specific release, or useopenupm add com.coplaydev.unity-mcp. -
In Unity, open Window → MCP for Unity → Configure All Detected Clients. This handles wiring up the clients it finds.
-
Prompt your assistant with something concrete, like "Create a cube at the origin and add a Rigidbody."
From there, the tool catalog is the place to see what's actually available. If you hit issues or want to shape the direction, there's a Discord, plus GitHub issues and discussions. Contributors should note the README's instruction to branch off beta, not main.
Final Thoughts
MCP for Unity is best suited to developers already using an MCP-capable assistant who want to cut down on editor busywork—scene setup, script scaffolding, test runs. If you're not already in that workflow, the value proposition is less immediate, and you'll want to check the tool catalog before assuming your specific task is covered. But the combination of broad client support, a free MIT license, and a setup measured in minutes makes it easy to evaluate for yourself. The project is actively released (v10.3.0 as of the README), and the multi-instance and tool-group features suggest it's maturing past the demo stage.
Follow @githubprojects for more developer tools and open source projects.