Unity MCP Server Integration

Seamlessly connect the Unity Editor to AI assistants and supercharge your game development workflow with automation, AI-powered code and asset management, and intelligent productivity tools.

Unity MCP Server Integration

What does “Unity” MCP Server do?

The Unity MCP Server acts as a bridge between the Unity Editor game engine and various AI Model clients such as Claude Desktop, Windsurf, and Cursor. By connecting AI assistants to the Unity Editor, it enables automation, intelligent assistance, and enhanced development workflows within the Unity environment. Developers can leverage this server to enable tasks like code generation, project management, asset manipulation, or automated testing directly from AI models. The server empowers seamless integration between Unity and external AI tools, streamlining development, reducing manual repetitive actions, and boosting productivity for game developers and technical artists.

List of Prompts

No information about prompt templates was found in the repository.

List of Resources

No explicit list of MCP resources is documented in the repository.

List of Tools

No explicit list of tools or detailed server.py code is visible in the repository overview.

Use Cases of this MCP Server

  • Automated Code Generation: AI clients can generate Unity C# scripts and insert them directly into the project, saving developers time on boilerplate and common coding tasks.
  • Asset Management: Automate asset importing, organization, or modification via AI-driven commands, reducing manual project setup.
  • Project Configuration: Quickly configure Unity project settings or build configurations through AI instructions instead of navigating menus.
  • Testing and Debugging: Trigger play mode, run tests, or gather logs automatically via AI, streamlining the QA process.
  • Scene Manipulation: Directly modify or generate scenes, objects, and components from AI suggestions, enhancing rapid prototyping.

How to set it up

Windsurf

  1. Ensure Node.js and Unity Editor are installed.
  2. Open your Windsurf configuration file.
  3. Add the Unity MCP Server with the following JSON snippet in your mcpServers section:
    {
      "unity-mcp": {
        "command": "npx",
        "args": ["@unity/mcp-server@latest"]
      }
    }
    
  4. Save the configuration file and restart Windsurf.
  5. Verify Unity MCP Server is running and accessible.

Securing API Keys:

{
  "unity-mcp": {
    "command": "npx",
    "args": ["@unity/mcp-server@latest"],
    "env": {
      "UNITY_LICENSE_KEY": "${UNITY_LICENSE_KEY}"
    },
    "inputs": {
      "api_key": "${UNITY_LICENSE_KEY}"
    }
  }
}

Claude

  1. Make sure Node.js and Unity Editor are set up.
  2. Locate Claude’s configuration file.
  3. Add Unity MCP Server under mcpServers:
    {
      "unity-mcp": {
        "command": "npx",
        "args": ["@unity/mcp-server@latest"]
      }
    }
    
  4. Save changes and restart Claude.
  5. Confirm connection to the server.

Cursor

  1. Install Node.js and Unity Editor if not already present.
  2. Open Cursor’s settings/configuration JSON.
  3. Add the server:
    {
      "unity-mcp": {
        "command": "npx",
        "args": ["@unity/mcp-server@latest"]
      }
    }
    
  4. Save and restart Cursor.
  5. Check that the Unity MCP Server appears in available servers.

Cline

  1. Ensure Node.js and Unity Editor are installed.
  2. Edit the Cline config file.
  3. Insert:
    {
      "unity-mcp": {
        "command": "npx",
        "args": ["@unity/mcp-server@latest"]
      }
    }
    
  4. Save and restart Cline.
  5. Test the server connection.

Note: Always use environment variables (e.g., UNITY_LICENSE_KEY) to store sensitive information like API keys.

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "unity-mcp": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “unity-mcp” to the actual name of your MCP server and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
OverviewOverview based on README and repo summary
List of PromptsNo prompts/templates documented
List of ResourcesNo explicit resources documented
List of ToolsNo explicit tools listed or visible in server.py
Securing API KeysExample given for env variables in config
Sampling Support (less important in evaluation)No info on sampling support

Based on the documented information and the structure of the repository, MCP Unity provides a solid integration concept but lacks in-depth public documentation of prompts, tools, and resources. Its clear focus on Unity and the presence of a license and configuration examples are strong points, but the lack of specifics limits its immediate utility without further exploration.

MCP Score

Has a LICENSE✅ (MIT)
Has at least one tool
Number of Forks71
Number of Stars628

Frequently asked questions

What is the Unity MCP Server?

The Unity MCP Server bridges the Unity Editor and various AI model clients, allowing automation and AI-powered assistance directly within your Unity projects. It enables tasks like code generation, asset management, and project configuration from AI assistants.

What are common use cases for the Unity MCP Server?

Common use cases include automated code generation, asset importing and organization, project configuration, running tests, gathering logs, and direct scene or object manipulation from AI instructions.

How do I securely configure API keys for the Unity MCP Server?

Always use environment variables (such as UNITY_LICENSE_KEY) in your configuration files to keep sensitive information secure. Refer to your platform’s configuration example for details.

Can I use the Unity MCP Server with multiple AI clients?

Yes, you can connect the Unity MCP Server to Claude Desktop, Windsurf, Cursor, Cline, and other compatible AI tools, enabling AI-powered workflows across your development environment.

Is there a list of ready-made prompts or tools for Unity MCP?

The current documentation does not specify prompt templates or tools. You can define your own flows and instructions within your AI client or FlowHunt setup to tailor the experience to your needs.

Boost Unity Development with FlowHunt's Unity MCP Server

Automate asset management, code generation, and project configuration in Unity by integrating with AI assistants through FlowHunt's Unity MCP Server.

Learn more