Advanced Unity MCP
A bridge that enables controlling Unity Editor through natural language commands via AI assistants, allowing users to create materials, build projects, manage scenes, and configure settings without manual interaction.
README
Advanced Unity MCP from Code Maestro
Control Unity with AI through natural language commands.
Instead of clicking through menus and manually setting up GameObjects, just tell your AI assistant what you want and watch it happen automatically.
"Create a red material and apply it to a cube"
"Build the project for Android"
"Make a new scene with a camera and directional light"
Quick Start
1. Install the Package
Unity Package Manager → Add package from git URL:
https://github.com/codemaestroai/advanced-unity-mcp.git
2. Connect Your AI
- Go to
Code Maestro > MCP Dashboardin Unity - Click Configure next to your preferred MCP client
- Start giving commands!
Supported MCP Clients: Code Maestro, GitHub Copilot, Cursor, Windsurf, Claude Code
What Unity MCP Can Do
Core Editor Control - Play/pause/stop game, execute menu items, read/clear console messages
Asset & Scene Management - Create/modify/delete materials, prefabs, scripts, manage scenes and GameObjects
Build & Platform Tools - Build settings, platform switching, Android Debug Bridge operations
Project Configuration - Unity packages, project settings, PlayerPrefs, external tools
Performance Analysis - Unity Profiler control for performance bottlenecks
Examples
"Check the console for any errors""Create a script called PlayerMovement with WASD controls""Switch the build target to iOS""Add a rigidbody component to the selected object""Create a new material with metallic properties""Save the current GameObject as a prefab""Clear all console messages and check for warnings"
How It Works
Unity MCP bridges your Unity Editor with AI assistants using the Model Context Protocol. Two components work together:
- Bridge Server - Runs in Unity Editor, provides API access
- Relay Server - Handles communication with MCP clients
The setup is automatic once you install the package and configure your MCP client.
Requirements
- Unity 2022+
- MCP Client (Such as GitHub Copilot or Cursor)
- Python 3.12+ and UV package manager installed and configured in the environment path
Troubleshooting
Installing Python and UV
Windows:
- Download Python from python.org
- During installation, check "Add Python to PATH"
- Open Command Prompt and run:
# Verify Python is installed python --version # Install UV pip install uv
macOS: Install Python using Homebrew:
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python
brew install python@3.12
# Install UV
pip3 install uv
Linux:
# Ubuntu/Debian
sudo apt update
sudo apt install python3.12 python3-pip
# Install UV
pip3 install uv
Verify Installation
Open a terminal and run:
python --version # Should show Python 3.12+
uv --version # Should show UV version
Common Issues
"python is not recognized" error:
- Make sure Python is added to your system PATH
- On Windows, restart your computer after installation
- On macOS/Linux, restart your terminal
"uv is not recognized" error:
- Install UV with:
pip install uvorpip3 install uv - On Windows, you may need to add Python Scripts folder to PATH:
C:\Users\[YourUsername]\AppData\Local\Programs\Python\Python312\Scripts
Permission errors on macOS/Linux:
- Use
pip3 install --user uvto install for current user only
Made by Code Maestro • Join our Discord • Report Issues
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。