mcp-unity

Level ALocal

Model Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs

Overview

mcp-unity implements the Model Context Protocol for the Unity Editor, bridging Unity and a Node.js MCP server so AI assistants like Cursor, Windsurf, and Claude Code can operate on Unity projects. It offers tools to query and edit scenes and GameObjects, manage components and materials, create prefabs and scenes, run tests, recompile scripts, and control play mode, and can add Unity package caches to IDE workspaces for better code intelligence.

⭐ 2kAI GenerationC#Repo ↗Updated 2026-10-11

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "codergamester-mcp-unity": {
      "command": "node",
      "args": [
        "ABSOLUTE/PATH/TO/mcp-unity/Server~/build/index.js"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/CoderGamester/mcp-unity

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "codergamester-mcp-unity": {
      "command": "node",
      "args": [
        "ABSOLUTE/PATH/TO/mcp-unity/Server~/build/index.js"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers