Advanced Unity MCP from Code Maestro

Advanced Unity MCP from Code Maestro

Control Unity with AI through natural language commands.

70
Stars
5
Forks
70
Watchers
1
Issues
Advanced Unity MCP from Code Maestro enables direct interaction with the Unity Editor using natural language commands powered by AI. It bridges AI assistants like Code Maestro Desktop App, GitHub Copilot, Cursor, and others to the Unity Editor using the Model Context Protocol (MCP). Users can automate Unity tasks such as asset management, scene configuration, building projects, and more without manual intervention. The system supports both direct and relay server connections for flexible integration with various AI clients.

Key Features

Natural language command interface for Unity
Direct integration with AI assistants
Support for multiple AI clients (VS Code, Cursor, Claude Desktop, etc.)
Automated asset, prefab, and script management
Scene and GameObject creation and modification
Unity build and platform switching automation
Unity Profiler and performance tool control
Automated console and error management
Connection via direct link or relay server
Dashboard for managing connections and status

Use Cases

Automating repetitive Unity Editor tasks with AI commands
Rapid prototyping of scenes and assets by describing them in natural language
Building Unity projects for different platforms without manual setup
Managing and configuring Unity project settings through AI
Performing asset and prefab operations automatically
Debugging and analyzing Unity projects using AI-driven profiler and console tools
Enabling developers to interact with Unity via voice or text AI assistants
Integrating Unity project workflows with popular AI-enabled code editors
Reducing onboarding time for new team members by simplifying editor interactions
Streamlining collaboration by translating natural language project requirements into Unity actions

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"

Watch the video

Watch the video

Quick Start

1. Install the Package

Unity Package Manager → Add package from git URL for the version of Unity you are using

For Unity 2020-2022

https://github.com/codemaestroai/advanced-unity-mcp.git?path=Unity2020_2022

For Unity 6+

https://github.com/codemaestroai/advanced-unity-mcp.git?path=Unity6

2. Connect Your AI

  • Go to Code Maestro > MCP Dashboard in Unity.
  • For Code Maestro Desktop App: Select the "Code Maestro Desktop App" connection mode. The connection is automatic, and the dashboard will show the connection status.
  • For other clients (VS Code, Cursor, etc.): Select the "Other Clients" connection mode, then click Configure next to your preferred client.
  • Start giving commands!

Supported MCP Clients:

  • Code Maestro Desktop App (uses Direct Connection)
  • GitHub Copilot (VS Code)
  • Cursor
  • Windsurf
  • Claude Desktop
  • ...and any other MCP-capable copilot.

Clients other than the Code Maestro Desktop App use the Relay Server connection, which is installed automatically.

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. It supports two connection modes, which can be selected in the MCP Dashboard:

  • Direct Connection (for Code Maestro Desktop App): This is the recommended mode for Code Maestro users. The Unity Editor connects directly to the Code Maestro Desktop App's central hub. This method is faster and doesn't require a separate relay server.

    • Unity MCP Connector: Runs inside the Unity Editor to manage the connection.
  • Relay Server Connection (for other clients): For clients like VS Code or Cursor, the bridge uses a local TCP server and a relay server.

    • Bridge Server: Runs in the Unity Editor and provides API access over a local TCP port.
    • Relay Server: A small background process that handles communication between the AI client and the Unity Bridge Server. It is installed automatically.

The setup is automatic. Simply choose your connection mode in the dashboard.

💡 Tip: When multiple Unity projects are open, your AI assistant will automatically connect to the most recently opened Unity Editor instance.

Requirements

  • Unity 2022+
  • MCP Client (Such as GitHub Copilot or Cursor)

Made by Code MaestroJoin our DiscordReport IssuesLicense

Star History

Star History Chart

Repository Owner

codemaestroai
codemaestroai

Organization

Repository Details

Default Branch main
Size 3,545 KB
Contributors 2
License Other
MCP Verified Nov 12, 2025

Tags

Topics

ai ai-integration game-development mcp mcp-server unity

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Unity MCP

    Unity MCP

    AI-powered game development assistant bridging MCP and Unity.

    Unity MCP serves as an AI-powered assistant for game developers, acting as a bridge between MCP clients and the Unity engine. It enables natural chat-based interactions to perform various development tasks using large language models from multiple providers. The system offers tools for code assistance, debugging, and flexible deployment options, supporting both local and remote workflows. Its extensibility allows for the creation of custom MCP tools to enhance developer productivity in the Unity environment.

    • 510
    • MCP
    • IvanMurzak/Unity-MCP
  • MCP Unity Editor

    MCP Unity Editor

    A Model Context Protocol implementation for Unity game development.

    MCP Unity Editor implements the Model Context Protocol within the Unity Editor environment, enabling standardized management of model context. It provides tools and infrastructure for developers to build and integrate AI and model-driven workflows in Unity projects. Built with support for Unity and Node.js, it aims to facilitate robust context handling and protocol compliance for model interactions.

    • 1,075
    • MCP
    • CoderGamester/mcp-unity
  • Make MCP Server (legacy)

    Make MCP Server (legacy)

    Enable AI assistants to utilize Make automation workflows as callable tools.

    Make MCP Server (legacy) provides a Model Context Protocol (MCP) server that connects AI assistants with Make scenarios configured for on-demand execution. It parses and exposes scenario parameters, allowing AI systems to invoke automation workflows and receive structured JSON outputs. The server supports secure integration through API keys and facilitates seamless communication between AI and Make's automation platform.

    • 142
    • MCP
    • integromat/make-mcp-server
  • Mastra

    Mastra

    A TypeScript framework for building scalable AI-powered agents and applications.

    Mastra is a modern TypeScript-based framework designed for developing AI-powered applications and autonomous agents. It offers model routing to integrate over 40 AI providers, a graph-based workflow engine, advanced context management, and production-ready tools for observability and evaluation. Mastra features built-in support for authoring Model Context Protocol (MCP) servers, enabling standardized exposure of agents, tools, and structured AI resources via the MCP interface.

    • 18,189
    • MCP
    • mastra-ai/mastra
  • QGISMCP

    QGISMCP

    Integrate QGIS with Claude AI via Model Context Protocol

    QGISMCP connects QGIS to Claude AI through the Model Context Protocol (MCP), enabling seamless two-way communication between the GIS platform and the AI assistant. It features a QGIS plugin that sets up a socket server and a dedicated MCP server for processing commands, facilitating tasks such as project manipulation, layer management, and Python code execution directly from Claude. This integration empowers users to streamline project creation, layer loading, and advanced automation within QGIS through AI-driven interaction.

    • 691
    • MCP
    • jjsantos01/qgis_mcp
  • QuantConnect MCP Server

    QuantConnect MCP Server

    Official bridge for secure AI access to QuantConnect's algorithmic trading cloud platform

    QuantConnect MCP Server enables artificial intelligence systems such as Claude and OpenAI to interface with QuantConnect's cloud platform through an official, secure, and dockerized implementation of the Model Context Protocol (MCP). It facilitates automated project management, strategy writing, backtesting, and live deployment by exposing a comprehensive suite of API tools for users with valid access credentials. As the maintained official version, it ensures security, easy deployment, and cross-platform compatibility for advanced algorithmic trading automation.

    • 50
    • MCP
    • QuantConnect/mcp-server
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results