Unity MCP Server
Allows AI agents to query and control the Unity Editor, including scene hierarchy, GameObjects, components, prefabs, assets, scenes, console, editor state, play mode, input simulation, animations, materials, physics, and asset creation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Unity MCP Server ๐
Read this in other languages: ํ๊ตญ์ด A Model Context Protocol (MCP) server for Unity that enables AI agents to query and control the Unity Editor. This local-optimized version is enhanced with additional tools for Behavior Trees, Window Management, and advanced GameObject/Hierarchy manipulation.
What is MCP?
MCP is an open standard by Anthropic that allows AI systems to access external tools and data. This package turns Unity into an MCP server, letting AI assistants like Antigravity, Claude, and Cursor seamlessly query your scenes, modify assets, and execute editor commands.
Related MCP server: Funplay MCP for Unity
Key Features
๐ฎ Scene & Hierarchy Control: Create, modify, set parents, and find objects by component.
๐งฉ Component Management: Add, remove, and deeply inspect serialized component properties.
๐ฒ Behavior Tree Tools (New): Manage Unity Behavior graphs (add/remove nodes, connect, set properties).
๐ช Window Management (New): Directly open Editor windows like Animator or Behavior graph.
๐ฌ Scene & Prefab Management: Open, save scenes, instantiate and unpack prefabs.
๐ฆ Asset & Resource Access: Browse, move, duplicate, and read project assets.
โถ๏ธ Play Mode & Input: Control play mode state and simulate inputs.
Installation (Via Git URL)
Open
Window > Package Managerin Unity.Click the
+icon in the top left and selectAdd package from git URL....Enter the repository URL (or local path if you are using a local clone):
https://github.com/usmanbutt-dev/unity-mcp.git
Quick Start
The server auto-starts when the Unity project is loaded.
Navigate to
Window > MCP Serverto view the server status.Click "Copy Config to Clipboard".
Paste the configuration into your MCP client's configuration file (e.g.,
mcp_config.json).
Available Tools (Expanded)
๐งฉ GameObject & Component Tools
Tool | Description |
| Create new GameObjects (primitives supported). |
| Delete GameObjects from the scene. |
| Modify position, rotation, and scale. |
| Add a component to a GameObject. |
| Remove a component from a GameObject. |
| Set a specific component property value. |
| [NEW] Get all serialized properties and values of a component. |
๐ฒ Hierarchy Tools
Tool | Description |
| Retrieve the scene's GameObject hierarchy. |
| Get details of a specific GameObject. |
| List components attached to a GameObject. |
| [NEW] Find all GameObjects in the active scene that have a specific component. |
| [NEW] Reparent a GameObject to another GameObject. |
๐ง Behavior Tree Tools (NEW)
Tool | Description |
| Get details of a Behavior Graph (nodes, edges, blackboard). |
| Add a new node to a Behavior Graph. |
| Remove a node from a Behavior Graph. |
| Connect two nodes in a Behavior Graph. |
| Set a property value on a Behavior Graph node. |
๐ช Window Management (NEW)
Tool | Description |
| Open the Animator window in the Unity Editor. |
| Open the Unity Behavior (BT) window. |
๐ Animation Tools
Tool | Description |
| Set bool/float/int/trigger parameters. |
| Get animator state, parameters, and layers. |
| Play animation state by name. |
| [NEW] Set the culling mode of an Animator. |
(Other standard tools for Play Mode, Scene Management, Physics, Assets, Materials, and Shaders are fully supported as part of the core MCP feature set!)
Example Prompts for AI
Once connected, try asking your AI assistant:
"Find all GameObjects with the
EnemyControllercomponent.""Open the Behavior Tree window."
"Set the parent of
WeapontoPlayer/RightHand.""Get all component properties for the
Rigidbodyon the Player.""Create a red cube at position (0, 2, 0)."
Requirements
Unity 2021.3 or later
Node.js (Required for the MCP bridge
mcp-bridge.js)
License
MIT License - see LICENSE
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
MCP server for building and testing AI agents with multi-model experimentation and insights.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal Eโฆ
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides 20 tools to control the Unity Editor with natural language, including scene management, component manipulation, script generation, asset handling, project settings, builds, and live C# execution.2MIT

Funplay MCP for Unityofficial
AlicenseNot gradedqualityAmaintenanceThis MCP server integrates AI assistants with Unity Editor, allowing them to create scenes, generate scripts, simulate input, and automate workflows using 91 built-in tools.287MIT- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables AI agents to control the Unity Editor externally, providing tools for scene, GameObject, component, and other editor operations.1MIT
- AlicenseNot gradedqualityDmaintenanceUnity MCP Server enables LLM-based clients to automate the Unity Editor, including scene manipulation, UI testing, input simulation, and code editing.34MIT