Unity API Documentation

v2.1.1
io.github.Codeturion/unity-api-mcp Checked 16 hours ago Published 1 month ago

Accurate Unity API docs (2022/2023/6) for AI agents.

Values you need

VariableWhat it is
UNITY_VERSIONoptional Unity version to serve: 2022, 2023, or 6 (default: auto-detect or 6)
UNITY_PROJECT_PATHoptional 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.1
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: search_unity_api, get_method_signature, get_namespace, get_class_reference, get_deprecation_warnings.
  4. 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