MCP Server Studio
Unity Editor automation for AI agents: scenes, prefabs, assets, shaders, Timeline, tests, builds.
Registry name: dev.shiranui-isuzu/unity-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"unity-mcp": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
"UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
}
}
}
}Run in your terminal:
claude mcp add unity-mcp -e UNITY_MCP_STATE_DIR='<UNITY_MCP_STATE_DIR>' -e UNITY_MCP_HOST='<UNITY_MCP_HOST>' -- dnx [email protected] --yesAdd to .cursor/mcp.json:
{
"mcpServers": {
"unity-mcp": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
"UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"unity-mcp": {
"type": "stdio",
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
"UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"unity-mcp": {
"command": "dnx",
"args": [
"[email protected]",
"--yes"
],
"env": {
"UNITY_MCP_STATE_DIR": "<UNITY_MCP_STATE_DIR>",
"UNITY_MCP_HOST": "<UNITY_MCP_HOST>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
UNITY_MCP_STATE_DIR | No | Where the Editor writes its descriptors. Set this only when the default location cannot be reached, such as from WSL. |
UNITY_MCP_HOST | No | Replaces 127.0.0.1 in the descriptor endpoint, for reaching an Editor on the Windows host from WSL. |