mcp-unity

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

What is mcp-unity?

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

Overview of mcp-unity

What it is

MCP Unity is an implementation of the Model Context Protocol (MCP) for the Unity Editor. It provides a bridge between Unity and a Node.js server that implements the MCP protocol, allowing AI agents such as Cursor, Windsurf, Claude Code, Codex CLI, GitHub Copilot, Google Antigravity, and OpenCode to execute operations within the Unity Editor.

Key features

  • Automatic integration with VSCode-like IDEs (Visual Studio Code, Cursor, Windsurf, Google Antigravity) by adding the Unity Library/PackedCache folder to the workspace, improving code intelligence and autocompletion for Unity packages.
  • Provides over 20 MCP server tools for manipulating and querying Unity scenes and GameObjects, including creating, selecting, updating, duplicating, deleting, reparenting, moving, rotating, and scaling GameObjects.
  • Tools for managing assets: adding assets to scenes, creating prefabs with optional MonoBehaviour scripts, creating and modifying materials, and assigning materials to renderers.
  • Scene management tools: creating, loading, saving, unloading, and deleting scenes, with support for additive loading.
  • Package and testing tools: installing packages via the Unity Package Manager and running tests using the Unity Test Runner.
  • Batch execution tool that can run multiple operations in a single request with optional rollback on failure.

Use cases

AI-assisted game development where an AI agent can directly manipulate Unity scenes, GameObjects, materials, and prefabs. Automating repetitive tasks such as creating multiple GameObjects, setting up scenes, or running tests. Integrating AI coding assistants with Unity projects to improve code intelligence and enable natural-language-driven scene editing.

Getting started

See the repository README for installation and configuration instructions.

License and pricing

License: MIT. Pricing: open source (free).

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/codergamestermcp-unity.svg)](https://yunodb.com/tools/codergamestermcp-unity?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/codergamestermcp-unity?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/codergamestermcp-unity.svg" alt="Featured on YunoDB" height="20"></a>