-
-
Notifications
You must be signed in to change notification settings - Fork 294
Getting Started
Ivan Murzak edited this page Dec 29, 2025
·
5 revisions
Now that you have installed the plugin, let's connect your AI agent to Unity.
Open your Unity Project. You should see a new menu item: Window -> AI Game Developer (Unity-MCP).
Open this window. It acts as the dashboard for the MCP link.
- Status: Should show "Listening" or "Connected".
-
Port: Default is
8080.
- Ensure Unity is open.
- Open Claude Desktop.
- Look for the 🔌 (plug) icon or MCP settings.
- If configured correctly (see Installation), Claude should see
Unity-MCPtools.
- Open the IDE settings.
- Navigate to "MCP" or "Models".
- Ensure the
Unity-MCPserver is added. - If added, the indicator should be green.
In your AI chat (Claude/Cursor), type:
"Create a red cube at position (0, 0, 0) and name it 'MyFirstCube'."
- The AI analyzes your request.
- It calls the
GameObject.CreateandAssets.Material.Create(or modifying material) tools exposed by Unity. - You should see a red cube appear instantly in your Unity Scene!
Once connected, try these more complex requests:
Level Design:
"Create a 5x5 grid of cylinders with random heights to simulate a city skyline."
Physics:
"Add Rigidbody components to all cylinders and create a plane below them."
Debugging:
"Read the console logs and tell me if there are any errors."
Scripting:
"Create a script 'Rotator.cs' that rotates an object and attach it to the 'MyFirstCube'."
- AI says "I don't have tools": Restart the AI Client after Unity is open.
- Connection Refused: Check if the Port (8080) is used by another app. Change it in the AI Game Developer window.
- "Server Disconnected": The Unity Plugin must be in Play Mode or Edit Mode (not compiling).