# KitWright Unity MCP

> KitWright Unity MCP is an open-source MCP server for developer tools. MIT-licensed MCP server letting AI clients edit and test a running Unity Editor project. It is available on Windows, macOS, Linux, vscode, self-hosted and CLI.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, macOS, Linux, vscode, self-hosted, CLI
- **Website:** https://kitwright.dev
- **Repository:** https://github.com/kitwright/unity-mcp
- **MCP Registry name:** io.github.kitwright/unity-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Unity Editor package that runs a local MCP server on 127.0.0.1, so clients such as Claude Code, Cursor or Codex can build scenes, generate scripts and check runtime behaviour without leaving their chat. Its central tool is execute_code, which compiles a C# snippet in memory with Roslyn and runs it on the editor thread without writing .cs files into Assets or triggering a domain reload.

The package also covers play mode control, keyboard and mouse input simulation, screenshots, console reading and performance profiling. Changes made through IKitWrightCommand snippets are tracked for Unity Undo and returned to the agent as a log of created, modified and destroyed objects. The site says the core profile exposes a smaller set of tools, and the full profile exposes all of them.

It is aimed at Unity developers who already use an MCP-capable AI client and want it to operate on their own project. Unity 2022.3 or newer is required, and the package is editor-only, so it adds nothing to a built game.

## Features

- **In-memory C# execution:** Runs Roslyn-compiled snippets on the editor thread without writing script files or triggering a domain reload.
- **Play mode and input simulation:** Enters play mode, simulates keyboard and mouse input, and captures game view screenshots.
- **Tracked changes with Undo:** Objects created, modified or destroyed through command snippets join Unity's Undo history and are reported back.
- **Tool profiles:** A core profile exposes a smaller tool list, and a full profile exposes every built-in tool.
- **One-click client setup:** The editor window writes MCP config entries for a range of supported AI clients.
- **Custom tools by attribute:** Projects can add their own MCP tools as static methods marked with attributes.

## Good for

- Generate a playable prototype scene from a text description
- Check runtime behaviour by driving play mode and reading the console
- Fix compile errors by letting an AI client inspect and correct scripts
- Automate repetitive editor edits across many GameObjects or assets
- Profile performance and capture screenshots for review

## Tools

- `execute_code`: Compiles and runs an in-memory C# snippet inside the Unity Editor.

## FAQ

### Is it free to use?

The website and README state that it is MIT licensed, with no credits or account required. Users bring their own MCP client and model.

### Which Unity versions are supported?

The site lists Unity 2022.3 and newer, including Unity 6.

### Does it need Python?

No. The README says the Unity-side plugin is a single package with no Python requirement.

### Is execute_code sandboxed?

No. The README and site say it has default safety checks and a filesystem guard, but it is not a complete sandbox or a security boundary.

### Is KitWright Unity MCP free?

Yes. KitWright Unity MCP is open source, so you can use and self-host it for free.

### What are the best alternatives to KitWright Unity MCP?

The closest alternatives to KitWright Unity MCP are unity-mcp, Unity MCP, Funplay Unity MCP, Beckett - MCP for Godot and Unity AI Bridge.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.
- [Unity MCP](https://ai-powered.com/mcp/unity-mcp): Unity MCP is an open-source MCP server for developer tools.
- [Funplay Unity MCP](https://ai-powered.com/mcp/funplay-unity-mcp): Funplay Unity MCP is an open-source MCP server for developer tools.
- [Beckett - MCP for Godot](https://ai-powered.com/mcp/beckett-mcp-for-godot): Beckett - MCP for Godot is an open-source MCP server for developer tools.
- [Unity AI Bridge](https://ai-powered.com/mcp/unity-ai-bridge): Unity AI Bridge is an open-source MCP server for developer tools.
- [Unreal Engine MCP](https://ai-powered.com/mcp/unreal-engine-mcp): Unreal Engine MCP is an open-source MCP server for developer tools.
- [Kismet for Unreal Engine](https://ai-powered.com/mcp/kismet-for-unreal-engine): Kismet for Unreal Engine is an open-source MCP server for games and play.
- [CodeFizz Editor Agent](https://ai-powered.com/mcp/codefizz-editor-agent): CodeFizz Editor Agent is an MCP server for games and play.

---
Source: https://ai-powered.com/mcp/kitwright-unity-mcp
