Unity Editor
An MCP server and client for LLMs to interact with Unity Projects
What is Unity Editor?
Unity Editor is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server and client for llms to interact with unity projects
An MCP server and client for LLMs to interact with Unity Projects
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP server and client for LLMs to interact with Unity Pro
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx unity-editorConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Unity Editor
Unity Editor MCP is a server and client bridge that lets large language models interact directly with Unity projects through the Model Context Protocol. It enables AI agents connected via Claude Desktop or other MCP clients to inspect scene hierarchies, create and modify GameObjects, manage assets, run scripts, and trigger editor operations — all through natural language without leaving the AI chat interface. Game developers use it to accelerate Unity workflows by delegating repetitive editor tasks and prototyping to an AI assistant that has direct programmatic access to the engine.
Prerequisites
- Unity Editor 2022 LTS or later installed on your development machine
- Node.js 18 or later for running the MCP server
- An MCP client such as Claude Desktop or Cursor
- The Unity project must have the MCP client package installed from the Unity Package Manager
Install the Unity MCP client package
Open your Unity project, go to Window > Package Manager, click the + button, choose 'Add package from git URL', and enter the package URL from the unity-editor-mcp repository.
Start the Unity Editor and enable the MCP connection
With your Unity project open, the MCP client package will expose a local socket or HTTP endpoint. Verify it is running by checking the Unity Console for a connection-ready message.
Install the MCP server via npx
The Node.js MCP server acts as the bridge between your AI client and the Unity Editor. Run it with npx to start without a global installation.
npx unity-editorConfigure your MCP client
Add the unity-editor server to your MCP client configuration file so it is launched automatically when the client starts.
Verify the connection in your AI client
Restart your MCP client and ask it to list available Unity tools. You should see tools for scene management, asset operations, and GameObject manipulation appear.
Unity Editor Examples
Client configuration
Claude Desktop configuration for the Unity Editor MCP server.
{
"mcpServers": {
"unity-editor": {
"command": "npx",
"args": ["unity-editor"]
}
}
}Prompts to try
Example prompts for interacting with Unity through the MCP server.
- "List all GameObjects in the current Unity scene"
- "Create a new cube at position (0, 1, 0) and name it 'Platform'"
- "Find all materials in the Assets folder and list their names"
- "Add a Rigidbody component to the Player GameObject"
- "Run the unit tests in the Unity test runner and show results"Troubleshooting Unity Editor
MCP server cannot connect to Unity Editor
Ensure the Unity project is open and the MCP client package is installed and enabled. Check the Unity Console for error messages. The server and editor must be running on the same machine for the default localhost connection.
npx unity-editor fails with package not found
Verify your Node.js version with node --version (18+ required). Clear the npx cache with npx clear-npx-cache and try again. As an alternative, clone the repository and run the server directly with node.
GameObjects are not found or scene appears empty
Make sure a scene is open in the Unity Editor (not just the project window). The MCP tools operate on the currently active scene. Open your scene via File > Open Scene before issuing commands.
Frequently Asked Questions about Unity Editor
What is Unity Editor?
Unity Editor is a Model Context Protocol (MCP) server that mcp server and client for llms to interact with unity projects It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Unity Editor?
Follow the installation instructions on the Unity Editor GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Unity Editor?
Unity Editor works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Unity Editor free to use?
Yes, Unity Editor is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Unity Editor Alternatives — Similar Developer Tools Servers
Looking for alternatives to Unity Editor? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Unity Editor in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Unity Editor?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.