Skip to main content
Glama
Unity API Communicator MCP Server

Unity API Communicator MCP Server

uac-mcp-server

MCP (Model Context Protocol) server that bridges AI agents to Unity Editor via the Unity API Communicator plugin.

Control Unity Editor from any MCP-compatible AI client — Claude, Cursor, Windsurf, VS Code Copilot, and more.

Features

  • 200+ tools auto-discovered from Unity API Communicator endpoints

  • 54 curated schemas with typed parameters for core operations (GameObjects, Scenes, Assets, Materials, Prefabs, Build, Console, Camera, Selection)

  • Zero config — just install and connect

  • Universal — works with any MCP client via stdio transport

Related MCP server: SimpleMcpServer

Prerequisites

  1. Unity API Communicator plugin — install it from unity-api-communicator.com into your Unity project, then open the Unity Editor. The plugin starts an HTTP server on localhost:7777 automatically.

  2. Node.js >= 18

This MCP server is a bridge — it requires Unity API Communicator to be installed and Unity Editor to be open. Without it, the MCP server starts and tools are listed, but every tool call returns a connection error.

Installation

Claude Code

claude mcp add --transport stdio unity -- npx -y uac-mcp-server

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "unity": {
      "command": "npx",
      "args": ["-y", "uac-mcp-server"]
    }
  }
}

Cursor

Go to Settings > MCP Servers > Add new MCP Server, then:

  • Name: unity

  • Type: command

  • Command: npx -y uac-mcp-server

Or add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "unity": {
      "command": "npx",
      "args": ["-y", "uac-mcp-server"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "unity": {
      "command": "npx",
      "args": ["-y", "uac-mcp-server"]
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json in your project:

{
  "servers": {
    "unity": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "uac-mcp-server"]
    }
  }
}

Any MCP Client

The server uses stdio transport. Launch it as a subprocess:

npx -y uac-mcp-server

It reads JSON-RPC 2.0 messages from stdin and writes responses to stdout, following the MCP specification.

Configuration

Environment Variable

Default

Description

UAC_HOST

localhost

Unity API Communicator host

UAC_PORT

7777

Unity API Communicator port

UAC_TIMEOUT

10000

Request timeout in milliseconds

Pass environment variables via your MCP client config:

{
  "mcpServers": {
    "unity": {
      "command": "npx",
      "args": ["-y", "uac-mcp-server"],
      "env": {
        "UAC_HOST": "localhost",
        "UAC_PORT": "7777"
      }
    }
  }
}

Available Tools

Curated (typed parameters)

Category

Tools

GameObject

create, delete, transform, list, clone, active, tag, layer, find_by_tag, component_add, component_remove

Scene

active, create, open, save, close, loaded, setactive

Asset

create, delete, rename, move, list

Material

color, float, texture, shader, properties

Prefab

create, instantiate, apply, unpack

Build

settings, player_settings, switch_platform, start, platforms

Console

log, clear, logs, start, stop, errors, compilation

Selection

get, set, asset, clear, focus

Camera

create, configure, list, screenshot, capture

Auto-discovered

All additional endpoints from the UAC plugin (Animation, Terrain, Physics, UI, Lights, Navigation, Addressables, Timeline, etc.) are automatically registered with generic parameter schemas. The AI agent uses tool descriptions to determine the correct parameters.

How It Works

AI Client (Claude, Cursor, Copilot, ...)
    │
    │  MCP (stdio, JSON-RPC 2.0)
    ▼
┌──────────────────────────┐
│  uac-mcp-server          │
│  (bridge MCP → HTTP)     │
└───────────┬──────────────┘
            │  HTTP REST (localhost:7777)
            ▼
┌──────────────────────────┐
│  Unity Editor + UAC      │
│  Plugin (200+ endpoints) │
└──────────────────────────┘

On startup, the server calls /api/discover on the UAC plugin to dynamically register all available endpoints as MCP tools. If Unity is not running, it falls back to a built-in static catalog of core tools.

Development

git clone <repo>
cd mcp-server
npm install
npm run build

Test locally:

node dist/index.js

Troubleshooting

Connection refused / tool calls return errors Unity Editor is not open, or UAC is not running. Open your Unity project — the plugin starts automatically.

UAC_PORT mismatch If you changed the UAC port in the plugin settings, pass the matching value:

"env": { "UAC_PORT": "8888" }

Tools not showing up The server calls /api/discover on startup. If Unity starts after the MCP client, restart the MCP server (or the AI client) so it can re-discover tools.

License

MIT

Available Tools

62 tools
asset_createC

Create a new asset in the project. Supported types: Material, Script, Shader, ScriptableObject, AnimationClip, AnimatorController, and more.

Inputs: assetType (required), name (required), template, destination.

asset_deleteC

Delete an asset from the project by its path.

Inputs: path (required).

asset_moveC

Move an asset to a different folder.

Inputs: sourcePath (required), destinationFolder (required).

asset_renameC

Rename an asset.

Inputs: currentPath (required), newName (required).

assets_listB

List assets in the project. Filter by type and/or folder. Returns name, path, and type for each asset.

Inputs: type, folder.

build_platformsB

List all available build platforms and the currently active one.

Inputs: no named parameters.

build_player_settingsC

Update Player settings. All fields are optional — only provided fields are changed.

Inputs: companyName, productName, bundleVersion, fullscreen, +2 more.

build_settingsB

Get current build settings: active platform, enabled scenes, development mode, player settings (company, product, version).

Inputs: no named parameters.

build_startA

Start a build with the current build settings. Uses enabled scenes from Build Settings. This may take a long time.

Inputs: outputPath (required).

build_switch_platformB

Switch the active build platform. This may take time as Unity reimports assets.

Inputs: platform (required).

camera_captureB

Capture what a specific camera sees using RenderTexture. Higher quality than screenshot. Falls back to main camera if not specified.

Inputs: name, path, width, height.

camera_configureC

Configure an existing camera's properties: FOV, clip planes, orthographic mode, background color, depth.

Inputs: name (required), fov, nearClip, farClip, +3 more.

camera_createB

Create a new Camera GameObject in the scene with optional position, FOV, and orthographic mode.

Inputs: name, x, y, z, +2 more.

camera_listB

List all cameras in the scene with their settings (FOV, orthographic, depth, clip planes).

Inputs: no named parameters.

camera_screenshotC

Take a screenshot using ScreenCapture.

Inputs: path.

categoriesA

List categories (read-only, no parameters required) [Category: discovery]

Inputs: no named parameters.

console_clearA

Clear the Unity Console and the internal log buffer.

Inputs: no named parameters.

console_compilationB

Get compilation errors and warnings directly from Unity's internal log system (up to 100 entries).

Inputs: no named parameters.

console_errorsB

Get error and warning counts from the console log buffer.

Inputs: no named parameters.

console_logA

Log a message to the Unity Console. Supports Log, Warning, and Error types.

Inputs: message (required), type.

console_logsB

Get captured console logs. Requires console listening to be started first.

Inputs: type.

console_startA

Start listening to Unity Console messages. Required before console_logs will capture anything.

Inputs: no named parameters.

console_stopA

Stop listening to Unity Console messages.

Inputs: no named parameters.

discoverA

Discover all endpoints (read-only, no parameters required) [Category: discovery]

Inputs: no named parameters.

gameobject_activeB

Enable or disable a GameObject (set active/inactive).

Inputs: name (required), active.

gameobject_cloneB

Duplicate/clone a GameObject. The clone appears at the same position as the original.

Inputs: name (required), newName.

gameobject_component_addA

Add a component to a GameObject. Use Unity component type names like Rigidbody, BoxCollider, AudioSource, Light, etc.

Inputs: gameObjectName (required), componentType (required).

gameobject_component_removeC

Remove a component from a GameObject by type name.

Inputs: name (required), componentType (required).

gameobject_componentsB

List components (read-only, no parameters required) [Category: gameobject]

Inputs: no named parameters.

gameobject_createA

Create a new GameObject in the active Unity scene. Can create primitives (Cube, Sphere, Capsule, Cylinder, Plane, Quad) or empty GameObjects. Supports setting initial transform and parent.

Inputs: name (required), type, position, rotation, +2 more.

gameobject_deleteA

Delete a GameObject from the scene by name. The object and all its children will be destroyed.

Inputs: name (required).

gameobject_find_by_tagA

Find all GameObjects with a specific tag. Returns name, active state, and layer for each match.

Inputs: tag (required).

gameobject_hierarchyC

Set parent (POST /api/gameobject/hierarchy) [Category: gameobject]

Inputs: params.

gameobject_layerA

Set the layer of a GameObject. Accepts layer number (0-31) or layer name.

Inputs: name (required), layer (required).

gameobject_listA

List all root GameObjects in the active scene with a 2-level hierarchy (root objects and their direct children). Returns name, active state, tag, layer, and child count.

Inputs: no named parameters.

gameobject_materialD

Set material (POST /api/gameobject/material) [Category: gameobject]

Inputs: params.

gameobject_tagC

Set the tag of a GameObject.

Inputs: name (required), tag (required).

gameobject_transformA

Set the transform (position, rotation, scale) of a GameObject. Only provided fields are modified.

Inputs: name (required), position, rotation, scale.

material_colorC

Set a color property on a material. Default property is '_Color' (main color). Color values are 0-1 floats.

Inputs: materialPath (required), propertyName, r, g, +2 more.

material_floatB

Set a float property on a material (e.g. _Metallic, _Smoothness, _Glossiness).

Inputs: materialPath (required), propertyName (required), value (required).

material_propertiesB

List all shader properties of a material with their current values, types, and names.

Inputs: materialPath (required).

material_shaderC

Change the shader of a material (e.g. 'Standard', 'Universal Render Pipeline/Lit').

Inputs: materialPath (required), shaderName (required).

material_textureC

Set a texture on a material. Default property is '_MainTex' (albedo/diffuse).

Inputs: materialPath (required), texturePath, propertyName.

prefab_applyC

Apply all overrides from a prefab instance back to the original prefab asset.

Inputs: name (required).

prefab_createC

Create a prefab asset from an existing scene GameObject. The prefab is saved as a .prefab file.

Inputs: name (required), path, prefabName.

prefab_instantiateB

Instantiate a prefab in the current scene. Creates a prefab instance linked to the original asset.

Inputs: prefabPath (required), name, x, y, +1 more.

prefab_unpackC

Unpack a prefab instance, breaking the prefab link. Mode 'OutermostRoot' unpacks the top level, 'Completely' unpacks all nested prefabs.

Inputs: name (required), mode.

project_infoA

Get project info (read-only, no parameters required) [Category: core]

Inputs: no named parameters.

scene_activeA

Get information about the currently active scene: name, path, build index, dirty state, root object count.

Inputs: no named parameters.

scene_closeB

Close a scene. Optionally save before closing.

Inputs: path, save.

scene_createA

Create a new empty scene. Mode 'Single' replaces current scene, 'Additive' adds alongside existing scenes.

Inputs: name, mode.

scene_loadedA

List all currently loaded scenes with their name, path, dirty state, and which is active.

Inputs: no named parameters.

scene_openA

Open/load an existing scene by its asset path (e.g. 'Assets/Scenes/Main.unity').

Inputs: path (required), mode.

scene_saveB

Save the active scene. Optionally specify a new path to 'Save As'.

Inputs: path.

scene_setactiveC

Set a loaded scene as the active scene.

Inputs: path (required).

selection_allC

Select all (POST /api/selection/all) [Category: selection]

Inputs: params.

selection_assetB

Select and ping an asset in the Project window by its path.

Inputs: path (required).

selection_clearB

Clear the current editor selection.

Inputs: no named parameters.

selection_focusA

Focus the Scene View camera on the currently selected GameObject (equivalent to pressing F).

Inputs: no named parameters.

selection_getA

Get the current editor selection: active GameObject, active object, and all selected objects with their types.

Inputs: no named parameters.

selection_setA

Select a GameObject by name in the editor. Optionally add to existing selection.

Inputs: name (required), addToSelection.

statusA

Get server status (read-only, no parameters required) [Category: core]

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 62 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear resource-action pairs (e.g., asset_create vs. asset_delete, camera_capture vs. camera_screenshot), but some overlap exists, such as console_errors and console_compilation both handling error reporting, which could cause minor confusion. Overall, the descriptions help differentiate them effectively.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, such as asset_create, camera_list, and gameobject_transform. There are no deviations in naming conventions, making the set predictable and easy to parse for agents.

    Tool Count2/5

    With 62 tools, the count is excessive for a single server, leading to potential cognitive overload and inefficiency. While the domain (Unity API) is broad, the tool set feels bloated and could benefit from consolidation or modularization into sub-servers.

    Completeness5/5

    The tool surface provides comprehensive coverage for Unity project management, including asset handling, scene manipulation, camera controls, console logging, and game object operations. It supports full CRUD/lifecycle workflows with no apparent gaps, ensuring agents can perform complex tasks without dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Unity Editor MCP SDK that exposes Unity Editor capabilities as MCP tools, enabling AI assistants like Claude Code to drive Unity Editor workflows through prefab inspection, asset manipulation, and preview rendering.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents (like Claude Code, Cursor) to directly operate Unity scenes via MCP protocol, with tools for scene hierarchy, object creation/deletion, and transform modification.
      1
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connect any MCP-compatible AI client (Claude Code, Cursor, Windsurf) to Unity or Godot. 300+ granular tools, an editor aware system prompt, game design document project context, script semantic search, and skill calibration.
      206
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An in-editor MCP server that exposes Unity convenience tools to AI assistants, allowing them to read console logs, execute menu items, dump scene hierarchies, and take screenshots.
      -