A powerful MCP server for codebase architecture analysis and automated governance.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server that empowers your AI agents to understand your entire project architecture, and a headless CI gateway to enforce architectural rules before code is merged.
[!NOTE] Prerequisite:
ua-mcpis a lightweight reader that connects your AI assistant to your local Understand-Anything knowledge graph. It does not build the graph itself. You must install the core scanner from Egonex-AI/Understand-Anything and run/understandin your project to produce the.ua/knowledge-graph.jsonfile. Commit this file to your repository before proceeding.
Get your AI assistant hooked up with architectural context in 60 seconds. ua_find_callers, ua_impact_analysis, and ua_precheck work immediately for free with no license key required!
Add this to your claude_desktop_config.json:
understand-anythingcommandnpx -y ua-mcpUA_PROJECT_PATH = /absolute/path/to/your/projectThe free upstream Understand-Anything tool is responsible for generating the local knowledge graph and performing manual local analysis. UA-MCP sits on top of this graph to provide an automated governance layer and safety net for your codebase. While the free tool is a diagnostic scanner, UA-MCP actively blocks risky merges via its CI/branch-protection gate (ua-ci) and enforces your custom .ua-rules.json architectural boundaries.
[!IMPORTANT] Link to Privacy Policy
Data Processing Details:
- License keys and email addresses are securely stored for billing purposes.
- Purely local, no network calls:
ua_status,ua_scan,ua_graph_summary,ua_explain,ua_onboarding_doc.- Sends graph data to the backend:
ua_precheck(Free and Pro), and all Pro-only tools (ua_rules,ua_ci_check,ua_find_callers,ua_impact_analysis,ua_validate_graph). When these tools are used, the full local graph object is sent to our backend for CI risk analysis, rule evaluation, and quota validation. All Pro-tier computation is handled remotely.- No source code contents are transmitted, only graph metadata (file paths and import relationships). All backend graph processing is done purely in-memory per-request and is never persisted.
Security Considerations
UA_API_URLdefaults to the official backend (https://ua-mcp-backend.onrender.com). Be extremely cautious if you change this to a custom endpoint, as the third-party backend will receive your full knowledge graph and source file paths.- Self-Hosting: If you are self-hosting the backend, note that a PostgreSQL
DATABASE_URLis required in production. SQLite is not supported for production deployments.
.ua-rules.json to enforce boundaries.[!TIP] System Instruction Recommended: For the best experience, add the following to your AI assistant's system prompt or custom instructions: "Always call
ua_precheckbefore modifying any file in this project."
src/auth.ts).ua_precheck before making the edit to run an Architectural Safety Linter.You can define specific boundaries in a .ua-rules.json file in the root of your workspace to dictate what the LLM is allowed to touch.
ua-ci)A companion CLI that runs locally in your GitHub Actions or GitLab CI. It parses your PR diff and compares it to the local graph.
HIGH or violates architectural rules.[!IMPORTANT] The True Enforcement Backstop: While local agents rely on system instructions to run
ua_precheck, theua-cicommand is designed to be your unbypassable safety net. By runningua-ciin your GitHub Actions and requiring it as a status check in GitHub Branch Protection, you ensure that no rogue edits can ever be merged into production without explicit approval.Note on Free Tier: If a valid Pro license key is not detected in the environment variables, the CI check will log a warning and silently pass (exit 0) so it does not block builds for non-paying users.
When connected to Claude Desktop or an MCP client, the following tools become available to the agent:
claude_desktop_config.json)Add the following to your Claude Desktop config file (usually ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
understand-anythingcommandnpx -y ua-mcpAdd to your config.json under mcpServers:
The Understand-Anything MCP Server operates on a tiered licensing model.
Available out of the box with no license required.
ua_find_callers: Retrieves reverse dependencies up to 2 hops (Now unlimited and free!).ua_impact_analysis: Retrieves full transitive closure of reverse dependencies (Now unlimited and free!).ua_precheck: Pre-flight architectural risk check (10 checks/day, default critical-path rules only)ua_status: Returns MCP health status.ua_scan: Forces a re-scan of the workspace.ua_graph_summary: Returns aggregated node/edge statistics.ua_architecture_report: Groups files by top-level modules.ua_dependency_report: Identifies files with the most incoming dependencies (fan-in).ua_explain: Retrieves 1-hop dependencies for a specific file.ua_onboarding_doc: Generates onboarding context.Pro Tier β Architectural Enforcement & CI Safety
Team Use: One Pro license key can be shared across your entire team's CI pipelines and MCP configurations β no per-seat pricing.
ua_rules & ua_rules_check: Enforce custom .ua-rules.json boundaries. Evaluates constraints to ensure recent changes haven't introduced violations.ua_ci_check & ua-ci: Block risky PRs in GitHub Actions before they reach production. Analyzes Git PR diffs for architectural impact.ua_precheck: Unlimited pre-flight checks with configurable critical paths and .ua-rules.json enforcementua_validate_graph: Checks the knowledge graph schema for corruption.No reviews yet β be the first to share how this listing worked for you.
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/understand-anything-mcp)<a href="https://allmcps.com/mcp/understand-anything-mcp"><img src="https://allmcps.com/api/badge/understand-anything-mcp?style=directory" alt="Understand Anything MCP on AllMCPs" /></a>