home / mcp / unity mcp template server
A TypeScript MCP server that interops with Unity to exchange object data and execute custom object tools.
Configuration
View docs{
"mcpServers": {
"dunward-unity-mcp-template": {
"command": "node",
"args": [
"F:/unity-mcp-template/unity-mcp-server/dist/index.js"
]
}
}
}You can run a TypeScript MCP server that talks to Unity, enabling you to send data, receive results, and orchestrate tools across the editor and runtime. This server acts as a bridge between Unity and a TypeScript-based MCP runtime, making it easy to implement custom object tools and extend your workflow.
You interact with the Unity MCP workflow by running the local MCP server and connecting your Unity project through the MCP client. The server exposes a standard interface that lets Unity send object data to the MCP, receive processing results, and trigger tool executions. You can create your own tools to expand functionality, and Unity will coordinate with the server to exchange input and output data. Start by building and launching the MCP server, then configure your client (Unity editor or Claude Desktop) to point at the local server so you can send requests and receive responses in real time.
Prerequisites: ensure you have Node.js and npm installed on your development machine. You will build the MCP server and then run it locally.
# 1) Install dependencies for the MCP server
npm install
# 2) Build the MCP server bundle
npm run buildConfigure Claude Desktop to connect to your local MCP server using the provided command and path. This enables Claude Desktop to manage the MCP server alongside your Unity projects.
{
"mcpServers": {
"unity-mcp": {
"command": "node",
"args":["F:/unity-mcp-template/unity-mcp-server/dist/index.js"]
}
}
}