AI Architect MCP Codebase
What it does
Codebase intelligence MCP — index any repo into a property graph; 27 tools for agents.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
双击文件,然后在电脑版 Claude 应用中点击 Install
试一试
用 AI Architect MCP Codebase 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 AI Architect MCP Codebase,或回答中出现 AI Architect MCP Codebase 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 AI Architect MCP Codebase
AI Architect MCP Codebase 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 AI Architect MCP Codebase 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code 暂时无法连接 AI Architect MCP Codebase
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 AI Architect MCP Codebase 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
Cursor 暂时无法连接 AI Architect MCP Codebase
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 AI Architect MCP Codebase 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
VS Code 暂时无法连接 AI Architect MCP Codebase
开发者只提供了电脑版 Claude 应用的安装文件
你可以改用这些方式
A · 使用能连接 AI Architect MCP Codebase 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月13日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 cdeust 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于今天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5851 个服务器的 88%
- 发布到注册中心的时间比此分类中其他 5851 个服务器的 94% 更新
- 基础检查结果等于或优于此分类中其他 5851 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
AI Architect MCP Codebase 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于今天,最新版本(0.15.0)于昨天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
有什么可以替代它?
同一分类中有:REA, GitHub, Serena MCP: the IDE for your agent
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that indexes a repository into a local code graph and answers structural questions about it: who calls this, what depends on it, what a diff touches, how execution reaches a function.
What it is · Install · First session · Tools · Limits · Development
What it is
ai-architect-mcp-codebase parses a repository with tree-sitter, stores the symbols and their relationships (definitions, calls, imports, implementations, uses) in an embedded LadybugDB graph database on your machine, and exposes that graph to an agent through MCP tools. An agent can search the graph, look up a symbol with its callers and callees, list the reverse dependencies of a symbol, follow execution flows from entry points, map a git diff onto the symbols it changes, and compare two graphs of the same code. Answers about symbols carry source locations and the limits of the analysis behind them.
The server does not edit the files it indexes. It writes its graph and sidecar files under the output_dir you pass, plus a snapshot in the repository only when you ask for the team-shared artifact. Indexing and queries run locally without network calls, no language model reads the code, and nothing is uploaded. The graph is a directory you own.
The graph comes from static parsing of source text, so some things stay out of it. A call made through reflection, dynamic dispatch, generated code, or a macro the parser does not expand has no edge unless an optional language-server pass (lsp: true) or runtime traces (ingest_traces) supply one. Method calls through a receiver are resolved statically only for the receiver shapes listed below; the rest need the language-server pass. Ruby gets a shallow extraction with no imports or visibility. Process flows are reachability in the graph from declared entry points, capped at depth 20, with no observation of execution. An empty answer can mean "no such relationship" or "not indexed", and the coverage report exists to tell those apart.
Install and register
Claude Code plugin
claude plugin marketplace add cdeust/ai-architect-mcp-codebase
claude plugin install ai-architect-mcp-codebase@ai-architect-mcp-codebase-marketplace
The plugin downloads the release binary and verifies its Sigstore provenance before running it; this needs GitHub CLI 2.68 or newer. The plugin starts the full profile unless AP_PROFILE=core is set.
Other MCP hosts
cargo install ai-architect-mcp-codebase
ai-architect-mcp-codebase install # writes the MCP entry for each detected host
install detects Claude Code, Codex CLI, Gemini CLI, Cursor, VS Code and Zed, adds only its own entry to each config file, and never overwrites a file it cannot parse. --dry-run previews the changes; uninstall removes them. To configure a host by hand, register the binary as a stdio server:
{
"mcpServers": { "ai-architect": { "command": "ai-architect-mcp-codebase", "args": ["--profile", "core"] } } }
docs/install.md has the per-host snippets (Codex, Gemini, Cursor, Windsurf, VS Code, the OpenAI Agents SDK), the optional Grep/Glob hook, the plugin's release verification, and the developer escape hatch for running a local build inside the plugin.
Build from source
git clone https://github.com/cdeust/ai-architect-mcp-codebase.git
cd ai-architect-mcp-codebase cargo build --release # about five minutes the first time (LadybugDB's C++ core)
Rust 1.95.0 is pinned by rust-toolchain.toml, and CMake is required.
Tool profiles
The server registers one of two tool sets, chosen at startup with --profile or the AP_PROFILE environment variable (the flag wins).
| Profile | Tools | Use |
|---|---|---|
core | 8: health_check, analyze_codebase, search_codebase, get_context, get_symbol, get_impact, query_graph, detect_changes | Recommended for agents. Analyze once, then search, inspect and measure impact. |
full | all 27 | Adds the manual graph passes, history, runtime traces, the verification tools, the artifact builder and the finding-record tools. |
ai-architect-mcp-codebase --profile core # the 8 core tools
AP_PROFILE=core ai-architect-mcp-codebase # same, through the environment ai-architect-mcp-codebase # default: full (all 27)
The default stays full until the next major version, because shrinking the default tool surface is a breaking change. New agent setups should use the core profile (8 read-only tools): analyze_codebase already runs index, resolve and cluster in one call, and leaving out the 19 hidden tools keeps the tool prompt small.
A first session
health_check()
→ server name and version, protocol version, registered tool count
analyze_codebase(path: "/path/to/repo", output_dir: "/tmp/repo-graph") → index, resolve, cluster and build the search index in one call → node and edge counts, communities, processes, and the coverage report
search_codebase(graph_path: "/tmp/repo-graph/graph", query: "tool request dispatch") → ranked symbols (BM25 and sparse TF-IDF fused with RRF), paged with next_offset
get_context(graph_path, qualified_name: "src/main.rs::handle_tool_call") → the symbol with its callers, callees, imports, implementations, community and processes; suggestions when the name does not match exactly
get_impact(graph_path, qualified_name: "src/main.rs::handle_tool_call") → callers, importers, users and implementors, the communities and processes affected, and an epistemic label (exact or lower-bound) with its reasons
detect_changes(graph_path, codebase_path: "/path/to/repo", base_ref: "main", head_ref: "HEAD") → symbols the diff adds, modifies or deletes, with a heuristic risk score each
query_graph(graph_path, graph: "missed") → the files the index could not fully cover, to check with grep
Re-run analyze_codebase after edits; indexing is incremental by default.
27 MCP Tools
Each tool takes JSON arguments checked against its JSON Schema and returns structured JSON, with a named reason code on error. No tool calls a language model. Agent installs rarely need all 27; the core profile registers just the 8 code-intelligence tools.
Server: health_check
Index and resolve: analyze_codebase · index_codebase · resolve_graph · lsp_resolve · cluster_graph · ingest_traces Coverage: index_status Search and context: search_codebase · get_symbol · get_context · query_graph Impact and processes: get_impact · get_processes · detect_changes History: index_history Verification: check_security_gates · verify_semantic_diff · validate_prd_against_graph · check_doc_claims Artifact export: prepare_prd_input Finding records: extract_finding · refine_finding · start_verification · append_clarification · finalize_verification · abort_verification
| Tool | Core | What it does |
|---|---|---|
health_check | yes | Returns server name and version, MCP protocol version and the registered tool count, which shows the active profile. |
analyze_codebase | yes | Runs index, resolve and cluster in one call and builds the search index; lsp: true adds the language-server pass. Returns statistics and the coverage report. |
index_codebase | Walks and parses the repository into /graph/. Incremental by default; can export or import the team-shared graph artifact. | |
resolve_graph | Adds cross-file Imports, Calls, Implements, Extends and Uses edges with confidence scores. | |
lsp_resolve | Resolves remaining calls through rust-analyzer, pyright or typescript-language-server. | |
cluster_graph | Detects communities (Louvain with C2 repair) and traces processes from entry points. | |
ingest_traces | Folds runtime caller-to-callee observations (OTel spans, profiler or coverage traces) into the graph, and adds OBSERVED_CALLS edges where static resolution found none. | |
index_status | Node and edge counts plus the coverage report. | |
search_codebase | yes | Hybrid ranked search over symbols, and BM25 search over documentation files. |
get_symbol | yes | Exact lookup by qualified name with every incoming and outgoing edge; sibling_graphs looks for a definition in other repositories' graphs. |
get_context | yes | One symbol with its relationships grouped by kind, its community and its processes. |
query_graph | yes | Read-only Cypher, paged; graph: "missed" lists what the index did not cover. |
get_impact | yes | Reverse dependencies of a symbol or file, with affected communities and processes and an epistemic label. |
get_processes | Lists execution flows with entry point, entry kind (main, test, proof, handler, lib_entry), depth and size. | |
detect_changes | yes | Maps a unified diff, or base_ref..head_ref, onto the symbols, communities and processes it touches. |
index_history | Adds git history as Commit and Version nodes linked to the files and symbols each commit changed. | |
check_security_gates | Checks a list of changed symbols for auth-community touch, public-API change, unresolved imports and test-coverage gaps. | |
verify_semantic_diff | Compares a before graph and an after graph: added and removed nodes and edges, dangling references, new unresolved imports, new cycles (Tarjan SCC), and a heuristic regression score. | |
validate_prd_against_graph | Checks a product requirements document against the graph: symbols it names that do not exist, changes that span several communities, and "does not affect X" claims contradicted by process membership. | |
check_doc_claims | Checks what a document claims about the code, one claim at a time, each anchored to the exact text at a file:line: symbols, files and modules that exist, items declared pub, test and proof counts, enum variant counts. Every row is supported, contradicted, not found, not verifiable (with the reason) or rejected for a bad anchor, with a replayable query as evidence. An absence, or a count the graph holds only as a lower bound, is never called contradicted. | |
prepare_prd_input | Writes a JSON bundle of graph facts (matched symbols, affected communities and processes, graph statistics) for a finding or a free-text feature description. | |
extract_finding, refine_finding | Normalize an incoming finding to a canonical JSON record and store an agent's refinement of it. |
| start_verification, append_clarification, finalize_verification, abort_verification | | Record a ques