The Most Complete MCP Server for Unity

Build Unity games with AI superpowers

145 tools across 24 categories connecting Claude, Cursor, and any MCP-compatible AI assistant directly to your Unity editor. Full Undo/Redo. Real-time WebSocket. Production-grade.

Get on itch.io Buy Me a Coffee
$8 one-time purchase · Lifetime updates · Unlimited projects

Architecture

Real-time bidirectional communication between AI and Unity editor

AI Assistant <--stdio/MCP--> Node.js Server <--WebSocket--> Unity Editor

The Unity plugin runs a WebSocket server inside the editor. The MCP server connects to it and translates MCP tool calls into editor commands. All mutations go through Unity's Undo system — press Ctrl+Z to revert any AI change.

How It Works

Three steps to AI-powered Unity development

1

Install Plugin

Import the Unity MCP Pro plugin into your project via Unity Package Manager or copy to Assets.

2

Build MCP Server

Navigate to the server directory and build:

cd server && npm install && npm run build
3

Start Building with AI

Add the server to your .mcp.json and start using Claude, Cursor, or any MCP client to build your game.

145
Tools
24
Categories
Undo / Redo
0
Subscriptions

145 Tools across 24 Categories

Every tool AI needs to build complete Unity games

Project

7 tools
get_project_info get_project_settings get_asset_tree search_assets search_in_files set_project_setting get_resource_preview

Scene

6 tools
get_hierarchy create_scene open_scene save_scene play_scene stop_scene

GameObject

11 tools
add_gameobject delete_gameobject rename_gameobject get_components update_component add_component set_transform duplicate_gameobject move_gameobject select_gameobject find_gameobjects

Script

6 tools
list_scripts read_script create_script edit_script attach_script get_compilation_errors

Editor

5 tools
get_console_logs clear_console refresh_asset_db execute_menu_item get_performance_monitors

PrefabUNIQUE

6 tools
create_prefab instantiate_prefab get_prefab_info apply_prefab_overrides revert_prefab_overrides unpack_prefab

Material & Shader

6 tools
create_material get_material_properties set_material_property assign_material list_shaders create_shader

Physics

6 tools
add_collider setup_rigidbody get_physics_layers set_collision_matrix raycast_test add_joint

Lighting

5 tools
add_light set_lighting_settings set_skybox bake_lighting add_reflection_probe

Animation

7 tools
create_animation_clip add_animation_keyframe get_animation_clip_info create_animator_controller add_animator_state add_animator_transition set_animator_parameter

UI (Canvas)

6 tools
create_canvas add_ui_element set_rect_transform set_ui_text set_ui_image add_ui_layout

Audio

5 tools
add_audio_source get_audio_clips get_audio_mixer_info set_audio_mixer_param add_audio_listener

Particle

5 tools
create_particle_system set_particle_module get_particle_info add_particle_sub_emitter set_particle_renderer

Navigation

5 tools
bake_navmesh add_navmesh_agent add_navmesh_obstacle add_offmesh_link get_navmesh_info

TerrainUNIQUE

4 tools
create_terrain set_terrain_heightmap add_terrain_layer set_terrain_trees

Build Pipeline

5 tools
get_build_settings set_build_scenes build_player get_scripting_defines set_scripting_defines

Batch Operations

6 tools
batch_rename batch_set_layer batch_set_tag batch_set_static batch_add_component batch_execute

Package Manager

4 tools
list_packages add_package remove_package search_packages

Analysis & ProfilingUNIQUE

10 tools
get_scene_statistics find_missing_references find_unused_assets get_asset_dependencies get_memory_profile analyze_scripts find_script_references detect_circular_dependencies get_project_statistics analyze_scene_complexity

DebugUNIQUE

5 tools
get_play_state inspect_runtime call_method find_objects_of_type debug_log_inject

Input SimulationNEW

8 tools
simulate_key simulate_mouse simulate_axis get_input_state simulate_sequence start_recording stop_recording replay_recording

Screenshot & VisualNEW

4 tools
get_editor_screenshot get_game_screenshot compare_screenshots capture_frames

Runtime ExtendedNEW

7 tools
monitor_properties execute_editor_script execute_game_script find_ui_elements click_button_by_text wait_for_node find_nearby_objects

Testing & QANEW

6 tools
run_tests run_test_scenario assert_node_state assert_screen_text run_stress_test get_test_report

Key Features

What makes Unity MCP Pro the professional choice

Full Undo/Redo

Every AI operation goes through Unity's Undo system. Press Ctrl+Z to revert any change, just like manual edits. No fear of AI breaking your project.

Production-Grade WebSocket

Heartbeat monitoring, exponential backoff auto-reconnect, port scanning (6605-6609), and Domain Reload survival. Never loses connection.

Smart Type Parsing

Automatically converts strings to Vector3, Color, Quaternion, LayerMask, and other Unity types. AI can set position: "1, 2, 3" naturally.

Complete Prefab Workflow

Create, instantiate, inspect, apply overrides, revert, and unpack Prefabs. The only Unity MCP with full Prefab lifecycle support.

Build Pipeline Integration

AI can configure build scenes, set scripting defines, switch platforms, and trigger builds. End-to-end from scene creation to final build.

Compilation Error Feedback

AI reads C# compilation errors with structured error codes and context, enabling self-correction without manual intervention.

Animator Controller Management

Create controllers, add states, set up transitions, and configure parameters. Complete animation state machine management.

Physics & Collision Setup

Add colliders, configure Rigidbodies, set up collision matrices, perform raycasts, and add joints. AI handles complex physics setups.

Terrain Generation

Create terrains, sculpt heightmaps, paint texture layers, and place trees. AI can build landscapes from natural language descriptions.

Runtime Debugging

Inspect running games, call methods on live objects, find objects by type, and inject debug logging — all while in Play Mode.

Project Analysis

Find missing references, detect unused assets, analyze script dependencies, and profile memory usage. AI-powered project health checks.

Batch Operations

Rename, tag, layer, static flag, and add components to multiple GameObjects at once. Ideal for large scene organization.

Input Simulation

Simulate keyboard, mouse, and axis input during Play Mode. Record and replay input sequences for automated testing and reproducible demos.

Screenshot & Visual Testing

Capture editor and game view screenshots, compare images for visual regression testing, and record frame sequences for analysis.

Testing & QA

Run Unity Test Runner tests, execute test scenarios, assert game state and screen text, stress-test performance, and generate test reports — all from AI.

Runtime Extended

Monitor properties in real-time, execute custom editor and game scripts, find UI elements, click buttons by text, and wait for nodes to appear.

Use Cases

Real workflows enabled by Unity MCP Pro

Build a Game from Scratch

"Create a 3D platformer with a player, coins, and a goal zone"

AI creates the scene, GameObjects, scripts, physics, and prefabs. A playable prototype from a single conversation.

create_sceneadd_gameobjectcreate_scriptattach_scriptadd_collidersetup_rigidbodycreate_prefab

Set Up a 3D Environment

"Create an outdoor scene with terrain, trees, and dynamic lighting"

AI generates terrain, paints layers, places trees, adds lights, configures skybox, and bakes lighting.

create_terrainset_terrain_heightmapadd_terrain_layerset_terrain_treesadd_lightset_skyboxbake_lighting

Debug C# Errors

"Fix the compilation errors in my project"

AI reads error logs, inspects scripts, applies fixes, and verifies the project compiles cleanly.

get_compilation_errorsread_scriptedit_scriptget_console_logsrefresh_asset_db

Set Up UI System

"Create a main menu with title, start button, and settings panel"

AI creates Canvas, layouts, UI elements, text, images, and attaches interaction scripts.

create_canvasadd_ui_elementset_rect_transformset_ui_textadd_ui_layoutcreate_script

Add Animation System

"Create walk/run/jump animations with an Animator Controller"

AI creates animation clips, builds the Animator Controller, adds states, transitions, and parameters.

create_animation_clipadd_animation_keyframecreate_animator_controlleradd_animator_stateadd_animator_transitionset_animator_parameter

Optimize & Analyze Project

"Find missing references and unused assets in my project"

AI scans the entire project for broken references, unused assets, and provides actionable reports.

find_missing_referencesfind_unused_assetsget_asset_dependenciesget_scene_statisticsget_memory_profile

Comparison

How Unity MCP Pro compares to free alternatives

Feature Unity MCP Pro ($8) CoplayDev (free) CoderGamester (free)
Total Tools 145 ~20 ~15
Categories 24 ~5 ~4
Connection WebSocket + Heartbeat WebSocket WebSocket
Full Undo/Redo YES (all operations) NO NO
Auto-Reconnect Exp. Backoff NO Basic
Prefab Workflow YES (6 tools) NO NO
Physics Setup YES (6 tools) NO NO
Animation/Animator YES (7 tools) NO NO
Terrain YES (4 tools) NO NO
Build Pipeline YES (5 tools) NO NO
Lighting YES (5 tools) NO NO
Analysis & Profiling YES (10 tools) NO NO
Runtime Debugging YES (5 tools) NO NO
Batch Operations YES (6 tools) NO NO
Input Simulation YES (8 tools) NO NO
Screenshot & Visual YES (4 tools) NO NO
Testing & QA YES (6 tools) NO NO
Runtime Extended YES (7 tools) NO NO
Smart Type Parsing YES Limited NO
Error Feedback YES (structured) NO NO

FAQ

What is Unity MCP Pro?

Unity MCP Pro is an MCP server with 145 tools that connects AI assistants (Claude, Cursor, Windsurf, etc.) to the Unity editor via WebSocket. It allows AI to create scenes, manage GameObjects, edit C# scripts, set up physics, configure lighting, animate, build, simulate input, capture screenshots, run tests, and more — all with full Undo/Redo support.

How do I connect Claude to Unity?

Install the Unity plugin, build the Node.js MCP server with npm install && npm run build, then add the server to your .mcp.json config file. Claude connects via stdio to the MCP server, which communicates with Unity over WebSocket.

Which AI assistants work with Unity MCP Pro?

Any MCP-compatible AI client: Claude Code, Claude Desktop, Cursor, VS Code + Cline, Windsurf, and more. The server uses the standard Model Context Protocol.

What Unity versions are supported?

Unity 2021.3 LTS and later, including Unity 2022, Unity 2023, and Unity 6. The plugin uses standard Editor APIs and is render-pipeline independent (Built-in, URP, HDRP).

Can AI build 3D games in Unity?

Yes. Unity MCP Pro includes tools for GameObjects, physics, lighting, materials, terrain, animation, navigation, particles, and more. AI can set up complete 3D scenes, configure Rigidbodies, bake NavMeshes, and build player executables.

Does it work with Cursor?

Yes. Cursor supports MCP servers natively. Add Unity MCP Pro to your .mcp.json and Cursor can directly manipulate the Unity editor.

Can I undo AI changes?

Yes. Every operation goes through Unity's Undo system. Press Ctrl+Z to revert any AI change, just like manual edits. This includes GameObject creation, component modification, script changes, and more.

How does it compare to free Unity MCP servers?

Free alternatives typically offer 10-20 tools for basic operations. Unity MCP Pro provides 145 tools across 24 categories — including physics, animation, terrain, lighting, build pipeline, input simulation, screenshot, testing, and analysis — with full Undo/Redo and production-grade WebSocket connection.

Is source code available?

Yes. Both the Node.js MCP server (TypeScript) and the Unity plugin (C#) source code are included. You can inspect, modify, and extend the tools.

Is there a subscription?

No. Unity MCP Pro is a one-time $8 purchase with lifetime updates. Use it on unlimited projects and machines.

Quick Setup

Get running in under 5 minutes

1

Install Unity Plugin

Copy the plugin/ folder into your Unity project, or install via Unity Package Manager using the local path.

2

Build MCP Server

cd server
npm install
npm run build
3

Configure AI Client

Add to your .mcp.json:

{
  "mcpServers": {
    "unity-mcp-pro": {
      "command": "node",
      "args": ["/path/to/server/build/index.js"]
    }
  }
}
4

Start Using It

Open Unity, open your AI client, and start building. The plugin auto-connects when Unity launches.

Pricing

$8
One-time purchase · No subscription

Join our Discord