Unity MCP Server Integration

Unity AI Game Development MCP Server

Contact us to host your MCP Server in FlowHunt

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.

FlowHunt Logo

Ready to grow your business?

Start your free trial today and see results within days.

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

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

UnityMCPIntegration MCP Server
UnityMCPIntegration MCP Server

UnityMCPIntegration MCP Server

UnityMCPIntegration connects AI agents with the Unity game engine, enabling real-time control, automated testing, procedural content generation, and AI-driven g...

4 min read
Unity MCP +5
Unity3D
Unity3D

Unity3D

Supercharge your Unity Editor with FlowHunt’s AI agent integration via the MCP Unity package. Automate scene management, asset operations, code intelligence, an...

4 min read
AI Unity3D +3
Verodat MCP Server
Verodat MCP Server

Verodat MCP Server

The Verodat MCP Server bridges AI assistants with Verodat’s powerful data management, allowing seamless data access, automation, and workflow integration direct...

4 min read
AI Data Management +4