
unity mcp template
Simple template project for controlling Unity via MCP
Repository Info
About This Server
Simple template project for controlling Unity via MCP
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
!GitHub License
Unity MCP Template
!mcp-template-ezgif com-resize
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)
Quick Start
Clone the repository
git clone https://github.com/dunward/unity-mcp-templateInstall dependencies
cd unity-mcp-template
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.