drio
Open app

Model Context Protocol (MCP) Server for Unity

Source

Catalog onlyCatalog onlySTDIO

Overview

The MCP Server is a Unity package that connects Unity with various AI assistants (Claude, Cursor AI, and Windsurf) through the Model Context Protocol, enabling seamless integration of AI services into Unity projects.

To use the MCP Server, install it via the Unity Package Manager or manually by cloning the repository. Configure your AI service credentials, start the server, and connect your AI assistant to the provided endpoint.

  • Connects Unity with multiple AI services: Claude AI, Cursor AI, Windsurf. - Provides access to Unity Console, Project Browser, Scene Hierarchy, and Inspector for AI services. - Customizable server settings including port number and update frequency.
  1. Integrating AI-driven features into Unity games.
  2. Utilizing AI for real-time error logging and asset management.
  3. Enhancing game development workflows with AI assistance.

Add to your AI client

Use these steps to connect Model Context Protocol (MCP) Server for Unity 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": {
    "unity-mcp-server-folkward99": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

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": {
    "unity-mcp-server-folkward99": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "unity-mcp-server-folkward99": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "unity-mcp-server-folkward99": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "unity-mcp-server-folkward99": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "unity-mcp-server-folkward99": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unity-mcp-server-folkward99"
      ]
    }
  }
}

FAQ

What AI services can I connect to MCP Server?

You can connect Claude AI, Cursor AI, and Windsurf.

How do I install the MCP Server?

You can install it using the Unity Package Manager or by manually cloning the repository.

Is there documentation available?

Yes, detailed documentation is provided in the Documentation folder of the project.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3231,"uuid":"6c95d688-e0b0-4ccc-ae7f-43ca6b5f05dc","name":"unity-mcp-server","title":"Model Context Protocol (MCP) Server for Unity","description":"","avatar_url":"https://avatars.githubusercontent.com/u/153935819?v=4","created_at":"$D2025-03-18T08:03:07.257Z","updated_at":"$D2025-03-18T15:17:38.241Z","status":"created","author_name":"folkward99","author_avatar_url":"https://avatars.githubusercontent.com/u/153935819?v=4","tags":"unity,mcp-server,ai-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/folkward99/unity-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"C#\",\"is_official\":false,\"latest_commit_time\":\"2025-03-18 11:47:51\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]