MCP for Unity

Most popular #9Game Development Community / third party Maintenance: Active

MCP servers are programs that run with your permissions and may read your files or data or run commands. Do not assume that any server is safe or official: check the developer and the source code, review the permissions and tools it exposes, and give it the least access possible (a specific folder, a read-only access token) before running it.

Description

An MCP bridge between AI assistants and the Unity editor: creating scenes and objects, editing C# scripts, managing assets, running tests, profiling and building, in natural language from any MCP client.

Security and permission notes

It changes the Unity project directly; use version control and save a copy before large changes.

Installation and connection settings

Requirements: Unity from 2021.3 LTS to 6.x, and Python 3.10 or later through uv.

From the official README
# In Unity: Package Manager > Add package from git URL:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
# then: Window > MCP for Unity > Configure All Detected Clients

Tools it provides (selection)

  • Managing scenes and objects
  • Editing C# scripts
  • Managing assets
  • Running tests
  • Profiling and building