Unity MCP Server
v1.9.0Unity MCP Server: 156 tools, 47 skills — scenes, prefabs, Addressables, Netcode, AI/ML.
Values you need
| Variable | What it is | |
|---|---|---|
UNITY_PROJECT_PATH | required | Absolute path to your Unity project root (required) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add unity-mcp-server -e 'UNITY_PROJECT_PATH=<UNITY_PROJECT_PATH>' -- npx -y unity-mcp-server@1.9.0Add to
claude_desktop_config.json{
"mcpServers": {
"unity-mcp-server": {
"args": [
"-y",
"unity-mcp-server@1.9.0"
],
"command": "npx",
"env": {
"UNITY_PROJECT_PATH": "<UNITY_PROJECT_PATH>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"unity-mcp-server": {
"args": [
"-y",
"unity-mcp-server@1.9.0"
],
"command": "npx",
"env": {
"UNITY_PROJECT_PATH": "<UNITY_PROJECT_PATH>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "UNITY_PROJECT_PATH",
"id": "unity-project-path",
"password": true,
"type": "promptString"
}
],
"servers": {
"unity-mcp-server": {
"args": [
"-y",
"unity-mcp-server@1.9.0"
],
"command": "npx",
"env": {
"UNITY_PROJECT_PATH": "${input:unity-project-path}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.unity-mcp-server]
command = "npx"
args = ["-y", "unity-mcp-server@1.9.0"]
env = { "UNITY_PROJECT_PATH" = "<UNITY_PROJECT_PATH>" }For AI agents
- Ask the user for: UNITY_PROJECT_PATH. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_project_info, list_build_scenes, read_agent_docs, get_player_settings, list_packages, get_quality_settings, get_scripting_defines, list_assemblies, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json