Unity Code Intelligence Server
FreeNot checkedAI-powered static analysis for Unity projects, detecting common patterns, component relationships, and programming insights to augment developer workflows.
About
AI-powered static analysis for Unity projects, detecting common patterns, component relationships, and programming insights to augment developer workflows.
README
AI-powered static analysis for Unity projects
This Model Context Protocol (MCP) server provides intelligent code analysis for Unity, detecting common patterns, component relationships, and programming insights to augment developer workflows.
Key Features
- 🎮 Unity-Specific Pattern Detection - Identifies 8+ common Unity patterns (Singleton, Coroutine, ScriptableObject etc.)
- 🤝 Component Relationship Mapping - Visualizes MonoBehaviour dependencies and interactions
- 📊 Quantitative Metrics - Provides statistics on pattern usage across projects
- 🔍 Structured Documentation Access - AI-optimized Unity documentation retrieval
- ⚙️ Automatic Configuration - Resolves Unity installations based on project settings
Designed for Extensibility
Modular Pattern Detection
Our pattern detection system uses a plugin architecture where new Unity patterns can be detected by implementing the IUnityPatternDetector interface. The registry automatically discovers and integrates all detectors found in the system.
Flexible Configuration
The dual-path configuration system supports both automatic Unity installation detection and manual overrides. This adaptive approach ensures compatibility with future Unity versions and custom deployment scenarios.
Documentation Framework
The documentation engine provides a clean abstraction layer over Unity's documentation, offering multiple endpoints optimized for AI consumption. New documentation formats and search strategies can be added via our standardized plugin API.
Getting Started
Prerequisites
Before you begin, ensure you have the .NET 8.0 SDK or a newer version installed.
Building and Running
The following instructions apply to both Windows and macOS.
1. Build the Server
From the root directory of the repository, run the following command to build the project and restore dependencies:
dotnet build
2. Run the Server
To start the server, execute the following command from the root directory:
dotnet run
The server will now be running and ready to accept requests from an MCP client.
Configuration
The server is configured using the appsettings.json file, which must be placed in the project's root directory. This file allows you to specify paths required for the analysis tools to function correctly.
UnityAnalysisSettings
All settings are located within the UnityAnalysisSettings object in appsettings.json.
ProjectPath(Required): The absolute path to the root of the Unity project you intend to analyze.- Example:
"C:\\Users\\YourUser\\Documents\\MyUnityProject"
- Example:
InstallRoot(Optional): The path to the directory containing your Unity Editor version folders. This is typically theEditorfolder inside your Unity Hub installation directory. This setting is used with the project's detected version to automatically locate the correct Unity Editor.- Example:
"C:\\Program Files\\Unity\\Hub\\Editor"
- Example:
EditorPath(Optional): A direct and explicit path to a specific Unity Editor installation folder. If provided, this path takes priority over theInstallRootsetting. This is useful for development or if your editor is in a non-standard location.- Example:
"C:\\UnityEditors\\2022.3.15f1"
- Example:
To function, the analyzer must be able to locate the Unity Editor installation. You must configure either InstallRoot (so the editor can be found automatically) or provide a direct EditorPath.
Sample appsettings.json:
{
"UnityAnalysisSettings": {
"InstallRoot": "/Applications/Unity/Hub/Editor/",
"EditorPath": "",
"ProjectPath": "C:\\Path\\To\\Your\\UnityProject"
}
}
Interacting with the Server
You can interact with the server using the MCP Inspector, which provides a web-based interface.
# Navigate to your MCP server project directory
# (The directory containing Unity_Intelligence_MCP.csproj)
cd path/to/Unity_Intelligence_MCP
# Install and run the MCP Inspector
npx @modelcontextprotocol/inspector dotnet run
Follow the instructions in your terminal. You will be prompted to open a URL in your web browser to access the inspector.
From the web interface, you can select a tool like analyze_unity_project. The tool will use the ProjectPath configured in your appsettings.json to run the analysis.
Installing Unity Code Intelligence Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/jstricklin/Unity-Intelligence-MCPFAQ
Is Unity Code Intelligence Server MCP free?
Yes, Unity Code Intelligence Server MCP is free — one-click install via Unyly at no cost.
Does Unity Code Intelligence Server need an API key?
No, Unity Code Intelligence Server runs without API keys or environment variables.
Is Unity Code Intelligence Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Unity Code Intelligence Server in Claude Desktop, Claude Code or Cursor?
Open Unity Code Intelligence Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Unity Code Intelligence Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
