Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"unity-api": {
"env": {
"UNITY_VERSION": "2022"
},
"args": [
"unity-api-mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server that gives AI agents accurate Unity API documentation. Prevents hallucinated signatures, wrong namespaces, and deprecated API usage.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'unity-api-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked unity-api-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Read, write, and manage files on the local filesystem
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Manage Supabase projects — databases, auth, storage, and edge functions
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP Security Weekly
Get CVE alerts and security updates for Unity Api MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server that gives AI agents accurate Unity API documentation. Prevents hallucinated signatures, wrong namespaces, and deprecated API usage.
Supports Unity 2022 LTS, 2023, and Unity 6 with separate databases for each version. Works with Claude Code, Cursor, Windsurf, or any MCP-compatible AI tool. No Unity installation required.
Add to your MCP config (.mcp.json, mcp.json, or your tool's MCP settings), setting UNITY_VERSION to match your project:
{
"mcpServers": {
"unity-api": {
"command": "uvx",
"args": ["unity-api-mcp"],
"env": {
"UNITY_VERSION": "2022"
}
}
}
}
Valid values: "2022", "2023", or "6".
On first run the server downloads the correct database (~18-24 MB) to ~/.unity-api-mcp/.
| Priority | Source | Example |
|---|---|---|
| 1 | UNITY_VERSION env var | "2022", "6", or "6000.3.8f1" |
| 2 | UNITY_PROJECT_PATH | Reads ProjectSettings/ProjectVersion.txt, maps 2022.3.62f1 to "2022" |
| 3 | Default | "6" |
Database download. If the database for that version isn't cached locally, it downloads from GitHub (one time).
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, TextMeshPro, AI Navigation, and Netcode.
| Version | Records | Deprecated | Modules | Size |
|---|---|---|---|---|
| Unity 2022 LTS | 32,000 | 442 | 86 XML + packages | 18 MB |
| Unity 2023 | 31,387 | 436 | 92 XML | 18 MB |
| Unity 6 | 42,223 | 516 | 139 XML + packages | 24 MB |
Does not cover third-party assets (DOTween, VContainer, Newtonsoft.Json). For those, rely on project source.
In a 10-step research workflow, MCP uses 4x fewer tokens than a skilled agent and 11x fewer than a naive agent:

The gap holds across every question type. MCP wins on simple lookups and complex multi-part research alike:
![Hallucination Risk: Gre