Tool Info
| Field | Value |
|---|---|
| Name | Graphvein |
| Type | CLI / read-only MCP server (code call-graph index) |
| GitHub | graphvein/graphvein |
| Stars | 2 (checked 2026-11-30; preview v0.2.1, just published on Hacker News Show HN on November 26) |
| Language | Go |
| License | Apache-2.0 |
| Install | go install github.com/graphvein/graphvein/cmd/graphvein@latest (or download the single release binary) |
What Problem It Solves
Have you asked a coding agent "this API changed its response shape, what on the frontend breaks?" Most of the time the agent can only grep the whole repo for a route string or function name and guess which code calls it — guess wrong and it misses a call site, guess too broadly and it floods its own context with irrelevant hits. The relationship between a route, its callers, and the tables behind it is a fact baked into the code, yet the agent can only approximate it with string matching.
Graphvein turns that relationship into a deterministic graph. graphvein index parses the codebase locally — it supports route frameworks like Express, FastAPI, Next.js App Router, Go's net/http/chi/gin, and Axum, plus table definitions from ORMs like Prisma, Drizzle, SQLModel, and GORM — and stores the result as an index. graphvein mcp then wraps that index as a read-only MCP server, letting the agent ask "who calls this route," "which code reads or writes this table," or "what does changing this function reach," and get back a structured answer labeled with its confidence (exact match, inferred, or unknown) instead of a string-matching guess. None of this touches an LLM or opens an outbound connection — the README is blunt about it: apart from whatever database or test environment you configure yourself, it sends nothing out.
Good fit: having an agent confirm the blast radius before it touches an API, tracing a piece of data from the frontend all the way to a table, or confirming who calls whom once a frontend and backend live in separate repos.
Simplified: the local web UI from graphvein serve, the Postgres indexing option, and the cross-repo project mode are omitted.
Getting Started
Install
# Needs Go 1.21+ (an older version auto-downloads the required toolchain)
go install github.com/graphvein/graphvein/cmd/graphvein@latest
# Or skip Go entirely: download the binary for your OS from the release page,
# unpack it and put it on PATH
# https://github.com/graphvein/graphvein/releases/latest
graphvein version
Basic usage
# Build the index at the project root (the index lives in a per-user
# store, not inside the repo)
graphvein index
# Ask a question: who calls this route?
graphvein callers 'GET /api/items' --json
# Open the local web UI to browse architecture, routes and tables
# (loopback only)
graphvein serve
Wiring it into Claude Code
claude mcp add graphvein -- graphvein mcp /path/to/repo
Or commit a project-scoped .mcp.json at the repo root:
{
"mcpServers": {
"graphvein": {
"command": "graphvein",
"args": ["mcp", "/path/to/repo"]
}
}
}
Once connected, the agent gets 14 read-only tools — callers, impact, chain, table, endpoint, and more — to query call relationships directly instead of grepping for them.
Compared to Existing Tools
| Graphvein | plain grep / ripgrep | LLM reads the whole repo | |
|---|---|---|---|
| Answers labeled with confidence (exact / inferred / unknown) | Partial (confidently guesses wrong) | ||
| No LLM, no outbound connection | (usually sends code out) | ||
| Sees table read/write relationships | Only by matching strings yourself | Depends on what fits in context | |
| Links call chains across a separate frontend/backend repo | (project mode) | Depends on what fits in context | |
| Has quantified accuracy evidence | (README includes precision/recall numbers) | — | — |
Things to Watch
- Still a preview — don't treat it as finished. v0.2.1 is still in preview, and the README lists its own "known gaps": MySQL/SQL Server/CockroachDB table facts are only mapped, not checked against a real database catalog the way Postgres facts are; dynamic calls (URLs assembled from string concatenation) aren't resolved yet.
- Binaries aren't code-signed. Release binaries carry no signature, so macOS Gatekeeper and Windows SmartScreen will warn. The README documents the workaround (
xattr -d com.apple.quarantine, or build it yourself withgo install). - Only specific frameworks are supported. Route parsing currently covers Express, FastAPI, Next.js App Router, a handful of Go frameworks, and Axum. A framework outside that list — say, routes wrapped in custom middleware — may not parse, and queries will come back labeled "unknown" rather than silently pretending to have resolved it.
Today's Takeaway
I used to assume that getting an agent to understand a codebase's architecture meant either stuffing more into context or letting it grep its way to an answer over several turns. Graphvein is a reminder that call relationships are already deterministic facts sitting in the code — running a parser once and storing the result as an index is faster, more accurate, and cheaper on tokens than making an LLM re-guess it every single time.
References
- graphvein/graphvein — GitHub
- Graphvein README: Install and MCP sections
- Graphvein's quantified evidence: route-to-caller link precision, call binding, and the MCP server's effect on benchmark accuracy
- Show HN: Graphvein – Trace calls to handlers and tables across repos, no LLM
- Graphvein ships read-only MCP server that traces routes, handlers and tables without an LLM — mcpserverhub.com