Skip to content

Tool Pick|Graphvein — a read-only MCP server so your coding agent stops guessing call graphs from grep

Dec 1, 20264 min
TL;DRGraphvein is a local CLI that parses a codebase into a deterministic index of routes, call chains, and tables, queried by an agent through a read-only MCP server. Install: go install github.com/graphvein/graphvein/cmd/graphvein@latest. It fixes the problem of agents having to guess call relationships from grep and often guessing wrong or missing call sites.

Look up & save

Loading dictionary…

中文版

Tool Info

FieldValue
NameGraphvein
TypeCLI / read-only MCP server (code call-graph index)
GitHubgraphvein/graphvein
Stars2 (checked 2026-11-30; preview v0.2.1, just published on Hacker News Show HN on November 26)
LanguageGo
LicenseApache-2.0
Installgo 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.

Graphvein lets a coding agent query call relationships
Graphvein lets a coding agent query call relationshipsGraphvein parses a codebase locally into an index; a coding agent queries routes, callers, and tables through a read-only MCP server instead of grepping the whole repo, and the code is never sent to any server. Your codebase one or more repos graphvein index parsed locally Index store local SQLite graphvein mcp read-only, 14 tools Coding Agent Claude Code, etc. Legend today's MCP server pick data store

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

Graphveinplain grep / ripgrepLLM 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 relationshipsOnly by matching strings yourselfDepends 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 with go 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