Unity MCP Template
A template project demonstrating interaction between a TypeScript-based MCP server and a Unity client.
Unity MCP Template
This is a simple example project demonstrating interaction between a TypeScript-based MCP server and Unity. You can build and configure your own tools to expand and develop further.
Create more tools your own!
Quick Start
unity-mcp-sample is a Unity example project. To minimize version-related issues and ensure compatibility with legacy versions, it does not use packages like NewtonsoftJSON. Additionally, the EditorWindow is implemented using IMGUI. The MCP can be managed through the UnityMCP-ShowWindow at the top.
Build MCP Server
within the unity-mcp-server
npm install
npm run build
Add MCP in Claude Desktop
Open Claude Desktop Settings, and Developer-Edit Config
{
"mcpServers": {
"unity-mcp": {
"command": "node",
"args":["F:/unity-mcp-template/unity-mcp-server/dist/index.js"]
}
}
}
Create your own tools!
Both input data structure should be same.
Unity
Refer to CreateObjectTools and create the tool you want.
Typescript
Refer to createObject and create the tool you want.
TODO List
- Enable Unity to send result messages to MCP
- Discussion here
Change TCP structure (currently implemented with client-server reversed due to a bug in the TypeScript SDK)Unity (Current : TCP Server, TODO : TCP Client)MCP (Current : TCP Client, TODO : TCP Server)
Related Servers
Context Portal MCP (ConPort)
A server for managing structured project context using SQLite, with support for vector embeddings for semantic search and Retrieval Augmented Generation (RAG).
microCMS
Manage content on the microCMS headless CMS using its content and management APIs.
Juniper Junos MCP Server
An MCP server for interacting with Juniper Junos network devices using LLMs.
YAPI MCP PRO
An MCP server for the YApi interface management platform, enabling direct operation and full lifecycle management within AI editors.
Crypto_MCP
A server for cryptographic operations like encryption, decryption, and hashing.
MCP-RAGNAR
A local MCP server implementing Retrieval-Augmented Generation (RAG) with sentence window retrieval and support for multiple file types.
CocoaPods Package README
Retrieve README files and package information from CocoaPods.
PGYER
MCP Server for PGYER platform, supports uploading, querying apps, etc.
Authless Remote MCP Server
A remote MCP server without authentication, designed for easy deployment on Cloudflare Workers.
Last9
Seamlessly bring real-time production context—logs, metrics, and traces—into your local environment to auto-fix code faster.