AI Architect MCP Codebase logo

AI Architect MCP Codebase

Indexes repositories into a local code graph and exposes structural code-analysis tools through MCP.

Install AI Architect MCP Codebase

Run the project’s own setup commands, in order.

Setup steps from the project

ai-architect-mcp-codebase installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to Claude Code
    claude plugin marketplace add cdeust/ai-architect-mcp-codebase
    
  2. 2. Install
    claude plugin install ai-architect-mcp-codebase@ai-architect-mcp-codebase-marketplace
    
  3. 3. Install
    cargo install ai-architect-mcp-codebase
    
  4. 4. Add to your MCP client
    ai-architect-mcp-codebase install          # writes the MCP entry for each detected host
    
  5. 5. Add to your MCP client
    configure a host by hand, register the binary as a stdio server:
    

Overview

ai-architect-mcp-codebase indexes source repositories into a local property graph and exposes structural analysis through MCP. It uses tree-sitter and an embedded LadybugDB database to relate symbols, calls, imports, implementations, and uses. Agents can search code, inspect symbol context, trace graph reachability, measure change impact, and compare code graphs without network access. Reach for it when an agent needs repository-wide architectural context rather than isolated file search.

Use cases

  • Index a repository for architectural questions
  • Find callers and reverse dependencies of a symbol
  • Measure the code affected by a Git diff
  • Trace graph-based paths from declared entry points
  • Compare two graphs of the same codebase

Key features

  • Local tree-sitter code indexing
  • Embedded LadybugDB property graph
  • Ranked and paginated code search
  • Symbol context and impact analysis
  • Core and full tool profiles
  • Optional language-server and runtime-trace enrichment

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 74d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.

How AI Architect MCP Codebase works

What ai-architect-mcp-codebase does

ai-architect-mcp-codebase turns a source repository into a local code graph for agent-driven analysis. The graph represents definitions and relationships such as calls, imports, implementations, and symbol usage. Agents can use the graph to answer questions about callers and callees, reverse dependencies, affected areas, execution reachability, and the symbols touched by a Git diff.

The server does not modify indexed source files. Graph data and related sidecar files are written beneath the selected output directory. A separate team-shared snapshot can be created when requested. Indexing, graph construction, and queries run locally; the code is not sent to a network service or processed by a language model.

How it works

Source text is parsed with tree-sitter and stored in an embedded LadybugDB graph database. The recommended analyze_codebase operation combines indexing, relationship resolution, clustering, and search-index construction. Search combines BM25 and sparse TF-IDF results with reciprocal rank fusion, then returns paged matches.

The server supports two startup profiles. core exposes eight read-only tools intended for normal agent use: health_check, analyze_codebase, search_codebase, get_context, get_symbol, get_impact, query_graph, and detect_changes. full exposes all 27 tools, including manual graph passes, history and runtime-trace ingestion, verification, artifact-building, and finding-record operations. Select a profile with --profile or AP_PROFILE; the command-line option takes precedence.

Setup and configuration

Install the published binary through the Claude Code marketplace or install it with Cargo:

bash
cargo install ai-architect-mcp-codebase
ai-architect-mcp-codebase install

The install command detects Claude Code, Codex CLI, Gemini CLI, Cursor, VS Code, and Zed, then adds the server entry to each parseable configuration file. Use --dry-run to preview changes and uninstall to remove entries. Other MCP hosts can register the executable as a stdio server, for example:

config.json
{
  "mcpServers": {
    "ai-architect": {
      "command": "ai-architect-mcp-codebase",
      "args": ["--profile", "core"]
    }
  }
}

Building from source requires Rust 1.95.0, pinned by the repository toolchain file, and CMake. The first release build may take about five minutes because of LadybugDB's C++ core. The Claude Code plugin verifies release provenance with Sigstore and requires GitHub CLI 2.68 or newer.

Tools and capabilities

  • Analyze a repository and build its local graph and search index.
  • Search indexed symbols with ranked, paginated results.
  • Retrieve symbol context, callers, callees, imports, implementations, communities, and processes.
  • Calculate impact across callers, importers, users, implementors, communities, and processes.
  • Query graph relationships and detect symbols affected by a Git diff.
  • Use full-profile tools for graph passes, history, runtime traces, verification, artifacts, and findings.

Limitations and notes

The graph is based primarily on static parsing. Reflection, dynamic dispatch, unexpanded generated code, and unsupported macros may not produce relationship edges. An optional language-server pass enabled with lsp: true, or runtime data supplied through ingest_traces, can add relationships. Static receiver-call resolution applies only to supported receiver shapes; other receiver calls require the language-server pass.

Ruby extraction is shallow and does not include imports or visibility. Process paths represent graph reachability from declared entry points rather than observed execution, and are limited to depth 20. An empty result can mean either that a relationship is absent or that it was not indexed; the coverage report helps distinguish those cases. The server supports release assets for macOS arm64, Linux x86_64, Linux aarch64, and Windows x86_64 under the launcher conditions described by the project; unsupported platform combinations require another installation route or are refused by the plugin launcher.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI Architect MCP Codebase

ai-architect-mcp-codebase is an MCP server that connects AI agents to a local graph of an indexed code repository. Its main tools analyze repositories, search symbols, inspect callers and callees, query relationships, measure change impact, and detect Git diff effects without uploading source code.

Install it with Cargo using `cargo install ai-architect-mcp-codebase`, then run `ai-architect-mcp-codebase install`. The installer detects supported host configurations and adds the server entry; use `--dry-run` to preview changes.

Yes, it works with Cursor through the generated MCP configuration. The `install` command detects Cursor and adds the server entry without overwriting configuration files it cannot parse. It can also be registered manually as a stdio server.

Start it with the `core` profile using `--profile core` or `AP_PROFILE=core`. This exposes eight read-only tools for indexing, searching, context lookup, symbol inspection, impact analysis, graph queries, change detection, and health checks.

No, indexing and queries run locally without network calls, and the repository is not uploaded. The server stores its graph and sidecar files beneath the output directory you provide.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI Architect MCP Codebase AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ai-architect-mcp-codebase?style=directory)](https://allmcps.com/mcp/ai-architect-mcp-codebase)
HTML Embed
<a href="https://allmcps.com/mcp/ai-architect-mcp-codebase"><img src="https://allmcps.com/api/badge/ai-architect-mcp-codebase?style=directory" alt="AI Architect MCP Codebase on AllMCPs" /></a>