Unity API Documentation
v2.1.1Accurate Unity API docs (2022/2023/6) for AI agents.
Values you need
| Variable | What it is | |
|---|---|---|
UNITY_VERSION | optional | Unity version to serve: 2022, 2023, or 6 (default: auto-detect or 6) |
UNITY_PROJECT_PATH | optional | Path to Unity project for auto-detecting version from ProjectSettings/ProjectVersion.txt |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add unity-api-mcp -- uvx unity-api-mcp==2.1.1Add to
claude_desktop_config.json{
"mcpServers": {
"unity-api-mcp": {
"args": [
"unity-api-mcp==2.1.1"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"unity-api-mcp": {
"args": [
"unity-api-mcp==2.1.1"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"unity-api-mcp": {
"args": [
"unity-api-mcp==2.1.1"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.unity-api-mcp]
command = "uvx"
args = ["unity-api-mcp==2.1.1"]For AI agents
- 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: search_unity_api, get_method_signature, get_namespace, get_class_reference, get_deprecation_warnings.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json