# KitWright Unity MCP [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/kitwright/unity-mcp  
**GitHub Stars:** 43  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/kitwright-unity-mcp

## Description
Unity Editor MCP server: execute_code, screenshots, input simulation, play mode automation.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What KitWright Unity MCP does

KitWright Unity MCP lets an MCP-compatible AI client operate a running Unity project from inside the Unity Editor. It is intended for editor workflows such as creating scenes, generating scripts, configuring game logic, inspecting project assets, validating runtime behavior, and automating common editor actions.

The package includes capabilities for executing C# code, reading scene and project context, taking screenshots, simulating input, controlling Play Mode, checking compilation, inspecting performance, reading logs, locating objects and components, editing components, and examining selection or prefab-stage state. It also supports live C# API reflection, Unity documentation lookup, and menu-item execution.

The package is licensed under MIT and is editor-only. It does not add runtime components to a built game.

## How it works

After installation, the Unity package starts an MCP endpoint from the **Server** tab in `Window > KitWright > MCP Window`. The default address is `http://127.0.0.1:8765/`. Broker Mode is enabled by default and keeps the client-facing local endpoint available across Unity script recompiles and Play Mode domain reloads. If the broker cannot start, the package falls back to direct in-process HTTP; direct HTTP can also be selected manually.

The server uses the `core` tool profile by default to expose a smaller set of tools. The `full` profile exposes the complete tool set. Profiles reduce the number of tools presented to the client but are not an access-control mechanism: a connected client can change the profile, and `execute_code` is available in every profile.

A connection can be checked with calls such as `get_scene_info`, the `unity://project/context` resource, or `execute_code` returning the active scene name.

## Setup and configuration

Install through Unity Package Manager with the Git URL:

```text
https://github.com/kitwright/unity-mcp.git#upm
```

Open the MCP Window, start the server, and use **One-Click MCP Configuration** to write the client configuration. The package provides configuration paths for Claude Code, Claude Desktop, Cursor, LM Studio, VS Code, Codex, and Windsurf. Manual configurations point clients to the local HTTP endpoint above.

Open the **Tool Exposure** tab to choose the exposed profile. The **Settings** tab controls `execute_code` safety defaults and plugin debug logging. Project MCP workflow guidance can be installed from the **Skills** tab; the one-click workflow also supports Claude Code, Cursor, and Codex.

The package stores local MCP settings in `UserSettings/KitWrightMcpSettings.json`. Unity 2022.3 or later is required. Asset Store installations also require `com.unity.nuget.newtonsoft-json`; the dependency must be installed for the KitWright scripts to compile.

## Tools and capabilities

- Execute C# code through `execute_code`.
- Inspect scenes and project context with scene information tools and the `unity://project/context` resource.
- Create and modify scenes, objects, components, scripts, and UI through the editor toolset.
- Control Play Mode and simulate user input.
- Capture screenshots and inspect runtime output.
- Review performance data, logs, and compilation status.
- Locate structured objects and components, edit component values, and inspect editor selection or prefab-stage state.
- Reflect over the live C# API and look up Unity documentation.
- Invoke Unity editor menu items with `execute_menu_item`.

## Limitations and notes

The server operates only within the Unity Editor and does not extend a built game at runtime. Safety checks and a filesystem guard for `execute_code` are enabled by default, but they are not a security boundary. A client that can call `execute_code` can pass `safety_checks=false`, so tool approval should be handled by the MCP client when restricting actions matters.

The default server listens on localhost, and the package is designed around a running Unity project. Switching from `core` to `full` changes the client-visible tool list but does not prevent access to tools. Broker Mode is optional because direct HTTP remains available as a fallback or manual setting.

_Full upstream README: https://allmcps.com/mcp/kitwright-unity-mcp/readme_

