Accurate Unity API docs (2022/2023/6) for AI agents. Prevents hallucinated signatures.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by Unity API Documentation.
search_unity_apiFind APIs by keyword
get_method_signatureExact signatures with all overloads
get_namespaceResolve `using` directives
get_class_referenceFull class reference card
get_deprecation_warningsCheck if an API is obsolete
MCP server that gives AI agents accurate Unity API documentation. Prevents hallucinated signatures, wrong namespaces, and deprecated API usage.
Supports Unity 6 (one database per minor stream), Unity 2023, and Unity 2022 LTS. Works with Claude Code, Cursor, Windsurf, or any MCP-compatible AI tool. No Unity installation required. See the supported versions. New Unity releases are detected and built automatically every week.
Add to your MCP config (.mcp.json, mcp.json, or your tool's MCP settings), setting UNITY_VERSION to match your project:
Valid values: a Unity 6 stream like "6000.3", or "6", "2023", "2022".
On first run the server downloads the correct database (~20-30 MB) to ~/.unity-api-mcp/.
| Priority | Source | Example |
|---|---|---|
| 1 | UNITY_VERSION env var | "2022", "6", "6000.3", or "6000.3.8f1" |
| 2 | UNITY_PROJECT_PATH | Reads ProjectSettings/ProjectVersion.txt, maps 2022.3.62f1 to "2022", 6000.3.8f1 to "6000.3" |
| 3 | Default | "6" |
Database download. If the database for that version isn't cached locally, it downloads from GitHub. Unity 6 minor streams (6000.0, 6000.3, 6000.5, โฆ) get their own per-stream database, falling back to the generic 6 database when a stream database isn't published. Cached databases are freshness-checked against the release on startup, so weekly rebuilds reach existing installs automatically.
Serve. All tool calls query the version-specific SQLite database. Every query returns in <15ms.
Each version has its own database with the correct signatures, deprecation warnings, and member lists for that release.
| Tool | Purpose | Example |
|---|---|---|
search_unity_api | Find APIs by keyword | "Tilemap SetTile", "async load scene" |
get_method_signature | Exact signatures with all overloads | UnityEngine.Physics.Raycast |
get_namespace | Resolve using directives | "SceneManager" -> using UnityEngine.SceneManagement; |
get_class_reference | Full class reference card | "InputAction" -> all methods/fields/properties |
get_deprecation_warnings | Check if an API is obsolete | "WWW" -> Use UnityWebRequest instead |
All UnityEngine and UnityEditor modules, plus packages parsed from C# source: Input System, Addressables, uGUI (incl. TextMeshPro on Unity 6), AI Navigation, and Netcode. ~42,500 records per Unity 6 database, ~500 deprecation warnings each.
Full version list: db-v1 release page. CI regenerates that table on every build. New Unity patches are detected and built automatically every Monday.
Does not cover third-party assets (DOTween, VContainer, Newtonsoft.Json). For those, rely on project source.
Measured, not promised: 25 research questions across 3 testbeds, answered by 3 agent configs, every answer judged against ground truth verified in the source beforehand. The full harness lives in docs/benchmark/ and re-runs with one command.
| Config | Correct | Partial | Wrong | Hallucinated APIs |
|---|---|---|---|---|
| MCP + targeted Read | 24/25 | 1 | 0 | 0 |
| Skilled (Grep+Read) | 20/25 | 3 | 2 | 1 |
| Naive (full Reads) | 19/25 | 3 | 3 | 1 |
The one reproduced hallucination is instructive. Asked to list the overloads of SceneManager.LoadSceneAsync, both non-MCP agents invented single-parameter LoadSceneAsync(string) and LoadSceneAsync(int) overloads that do not exist. Code written against them does not compile. The MCP agent returned the exact four real overloads.
Why correctness and not token savings? Agentic tools are good at code search now. Claude Code has shipped a Grep tool from the start, and current models search first and then read a narrow line range, so raw token use was comparable across all configs in our runs. But exact overloads, namespaces, and deprecations are not in your project files at all. An agent without MCP can only infer them from usage examples, and when it infers wrong you pay with a broken build.
python docs/benchmark/run.py --project <unity-project-path> (results from July 2026; agent behavior moves, so re-run before quoting)Add this to your project's CLAUDE.md (or equivalent instructions file). This step is important. Without it, the AI has the tools but won't know when to reach for them.
Instead of setting UNITY_VERSION, you can point to your Unity project. The server reads ProjectSettings/ProjectVersion.txt automatically:
Using pip install:
| Variable | Purpose | Example |
|---|---|---|
UNITY_VERSION | Unity version to serve | 6000.3, 6000.3.8f1, 6, 2023, 2022 |
UNITY_PROJECT_PATH | Auto-detect version from project | F:/Unity Projects/my-project |
UNITY_INSTALL_PATH | Override Unity install path (for ingest only) | D:/Unity/6000.3.8f1 |
If you want to build a database from your own Unity installation instead of downloading:
Databases are written to ~/.unity-api-mcp/unity_docs_{version}.db by default.
If an AI agent is setting this up for you:
Add
unity-api-mcpto my MCP config usinguvxwithUNITY_VERSIONset to match my project, append the CLAUDE.md snippet from the README, and verify withget_namespace("SceneManager").
Databases are stored in ~/.unity-api-mcp/ (downloaded on first run).
| Problem | Fix |
|---|---|
| "Could not download Unity X database" | Check internet connection. Or build locally: python -m unity_api_mcp.ingest --unity-version 2022 |
| Wrong API version being served | Set UNITY_VERSION explicitly. Check stderr: unity-api-mcp: serving Unity <version> API docs |
| Server won't start | Check python --version (needs 3.10+). Check path: which unity-api-mcp or where unity-api-mcp |
| Third-party packages return no results | DOTween, VContainer, Newtonsoft.Json are not indexed (third-party, not Unity packages) |
unreal-api-mcp: same concept for Unreal Engine (C++), with weekly auto-built databases per UE version.
Need a custom MCP server for your engine or framework? I build MCP tools that cut token waste and prevent hallucinations for AI-assisted game development. If you want something similar for your team's stack, reach out.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/unity-api-documentation)<a href="https://allmcps.com/mcp/unity-api-documentation"><img src="https://allmcps.com/api/badge/unity-api-documentation?style=directory" alt="Unity API Documentation on AllMCPs" /></a>