Skip to content
Coding & Deployment

Unity MCP

Lets Claude build scenes, write C# scripts and run tests inside the Unity editor.

Open sourceBy Coplay (community)
View on the web

What is it?

Unity MCP connects Claude to the Unity game engine. Ask for "a cube with physics that bounces when the player jumps on it" and Claude builds the GameObject, writes the C# script, attaches it and reads the console to fix any errors. It covers scenes, prefabs, materials, animation, UI, tests and builds, with around 40 to 50 tools.

Setup happens inside Unity. Add the package from its git URL in Package Manager, then open Window > MCP for Unity and click Configure All Detected Clients, which wires up Claude Code for you. It needs Unity 2021.3 or later, Python and uv, and Unity has to be open while you work.

It's a community project from Coplay and isn't affiliated with Unity Technologies. Unity has since released its own official MCP inside the Unity AI Assistant package (Unity 6 and later), but this is the one most developers are using.

What Claude can do once it's connected

  • Create and edit scenes and GameObjects from a description
  • Write, edit and check C# scripts
  • Manage assets, materials, shaders, prefabs and packages
  • Read the Unity console to find and fix errors
  • Run tests, profile performance and kick off builds

Install in Claude Code

Open your terminal in the project folder and run:

Command
claude mcp add --transport http unityMCP http://localhost:8080/mcp

Other ways to set it up:

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

Who it's for

Game developers and hobbyists building in Unity.

Best for

  • Prototyping game ideas
  • Writing and fixing C# scripts
  • Setting up scenes fast
  • Debugging from the console

Why it made the list

It's the most popular game-engine MCP by a long way, and it lets Claude actually build inside the editor.

More MCPs like this

  • Lets Claude build 3D scenes, models and materials in Blender from a prompt.

    Open source
  • GitHub MCP

    Coding & Deployment

    Lets Claude open pull requests, read issues and check builds in your GitHub repos.

    Free
  • Serena

    Coding & Deployment

    Lets Claude find and edit code by meaning, the way an IDE does, in big codebases.

    Open source
  • Atlassian Rovo MCP

    Coding & Deployment

    Search Confluence and create or update Jira tickets without leaving Claude.

    Freemium