MCP For Unity
Enables AI clients to interact with and control the Unity Editor through a Python MCP server bridge, allowing natural language-based Unity project manipulation.
README
MCP For Unity
This project implements a Model Context Protocol (MCP) server that acts as a bridge to the Unity Editor.
Structure
- Server/: Contains the Python MCP server that AI clients connect to.
- Scripts/: Contains the Unity C# scripts.
- package.json: Unity Package definition file.
Installation
1. Unity Setup (via Package Manager)
You can install the Unity integration directly from GitHub using the Unity Package Manager.
- Open Unity.
- Go to Window > Package Manager.
- Click the + button in the top-left corner.
- Select Add package from git URL....
- Enter the following URL:
https://github.com/yunuscan/MCPForUnity.git - Click Add.
2. Python Server Setup (via Unity Editor)
- In Unity, go to UnityMCP > Dashboard.
- Click Install 'uv' and Requirements.
- Click Start Python MCP Server (uv run) to test the connection.
3. Client Configuration (VS Code / Copilot / Claude)
To use this with your AI assistant:
- Open the UnityMCP > Dashboard window.
- Click Configure for VS Code (Copilot).
- This will generate a
.vscode/mcp.jsonfile in your project root. - It will also create a
tasks.jsonto easily run the server.
- This will generate a
- Alternatively, copy the JSON config manually for Claude Desktop or Cursor.
Usage
- Ensure the Unity project is open.
- Connect your AI client using the generated configuration.
- Ask your AI to "Create a cube" or "Check console logs".
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.