Gaming & Gamification · Developer Tools

MCP Unity logo

MCP Unity

codergamester/mcp-unity

MCP Unity is an implementation of the Model Context Protocol for Unity Editor, allowing AI assistants to interact with your Unity projects.

Install

npm i -g wscat

Client configuration

{
  "mcpServers": {
    "mcp-unity": {
      "command": "node",
      "args": [
        "<value>"
      ]
    }
  }
}

Environment variables

LOGGINGLOGGING_FILEUNITY_HOST
GitHub stars
435
Category
Gaming & Gamification, Developer Tools
License
MIT
Updated
Oct 6, 2026

About MCP Unity

This package provides a bridge between Unity and a Node.js server that implements the MCP protocol, enabling AI agents like Cursor, Windsurf, Claude Code, Codex CLI, GitHub Copilot, Google Antigravity, and OpenCode to execute operations within the Unity Editor.

Features

  • Improves code intelligence for Unity packages

  • Enables better autocompletion and type information for Unity packages

  • Helps AI coding assistants understand your project's dependencies

  • Example prompt: "Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject"

  • Example prompt: "Select the Main Camera object in my scene"

  • Example prompt: "Set the Player object's tag to 'Enemy' and make it inactive"

Tools (33)

  • execute_menu_item

    Executes Unity menu items (functions tagged with the MenuItem attribute)

  • select_gameobject

    Selects game objects in the Unity hierarchy by path or instance ID

  • update_gameobject

    Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist

  • update_component

    Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component

  • add_package

    Installs new packages in the Unity Package Manager

  • run_tests

    Runs tests using the Unity Test Runner

  • send_console_log

    Send a console log to Unity

  • add_asset_to_scene

    Adds an asset from the AssetDatabase to the Unity scene

  • create_prefab

    Creates a prefab with optional MonoBehaviour script and serialized field values

  • create_scene

    Creates a new scene and saves it to the specified path

  • load_scene

    Loads a scene by path or name, with optional additive loading

  • delete_scene

    Deletes a scene by path or name and removes it from Build Settings

  • get_gameobject

    Gets detailed information about a specific GameObject including all components

  • get_console_logs

    Retrieves logs from the Unity console with pagination support

  • recompile_scripts

    Recompiles all scripts in the Unity project

  • save_scene

    Saves the current active scene, with optional Save As to a new path

  • get_scene_info

    Gets information about the active scene including name, path, dirty state, and all loaded scenes

  • unload_scene

    Unloads a scene from the hierarchy (does not delete the scene asset)

  • duplicate_gameobject

    Duplicates a GameObject in the scene with optional renaming and reparenting

  • delete_gameobject

    Deletes a GameObject from the scene

  • reparent_gameobject

    Changes the parent of a GameObject in the hierarchy

  • move_gameobject

    Moves a GameObject to a new position (local or world space)

  • rotate_gameobject

    Rotates a GameObject to a new rotation (local or world space, Euler angles or quaternion)

  • scale_gameobject

    Scales a GameObject to a new local scale

  • set_transform

    Sets position, rotation, and scale of a GameObject in a single operation

  • create_material

    Creates a new material with specified shader and saves it to the project

  • assign_material

    Assigns a material to a GameObject's Renderer component

  • modify_material

    Modifies properties of an existing material (colors, floats, textures)

  • get_material_info

    Gets detailed information about a material including shader and all properties

  • batch_execute

    Executes multiple tool operations in a single batch request, reducing round-trips and enabling atomic operations with optional rollback on failure

  • show_unity_dashboard

    Opens the Unity dashboard MCP App in VS Code (requires VS Code 1.109+)

  • get_play_mode_status

    Gets Unity play mode status (isPlaying, isPaused)

  • set_play_mode_status

    Controls Unity play mode with actions: 'play' (start or unpause), 'pause' (toggle pause), 'stop' (exit play mode), 'step' (advance one frame)

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
Windsurf logo

Windsurf

Desktop · Freemium · Proprietary

The first agentic IDE. The Windsurf editor truly merges how developers and AI work together.

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
HAN JIE logo

HAN JIE

hedge-dev/XenonRecomp

6k

XenonRecomp is a tool that converts Xbox 360 executables into C++ code, which can then be recompiled for any platform.

Gaming & Gamification
Unity MCP logo

Unity MCP

justinpbarnett/unity-mcp

1.8k

Create your Unity apps with LLMs. MCP for Unity bridges AI assistants — Claude, Codex, VS Code, local LLMs, and more — with your Unity Editor via Model Context Protocol. Give your LLM the tools to manage assets, control scenes, edit scripts, run tests, and automate your game dev workflows.

Gaming & Gamification
Unreal MCP logo

Unreal MCP

chongdashu/unreal-mcp

542

This project enables AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).

Gaming & Gamification
Unity logo

Unity

arodoid/unitymcp

422

UnityMCP is a powerful Unity Editor plugin that implements the Model Context Protocol (MCP), enabling seamless integration between Unity and AI assistants. It provides real-time editor state monitoring, remote command execution, and comprehensive logging capabilities.

Gaming & Gamification
Godot logo

Godot

coding-solo/godot-mcp

329

Godot MCP enables AI agents to launch the Godot editor, run projects, capture debug output, and control project execution. This direct feedback loop helps agents understand what works and what doesn't in real Godot projects, leading to better code generation and debugging assistance.

Gaming & Gamification
UE5-MCP logo

UE5-MCP

VedantRGosavi/UE5-MCP

227

UE5-MCP (Model Control Protocol) is designed to integrate AI-driven automation into Blender and Unreal Engine 5 (UE5) workflows. This project builds upon BlenderMCP to provide an end-to-end pipeline for AI-driven game level creation, enhancing level design, asset management, and gameplay programming.

Gaming & Gamification