KitWrightGitHub
KitWright

Your AI assistant, inside the Unity EditorAn MCP server for the Unity Editor

v1.0.0 · Unity 2022.3+ · MIT

An MIT-licensed MCP server that lets Claude Code, Cursor, Codex and any other MCP client operate directly inside your running Unity project.

~https://github.com/kitwright/unity-mcp.git
Unity 2022.3.18f1 — KitWright Active
127.0.0.1:8765 CONNECTED
▼ SampleScene
Main Camera
Directional Light
PlayerHero
Environment_Ground
EnemiesGroup
Inspector (PlayerHero)Transform
Pos X: -1.5
PosY: 1.2
PosZ: 0.0
MCP Tool Stream:
> execute_code: Applied Rigidbody & CapsuleCollider to PlayerHero
✓ Success (24ms) — Auto-Undo Registered
Bento Overview

Designed for power, speed & precision.

Everything you need to orchestrate Unity directly from your favorite LLM.

kitwright_playground.cs
Interactive

Run Roslyn C# code in-memory on Unity main thread without domain reload.

execute_code.cs
public class CommandScript : IKitWrightCommand
{
    public void Execute(ExecutionContext ctx)
    {
        var go = GameObject.CreatePrimitive(PrimitiveType.Cube);
        ctx.RegisterObjectCreation(go);   // Auto-Undo tracked
        ctx.Log("Created {0} in active scene", go.name);
    }
}
258
built-in tools
55
modules
35
tools in core profile
MIT
license
Vendor Agnostic

Works with any MCP client

Connect Cursor, Claude Code, Windsurf, LM Studio or custom API pipelines instantly.

Claude CodeCursorLM StudioWindsurfCodexVS Code CopilotKiroTrae
Production Ready

Built-in Safety & Fast Iteration

Filesystem guards block destructive paths while local 127.0.0.1 HTTP server keeps your code private.

How It Works

Describe the change. It happens in the Editor.

execute_code first
01 / CAPABILITY

execute_code first

One in-memory C# execution tool instead of fifty narrow ones. Roslyn compiles the snippet, it runs on the editor thread, and the agent gets the full Editor and runtime API surface — no .cs files written under Assets/, no domain reload.

Play mode automation
02 / CAPABILITY

Play mode automation

Enter play mode, simulate keyboard and mouse input, capture the game view, read the console, and validate behavior — all from the same MCP session.

Auto-Undo and structured logs
03 / CAPABILITY

Auto-Undo and structured logs

Implement IKitWrightCommand and every created, modified or destroyed object joins editor Undo. The response carries logs, created, modified, destroyed and returnValue, so the agent verifies changes without re-querying the scene.

Focused by default
04 / CAPABILITY

Focused by default

The core profile exposes 35 high-signal tools to keep the client's tool list clean. Switch to full for all 258 when you need them, and edit exactly which tools each profile exposes.

Details

Key features that make daily usage effortless.

Structured returns

Every tool returns {success, message, data} with stable instanceId fields, so agents chain by_id calls instead of re-resolving by name.

Safety guards on by default

The filesystem guard blocks destructive snippets, broad System.IO writes and traversal paths. Not a full sandbox — clients can override per call.

Resources and prompts

Live project context, scene and selection state, compile errors, interaction history, plus workflow prompts like fix_compile_errors.

One-click client config

Generate MCP config entries for Claude Code, Cursor, LM Studio, VS Code, Codex and more, straight from the Unity window.

Editor-only

No runtime components are added to your built game. The server listens on 127.0.0.1:8765 and nothing leaves your machine.

Built-in updating

KitWright > Check for Updates refreshes Git installs in place or imports the latest unitypackage automatically.

Comparison Matrix

Built specifically for Unity developers.

Compare KitWright MCP features against Unity's built-in AI Assistant.

RECOMMENDED

KitWright MCP

Open-source, zero subscription, full Editor capability.

Minimum Unity version2022.3
LicenseMIT, open source
DeploymentLocal HTTP server in Editor
BillingFree, bring your own client
Tool exposure258 tools, core (35) / full
Play mode validationEnter, input, capture, logs, exit
Offline tool callsYes

Unity AI Assistant

May 2026 documented state (v2.7.0-pre.2).

Minimum Unity version6000.3 (Unity 6 only)
LicenseProprietary, Unity ToS
DeploymentEditor + relay + Unity Cloud
BillingCredits via Unity Dashboard
Tool exposure~15 MCP tools
Play mode validationEnter and exit only
Offline tool callsNo
Compare all four Unity MCP servers
FAQ

Frequently asked questions.

Is it really free?

Yes. MIT licensed, no credits, no account. You bring your own MCP client and your own model.

Which Unity versions work?

Unity 2022.3 and newer, including Unity 6. The package is Editor-only and adds nothing to your build.

Does my project code leave my machine?

The MCP server itself is local, on 127.0.0.1:8765. Whatever your AI client sends to its own model provider is governed by that client.

Do I need Python?

No. The Unity-side plugin is a single Unity package with no external daemon and no Python requirement.

Is execute_code sandboxed?

There are default-on safety checks and a stricter filesystem guard, but it is not a complete sandbox. Treat it as you would any code your agent runs locally.

Can I add my own tools?

Yes. Tools are discovered by attribute, so a custom tool is a class and an attribute away.

One Git URL and you are connected.

No account, no credits, no Python. Add the package and start the server.