Claude Code and MCP for Unity: setup tutorial

Learn to connect Claude Code to Unity with MCP for Unity, install Python and UV prerequisites, and check the connection by identifying the open scene.

Player not loading? Watch on YouTube

This tutorial walks through connecting Claude Code to the Unity Editor with MCP for Unity by CoplayDev. The supplied description identifies the plugin as free and open source. It provides a bridge for a coding assistant to interact with a Unity project; the walkthrough uses a local MCP server.

Installation starts in Unity's Package Manager with the option to install a package from a Git URL. The presenter then opens MCP for Unity's local setup window and checks that Python and the UV package manager are installed. His machine already has both, but he says the window offers installation options when they are missing.

The plugin's main window contains configuration and server settings. Claude Code already appears configured in this example. The presenter points out controls to configure detected clients and install Unity skills, then starts the server. In Claude Desktop's Code tab, he opens a coding session whose working directory matches the Unity project folder.

To check the connection, he asks Claude which level is open. After accepting edits and enabling automatic permissions, he reports that Claude identifies the demo interior from the Polygon Sci-Fi Horror asset pack. He ends by requesting a first-person camera controller with an F-key flashlight toggle. The transcript does not show the resulting controller or a test of its behavior.