Requires Claude Code to be installed first. This sets up the Unity MCP server so Claude can interact with the Unity Editor — create GameObjects, add components, modify scenes, and run editor commands.
Step 1: Install Node.js (if you haven't)
2
Run the installer, click Next through everything
3
Verify it works — open Command Prompt and run:
node --version
npm --version
Step 2: Install the Unity MCP Server
4
Open Command Prompt and install the Unity MCP server globally:
npm install -g @anthropic/unity-mcp-server
Step 3: Install the Unity Editor Package
5
Open your Unity project in the Unity Editor
6
Go to Window → Package Manager
7
Click the + button in the top-left → "Add package from git URL..."
8
Paste this URL and click
Add:
https://github.com/anthropics/unity-mcp.git
If this exact URL doesn't work, check the Anthropic GitHub for the latest Unity MCP package URL.
9
Once installed, go to Window → Unity MCP (or look for it in the menu). Click Enable to start the MCP connection.
Step 4: Configure Claude Code
10
Open your Claude Code settings file:
%USERPROFILE%\.claude\settings.json
11
Add the Unity MCP server config:
{
"mcpServers": {
"Unity": {
"command": "unity-mcp-server",
"args": []
}
}
}
If you also have the Roblox Studio MCP, add both inside the "mcpServers" object:
{
"mcpServers": {
"Roblox_Studio": {
"url": "http://localhost:3002/mcp"
},
"Unity": {
"command": "unity-mcp-server",
"args": []
}
}
}
12
Open Command Prompt, navigate to your Unity project folder, and run:
cd Desktop\MyUnityProject
claude
You should see "Unity" listed as a connected MCP server.
Step 5: Test It!
13
With Unity open and Claude Code running, try a command:
Prompt: "Create a new empty GameObject called 'GameManager' and add a C# script to it that prints 'Hello from Claude!' in Start()"
Claude should create the script file AND add it to a GameObject in your scene.
What can Claude do with Unity MCP?
- Create and modify C# scripts
- Create GameObjects and add components
- Modify scene hierarchy
- Read and edit project settings
- Create prefabs and ScriptableObjects
- Run Editor scripts and custom tools
Important: Unity must be open with the MCP package enabled before starting Claude Code. If Claude can't connect, try: 1) Restart Unity, 2) Check Window → Unity MCP is enabled, 3) Restart Claude Code.
Tip: Always tell Claude your Unity version (e.g. "Unity 6" or "2022 LTS") and render pipeline (URP, HDRP, or Built-in) so it generates compatible code. Example: "I'm using Unity 6 with URP. Create a dissolve shader."