MCP Unity Editor (Game Engine)
MCP Server to integrate Unity Editor game engine with different AI Model clients (e.g. Claude Desktop, Windsurf, Cursor)
Overview
MCP Unity is a server implementation of the Model Context Protocol for the Unity Editor, enabling AI assistants to interact with Unity projects seamlessly. It acts as a bridge between Unity and a Node.js server, allowing AI agents like Claude, Windsurf, and Cursor to perform operations within the Unity Editor.
To use MCP Unity, install it via the Unity Package Manager or manually by cloning the repository. After installation, run the server from the Unity Editor or in standalone mode using Node.js. Configure your AI clients to connect to the MCP Unity server.
- execute_menu_item: Allows AI assistants to execute Unity menu items tagged with the MenuItem attribute. - Integration with multiple AI agents (Claude, Windsurf, Cursor). - Future updates will include additional tools and features.
- Automating repetitive tasks in Unity using AI.
- Enhancing game development workflows with AI assistance.
- Executing complex menu commands through AI agents.
Add to your AI client
Use these steps to connect MCP Unity Editor (Game Engine) in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-unity-codergamester": {
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-unity-codergamester": {
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-unity-codergamester": {
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-unity-codergamester": {
"type": "stdio",
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-unity-codergamester": {
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-unity-codergamester": {
"command": "node",
"args": [
"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js"
]
}
}
}FAQ
**What Unity version is required?**
Unity 2021.3 or later is required to use MCP Unity.
**Is Node.js necessary?**
Yes, Node.js 18 or later is required to run the server.
**Can I contribute to MCP Unity?**
Yes! Contributions are welcome, and you can submit a Pull Request or open an Issue.