
unity-api-mcp
by Codeturion·★ 56·Score 48
Unity API MCP server providing instant, accurate Unity documentation lookup for AI agents.
Overview
Unity-api-mcp is an MCP server designed to help AI agents working with Unity development. It provides instant API lookups instead of expensive source file reads, saving tokens, context, and preventing hallucinations. The server supports Unity 2022 LTS, 2023, and Unity 6 with separate databases for each version, ensuring accurate version-specific information. It's particularly useful for AI-assisted Unity development workflows where accurate API documentation is critical.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're working with Unity development and want accurate API documentation lookup to prevent hallucinations and reduce token usage in AI-assisted workflows.
When NOT to choose this
Not suitable for commercial use due to PolyForm Noncommercial license limitation; third-party Unity packages aren't covered.
Tools this server exposes
5 tools extracted from the READMEsearch_unity_apiFind Unity APIs by keyword
get_method_signatureGet exact method signatures with all overloads
get_namespaceResolve C# using directives for Unity types
get_class_referenceGet full class reference including all members
get_deprecation_warningsCheck if a Unity API is deprecated or obsolete
Comparable tools
Installation
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/.
Alternatively, you can install with pip: pip install unity-api-mcp and modify the configuration to use command": "unity-api-mcp" instead of uvx.
FAQ
- What Unity versions are supported?
- The server supports Unity 2022 LTS, 2023, and Unity 6 with separate databases for each version.
- Does this cover third-party assets like DOTween?
- No, third-party assets (DOTween, VContainer, Newtonsoft.Json) are not indexed. For those, rely on project source.
Compare unity-api-mcp with
Last updated · Auto-generated from public README + GitHub signals.