Unity AI Editor Control with Claude: A Free Open-Source Plugin
What if you could prototype a game idea in minutes instead of hours? Unity AI editor control makes that possible. With Unity x Claude, you describe what you want in plain English — drop in a Rigidbody, build a scene layout, tweak physics settings, generate a script — and it happens instantly inside your Unity Editor. No tab-switching, no boilerplate, no friction between the idea and the result.
What is Unity x Claude?
Unity x Claude is a free, open-source MCP (Model Context Protocol) server that runs inside the Unity Editor and gives Claude — Anthropic’s AI assistant — direct Unity AI editor control through 20 purpose-built tools. It turns natural language into real editor actions: creating objects, writing scripts, modifying components, managing assets, adjusting settings, and running builds.
Think of it as a prototyping accelerator. Instead of manually wiring up a test scene, you describe what you need and watch it appear. Instead of writing throwaway scripts to test a mechanic, you ask Claude to generate and attach them in seconds. The feedback loop between “what if” and “let’s see” gets dramatically shorter.
Why This Matters for Game Developers
Game development is full of moments where you just want to try something. What does this feel like with lower gravity? What if the player had a double-jump? How does the level look with different lighting? Every one of those experiments has setup cost — creating objects, attaching scripts, configuring properties. Unity AI editor control removes that cost.
With Unity x Claude you can go from idea to testable prototype in a single conversation. Describe the mechanic, let Claude build the scene, hit Play, evaluate, iterate. The entire cycle that used to take an afternoon can happen in a few minutes. That speed changes how you think about design — you stop filtering ideas and start testing them.
Unity AI Editor Control: Full Feature Breakdown
The plugin gives Claude 20 tools covering every major part of the Unity Editor. Here’s what you get:
Scene Control
Create, delete, duplicate, and inspect GameObjects. Read the full scene hierarchy with depth control and filter by tag or component. Spawn objects with components already attached, set transforms, parent them — all in a single request. Need a grid of physics cubes or a ring of spotlights? One sentence.
Component and Property System
Add, remove, read, and modify any component. Batch-update multiple properties across multiple objects in one call — change the mass on ten Rigidbodies, update materials, wire object references between components. Every common component has documented property paths so Claude knows exactly how to reach nested values.
Script Generation
Generate MonoBehaviours, ScriptableObjects, and EditorWindows from templates. Modify existing scripts with find-and-replace, method injection, or full rewrites. Need a quick player controller to test a movement feel? Claude writes and attaches it in seconds.
Asset Management
Search your project by name or type, create Materials, Prefabs, ScriptableObjects, and Folders. Import and re-import assets. Great for quickly setting up test content without leaving the conversation.
Live C# Execution
Run arbitrary C# directly inside the editor with full access to UnityEngine and UnityEditor APIs. Compiled in memory — no temp files, no domain reload, instant results. Perfect for one-off operations, batch processing, or testing logic without creating a permanent script.
Project Settings and Builds
Read and write Physics, Player, Quality, Audio, Time, Graphics, Input, and Navigation settings — all undoable. Build for Windows, macOS, Linux, WebGL, Android, or iOS with a single command. Control play mode, save scenes, undo, redo, and trigger any Unity menu item.
How Unity AI Editor Control Works Under the Hood
The architecture is deliberately simple. A lightweight HTTP server runs on a single background thread inside the Unity Editor. Claude sends tool calls through MCP, the server dispatches them to the right handler on Unity’s main thread, and results come back instantly.
The key design decision was performance. Game developers are protective of their editor’s responsiveness, so the server uses zero CPU when idle. The background thread sits in a kernel-level Socket.Poll wait — not a busy loop, not a timer. When nothing is happening, the plugin literally does nothing. It survives domain reloads automatically and has no external dependencies — pure C#, just drop the folder into your project.
The MCP Status Window

The built-in status window (Window > Claude MCP) shows you the server state, active port, and every registered tool at a glance. You can copy your Claude config with one click, toggle the server, and check connection health — all without leaving Unity.
Safety Built into Unity AI Editor Control
Everything Claude does is undoable. All destructive operations go through Unity’s Undo system, so Ctrl+Z works on every change. The execute_csharp tool blocks dangerous calls like Process.Start and Environment.Exit. Port cleanup happens automatically on process exit and domain unload — no orphaned sockets.
Rapid Prototyping and Testing with Unity AI Editor Control
This is where the plugin really shines for game developers. During Play mode, component queries automatically include live position, rotation, velocity, and sleep state for physics objects — real-time data that standard serialized properties don’t capture.
Combined with screenshot capture and smart snapshot tools, you can prototype a mechanic, hit Play, and have Claude verify the result visually — all in the same conversation. Ask Claude to set up a physics puzzle, run the simulation, screenshot the outcome, and iterate on the design. It turns what used to be a manual test-tweak-retest loop into something you can do conversationally in minutes.
The included skill files (SKILL.md and WORKFLOW.md) teach Claude the best way to use every tool — property paths for every common component, batch operation patterns, testing workflows, and known workarounds. This is what makes the difference between an AI that can technically call tools and one that actually uses them effectively.
Getting Started with Unity AI Editor Control
Setup takes about three minutes. Clone the GitHub repo, copy the package folder into your Unity project, add a few lines to your Claude config file, and you’re connected. The skill files teach Claude how to use the tools properly — property paths, batch patterns, workarounds, and testing workflows.
The project is fully open source under the MIT license and works with Unity 2021.3 LTS and newer, including Unity 6. Compatible with any workflow — URP, HDRP, or Built-in render pipeline. Works with Claude Desktop, Claude Code, and Cursor.
Check it out on GitHub: github.com/matthewagi/unity-x-claude
What’s Next
We’re using Unity x Claude daily at Redsec Games for rapid prototyping and iteration, and we’ll keep improving it based on real-world usage. On the roadmap: better prefab workflow support, visual scripting integration, and more granular asset creation tools. If you have ideas or want to contribute, pull requests are always welcome.