arbor
This server provides graph-based codebase analysis through two core operations:
Trace Logic Paths (
get_logic_path) - Follow the call graph to discover all dependencies and usages of a specific function or class, revealing how code flows through your projectAnalyze Refactoring Impact (
analyze_impact) - Calculate the "blast radius" of changing a code element to understand what will be affected before making modifications, including direct callers and transitive dependencies
Key capabilities:
Deterministic Results - Uses Arbor's semantic dependency graph for execution-aware analysis rather than text matching, with confidence scoring (High/Medium/Low)
AI Integration - Implements Model Context Protocol (MCP) enabling LLMs like Claude to query the graph directly for structurally-accurate code analysis
Multi-Language Support - Works across 10+ languages (Rust, TypeScript, Python, Go, Java, C/C++, C#, Dart, JavaScript) with cross-file symbol resolution
Local Privacy - All analysis happens locally with no data leaving your machine
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arborshow me all functions that call the authentication service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
v3.0.0 — The Right Node · v2.6.0 stopped dropping colliding symbols. It did not stop resolving them to the wrong one. When a bare name matched several modules, resolution fell through to "same directory" and confidently attached the edge to whichever definition happened to sit next to the caller. On a graded fixture the three largest hubs reported zero downstream impact while unrelated siblings inherited their centrality. A file's own imports now settle it. Reproduce it yourself: getArbor-dev/arbor-torture
Why Arbor
Most AI coding tools treat code as text. Arbor builds a semantic dependency graph — functions, classes, and modules as nodes; calls, imports, and inheritance as edges — then answers execution-aware questions with deterministic precision:
Question | Arbor answer |
If I change this symbol, what breaks? | Blast radius with depth, confidence, and risk level |
Who calls this — directly and transitively? | Caller/callee traversal on the call graph |
What's the shortest path between A and B? | A* path through real dependencies |
Is this PR too risky to merge? | CI gate on blast-radius thresholds |
No keyword guessing. No embedding hallucinations. One graph, every interface.
Where the graph is unsure, it says so — edges carry a confidence, and ambiguous resolutions are labelled rather than hidden. An honest unknown beats a confident wrong answer.
Related MCP server: CodeGraph CLI MCP Server
What's new in v3.0.0
One fix, measured.
Symbol resolution consults the importing file. When a bare name matched
definitions in several modules, resolve_ref fell through to SameDir and
attached the edge to whichever definition sat in the caller's own directory —
not a dropped edge, a confidently misrouted one, stamped at 0.55 confidence.
GraphBuilder already kept a per-file import map, but only
apply_import_validation read it, and that scores an edge after one has been
chosen. It never saw the references going to the wrong node. Consulting it
between the same-file and same-directory checks keeps a local definition
shadowing an import, while letting a written import beat mere adjacency.
Resolution::ViaImport scores 0.93, above SameDir's 0.55.
Measured
A fixture of 260 modules across 10 layers, each layer defining the same 26 function names. Ground truth is derived from the generator's own edge list, so the expected answer is exact rather than estimated.
True downstream | v2.6.0 | v3.0.0 |
179 | 0 | 163 |
178 | 0 | 161 |
161 | 0 | 133 |
143 | 22 | 133 |
122 | 22 | 119 |
36 | 22 | 61 |
16 | 22 | 46 |
Previously flat at about 22 regardless of the real answer. Now it tracks. Risk
on the largest hub moves from LOW to CRITICAL.
Total edge count barely moves (1335 → 1334). That is the signature of misrouting rather than loss: the edges were always there, pointing at the wrong nodes.
Breaking
Resolutiongains aViaImportvariant — an exhaustive match will not compileEdges land on different nodes, so cached graphs, stored node ids, and centrality baselines from 2.6.0 will differ
Known and still open
Written down rather than left to be discovered:
Small targets now over-report (36 → 61, 16 → 46). Safer direction than silence, but not yet correct.
PageRank has no escape from a closed cycle. Every member of a 500-function ring scores above 90% centrality on one caller each, so mutually recursive clusters — parsers, tree walkers, state machines — crowd the top of any ranking.
Inheritance produces no edges.
class Middle(Base)is invisible, so changing a base class shows zero blast radius.Dynamic and reflective imports (
importlib,__import__,import(),eval(require(...))) are unresolvable by construction and are documented as expected misses in the fixture rather than counted as defects.
Correctness, not speed. Each of these was silently wrong before.
Fix | Why it mattered |
Colliding symbols are kept |
|
Resolution is deterministic | Same-directory locality was decided by iterating a |
Edges carry confidence | A proven same-file call and a same-directory guess were identical evidence. Each edge now scores |
Exported TS symbols indexed once |
|
Method calls on untyped receivers resolve |
|
Centrality is a percentile rank | Scores were divided by the graph maximum, so the top node was |
Resolution is O(1), not O(refs × nodes × files) | Unresolvable references — stdlib and third-party calls, most call sites in real code — paid the worst case. Suffixes are now indexed. |
New capability — concept search. Substring matching cannot find get_authenticated from login; they share no substring. Identifiers are now tokenized and expanded through curated concept clusters, and docstrings, signatures, and paths are indexed alongside names. Deterministic, offline, no model. Available on the library as ArborGraph::search_ranked (arbor query remains literal-substring for now).
New capability — hunk-level impact. changed_node_ids_for_ranges keeps only symbols whose lines actually changed, instead of every symbol in a touched file.
Measured on identical node sets, after the duplicate-extraction fix:
Codebase | Before | After |
TypeScript (149 files) | 172 edges | 196 (+14%) |
Rust (arbor-graph) | 116 edges | 167 (+44%) |
Graph caches from earlier versions are invalidated — centrality now means something different, so a stale cache would be read wrong.
Change | Measured |
PageRank rewrite — flat call-graph adjacency replaces per-iteration traversal | 149.8ms → 6.6ms on a 10k-node graph (23x), verified side-by-side vs the old implementation |
Parallel indexing — parse fans out across all cores, deterministic assembly | Arbor: 253ms → 95ms · tokio (178k LOC): 2.7s → 1.6s |
Warm-start centrality — watcher recomputes seed from previous scores | Converges in ~2 rounds after a one-file patch instead of the full 20-iteration budget |
Convergence early-exit | Iteration stops at 1e-9 max delta — the budget is a ceiling, not a sentence |
Think a number is wrong? cargo bench -p arbor-graph and prove it: BENCHMARKS.md.
Feature | What it does |
MCP | Stateless |
Tasks extension |
|
MCP Apps | Interactive blast-radius graph ( |
HTTP transport |
|
Real | Git-diff-aware impact analysis via shared |
Pagination |
|
Benchmarks | Criterion suite + CI regression gate — see BENCHMARKS.md |
Quickstart
# Install
cargo install arbor-graph-cli
# Index your project (one command)
cd your-project && arbor setup
# Explore before you edit
arbor map . --exclude-test # ranked project skeleton (~1k tokens)
arbor refactor parse_file # blast radius of changing a symbol
arbor diff # impact of uncommitted git changes
# Wire up your AI agent
claude mcp add --transport stdio --scope project arbor -- arbor bridgeAgent workflow: call get_map first → search_symbols / get_file_graph to locate code → Read only the target file. Full MCP guide →
For AI agents (MCP)
Arbor ships a production MCP server via arbor bridge. Stdio is the default; HTTP is opt-in for remote/enterprise.
# Stdio (Claude, Cursor, VS Code)
arbor bridge
# HTTP (MCP 2026-07-28)
arbor bridge --http --port 3333Cursor / VS Code
{
"mcpServers": {
"arbor": {
"type": "stdio",
"command": "arbor",
"args": ["bridge"]
}
}
}Templates: templates/mcp/ · Setup scripts: scripts/setup-mcp.sh · scripts/setup-mcp.ps1
16 MCP tools
Tier | Tools | Use when |
Orientation |
| First call — token-budgeted project skeleton ranked by PageRank |
Surgical |
| Navigate to a specific symbol or file |
Broad |
| Trace dependencies, blast radius, paths |
Agent-native |
| PR impact, onboarding, security audit, bulk lookup |
Every tool returns { ok, tool, data, meta: { suggested_next_tool, suggested_next_args } } so agents chain calls without re-prompting.
Registry: io.github.Anandb71/arbor · Official API lookup · Glama listing
CLI reference
Command | Description |
| One-shot init + index |
| Ranked, token-budgeted project skeleton |
| Fuzzy symbol search (supports |
| One-hop graph traversal |
| HTTP handlers, main, jobs, webhooks |
| Symbols + edges in one file |
| Full symbol detail |
| Shortest call-graph path |
| Blast radius before refactoring |
| Git-change impact report |
| CI safety gate ( |
| Auto-generate PR description |
| Autonomous PR architecture review |
| Codebase onboarding guide |
| Real-time architectural safety gate |
| MCP server (add |
| Live re-index on file changes |
| Native desktop UI |
All query commands support --json. map additionally supports --tokens N, --focus "pattern", --focus-changed.
Visual tour
Full recording: media/recording-2026-01-13.mp4
Installation
# Rust / Cargo
cargo install arbor-graph-cli
# Homebrew (macOS/Linux)
brew install Anandb71/tap/arbor
# Scoop (Windows)
scoop bucket add arbor https://github.com/Anandb71/arbor && scoop install arbor
# npm wrapper (cross-platform)
npx @anandb71/arbor-cli
# Docker
docker pull ghcr.io/anandb71/arbor:latestNo-Rust installers:
macOS/Linux:
curl -fsSL https://raw.githubusercontent.com/Anandb71/arbor/main/scripts/install.sh | bashWindows:
irm https://raw.githubusercontent.com/Anandb71/arbor/main/scripts/install.ps1 | iex
Pinned installs: docs/INSTALL.md
Language support
Production parsers: Rust · TypeScript / JavaScript · Python · Go · Java · C / C++ · C# · Dart
Fallback parsers: Kotlin · Swift · Ruby · PHP · Shell
CI & pull requests
arbor diff --markdown
arbor check --max-blast-radius 30 --markdown
arbor summaryGitHub Action (pre-built binary, ~5s vs ~3–5min compile):
name: Arbor Check
on: [pull_request]
jobs:
arbor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: getArbor-dev/arbor@v3.0.0
with:
command: check . --max-blast-radius 30 --markdown
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}Architecture
arbor-core (Tree-sitter parsing)
└── arbor-graph (petgraph + PageRank + impact analysis)
├── arbor-cli — CLI + MCP bridge
├── arbor-mcp — MCP protocol server
├── arbor-server — WebSocket JSON-RPC
├── arbor-watcher — incremental file watcher
└── arbor-gui — desktop UIDocs: Quickstart · Architecture · Graph schema · MCP integration · Benchmarks · Roadmap · Philosophy
Release channels: GitHub Releases · crates.io · GHCR · npm · VS Code / Open VSX · Homebrew · Scoop — Releasing guide
Philosophy
Consumer first — beautiful, intuitive, instantly useful
Accessibility second — works across ecosystems, runs anywhere
Affordability next — minimal overhead, from laptops to monoliths
Arbor is local-first: no mandatory data exfiltration, offline-capable, open source. Security policy →
Contributing
cargo build --workspace
cargo test --workspace
cargo clippy --workspace --all-targets --all-featuresCONTRIBUTING.md · Good first issues · Code of conduct
Contributors
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn intelligent server that provides semantic code search, domain-driven analysis, and advanced code understanding for large codebases using LLMs and vector embeddings.11MIT
- FlicenseNot gradedqualityFmaintenanceA high-performance CLI tool that provides semantic code search, advanced architectural analysis, and codebase indexing with vector embeddings across multiple programming languages. Enables AI assistants to understand and navigate large codebases through graph-based relationships and intelligent code pattern detection.861
- AlicenseAqualityAmaintenanceA local-first codebase intelligence tool that enables AI assistants to research codebases using semantic search, multi-hop relationship discovery, and structural parsing. It allows users to extract architectural patterns and institutional knowledge across 30+ programming languages through an MCP-compatible interface.21,415MIT
- AlicenseNot gradedqualityCmaintenanceA graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide AI agents with deep context on function calls, types, and execution flows. It offers local, zero-dependency tools for hybrid search, impact analysis, and dead code detection across Python, JavaScript, and TypeScript projects.730MIT
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/getArbor-dev/arbor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server