CoderGamester/mcp-unity

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

What it solves

MCP Unity provides a bridge between the Unity Editor and AI assistants, allowing AI agents to directly interact with, manipulate, and query your Unity projects. It eliminates the manual effort of switching between an IDE and the game engine, enabling AI to perform tasks like creating GameObjects, modifying components, and managing scenes.

How it works

The project implements the Model Context Protocol (MCP), using a Node.js server as a bridge. It integrates into the Unity Editor via a package and provides a set of tools and resources that AI clients (such as Cursor, Windsurf, and Claude Code) can call to execute operations within the Unity Editor.

Who it’s for

Unity developers who use AI coding assistants and want to integrate their game development workflow into their AI-driven development environment.

Highlights

  • Comprehensive Editor Control: Tools for managing GameObjects, components, materials, scenes, and packages.
  • IDE Integration: Automatically adds the Unity Library/PackedCache folder to the workspace to improve code intelligence and autocompletion for Unity packages.
  • Batch Execution: Supports executing multiple operations in a single request to reduce latency and ensure atomic operations.
  • Play Mode Control: Ability to start, pause, stop, or step through Unity's play mode via AI commands.
  • Resource Access: Provides AI agents with real-time access to the scene hierarchy, console logs, and the Asset Database.

Related

  • Project
  • Project
  • Project
  • Project
  • Project