About
AI Control for Unity
README
Control Unity with AI.
This project implements a Model Context Protocol (MCP) server that acts as a bridge between AI agents (like Claude Desktop, Cursor, or custom LLM clients) and the Unity Engine.
It allows an AI to see, create, modify, and control everything in your Unity scene in real-time.
🌟 Features
- God Mode Control: Create primitives, instantiate prefabs, set parents, rotate, scale, and move objects.
- Editor & Play Mode: Works in both! Modify the scene while the game is running or while editing level design.
- Full Reflection: Inspect components, read fields, and modify values (int, float, bool, string, Vector3) dynamically.
- Logic Execution: Invoke any public method on any component.
- Tag Management: Create and assign tags on the fly.
- Cleanup Tools: Delete objects to reset scenes.
🛠️ Installation
1. Unity Setup (/Assets)
- Copy the
Assets/Scripts/MCPfolder into your Unity project. - Add the
MCPBridgescript to any GameObject in your scene (or create an empty one named "MCPBridge"). - The server runs on
http://localhost:8080.
2. Running the Server
Option A: The Easy Way (Unity Editor)
- In Unity, click Tools > Unity MCP Server in the top menu.
- Click the green Start Server button.
- A terminal window will open showing the server logs.
Option B: The Manual Way (Terminal)
- Navigate to the
mcp-serverfolder. - Run
npm install(first time only). - Run
npm start.
3. Client Configuration
Add the server to your MCP Client config (e.g., claude_desktop_config.json).
Important: You need to point to the built file.
{
"mcpServers": {
"unity": {
"command": "node",
"args": ["E:/GAME UNITY/MCP SERVER/mcp-server/dist/index.js"]
}
}
}
(Note: Replace the path with the actual absolute path to your project)
📚 Available Tools
| Tool | Description |
|---|---|
create_primitive |
Spawn basic shapes (Cube, Sphere, etc.) |
instantiate_prefab |
Spawn complex assets from Resources |
set_object_transform |
Move objects (Position) |
set_object_rotation |
Rotate objects (Euler Angles) |
set_object_scale |
Resize objects |
set_parent |
Organize hierarchy |
inspect_component |
Read public variables of a script |
edit_component |
Change variable values (speed, health, etc.) |
invoke_method |
Call functions (Jump(), Attack(), Reset()) |
add_tag / set_object_tag |
Manage tags |
delete_object |
Remove objects from the scene |
📝 Example Prompts
- "Create a red cube and place it at (0, 5, 0)."
- "Build a tower of 10 spheres stacked on top of each other."
- "Inspect the PlayerController on the 'Hero' object and set speed to 20."
- "Make the 'Main Camera' look at the 'Hero'."
⚠️ Requirements
- Unity 2020.3 or later (tested on 6000.0.26f1).
- Node.js 16+.
Installing Antigravity Unity
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/azide1337/Antigravity-unity-mcp-serverFAQ
Is Antigravity Unity MCP free?
Yes, Antigravity Unity MCP is free — one-click install via Unyly at no cost.
Does Antigravity Unity need an API key?
No, Antigravity Unity runs without API keys or environment variables.
Is Antigravity Unity hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Antigravity Unity in Claude Desktop, Claude Code or Cursor?
Open Antigravity Unity on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
Roblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovOpencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
Compare Antigravity Unity with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
