# Unity API Documentation [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/Codeturion/unity-api-mcp  
**GitHub Stars:** 65  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/unity-api-documentation

## Description
Accurate Unity API docs (2022/2023/6) for AI agents. Prevents hallucinated signatures.

## Tools
Capabilities this server exposes over MCP:

- **search_unity_api** — Search Unity API documentation by keyword.

    Use this to find Unity classes, methods, properties, and fields.
    Returns ranked results with summaries.

    Args:
        query: Search terms (e.g. "Physics Raycast", "SceneManager load", "Transform position")
        n_results: Max results to return (default 5, max 20)
        member_type: Optional filter — "type", "method", "property", "field", or "event"
    
- **get_method_signature** — Look up the exact signature of a Unity API member by fully-qualified name.

    Use this when you know the specific API (e.g. from autocomplete or docs reference)
    and need its exact parameters, return type, and deprecation status.

    Args:
        fqn: Fully-qualified name, e.g. "UnityEngine.Physics.Raycast" or
             "UnityEngine.SceneManagement.SceneManager.LoadScene"
             Method overloads include params: "UnityEngine.Physics.Raycast(UnityEngine.Ray)"
    
- **get_namespace** — Find the correct namespace and using directive for a Unity class or member.

    Use this when you need to know which namespace to import for a Unity type.

    Args:
        name: Class or member name, e.g. "SceneManager", "NavMeshAgent", "Rigidbody"
    
- **get_class_reference** — Get a complete reference card for a Unity class — all public methods, properties, fields, and events.

    Use this when you want to see everything available on a class at a glance.

    Args:
        class_name: Class name with or without namespace. Examples: "Rigidbody", "Tilemap", "InputAction", "SceneManager"
    
- **get_deprecation_warnings** — Check whether a Unity class, method, or property is deprecated, and find the replacement.

    Use this before using any API you suspect might be outdated. Catches common mistakes
    like using FindObjectOfType (deprecated) instead of FindAnyObjectByType.

    Args:
        name: Class or member name to check. Examples: "WWW", "FindObjectOfType", "GUIText",
              "UnityEngine.Component.BroadcastMessage"
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "unity-api-documentation": {
    "command": "uvx",
    "args": ["unity-api-mcp"]
  }
}
```

## Documentation

## What the Unity API Documentation MCP server does

The Unity API Documentation MCP server supplies AI agents with reference data for Unity APIs instead of requiring them to infer signatures from examples or project code. Its databases cover Unity 2022 LTS, Unity 2023, and Unity 6, with separate databases for Unity 6 minor streams when available.

Coverage includes UnityEngine and UnityEditor modules, along with parsed package APIs for Input System, Addressables, uGUI, TextMeshPro on Unity 6, AI Navigation, and Netcode. The database contains class and member records, method signatures, and deprecation information. Third-party assets such as DOTween, VContainer, and Newtonsoft.Json are outside the stated coverage.

## How it works

At startup, the server chooses the Unity version to serve. UNITY_VERSION takes precedence and accepts values such as `2022`, `2023`, `6`, `6000.3`, or a full Unity 6 version. If that variable is absent, UNITY_PROJECT_PATH points to a Unity project whose `ProjectSettings/ProjectVersion.txt` is read and mapped to a supported database version. Without either setting, the default is Unity 6.

If the selected database is not already cached, the server downloads it from GitHub to `~/.unity-api-mcp/`. Cached data is checked against the current release when the server starts. Unity 6 minor streams use their own database when published and fall back to the generic Unity 6 database otherwise. Tool requests query the selected version's SQLite database.

## Setup and configuration

Configure the server in an MCP settings file such as `.mcp.json` or `mcp.json`. The documented launcher uses `uvx unity-api-mcp`; installation through `pip` is also supported. Set `UNITY_VERSION` to select a release explicitly, or set `UNITY_PROJECT_PATH` to derive the version from an existing project. A Unity editor installation is not required.

The first launch downloads approximately 20–30 MB for the selected database. The project-path option is useful when the MCP configuration should follow the version recorded by a specific Unity project rather than a manually maintained setting.

## Tools and capabilities

The Unity API Documentation MCP server exposes these tools:

- `search_unity_api` finds APIs using a keyword or description.
- `get_method_signature` returns exact method signatures and overloads.
- `get_namespace` identifies the `using` directive for a type or API.
- `get_class_reference` returns a class reference with its methods, fields, and properties.
- `get_deprecation_warnings` checks whether an API is obsolete and reports the associated warning information.

Use the server before writing unfamiliar Unity calls, adding uncertain namespaces, or choosing between current and obsolete APIs. Its documented query latency is under 15 ms after the relevant database is available locally.

## Limitations and notes

The Unity API Documentation MCP server does not document third-party assets listed in the project README. It also depends on the available version databases: a particular Unity patch or Unity 6 minor stream may use a mapped or fallback database when a dedicated stream database has not been published. New releases are detected and database builds are performed automatically each week, according to the project documentation.

_Full upstream README: https://allmcps.com/mcp/unity-api-documentation/readme_

