Whygraph
FreeNot checkedMCP server that gives Claude Code the rationale behind a symbol before editing - synthesized from git history, PRs, and call-graph context.
About
MCP server that gives Claude Code the rationale behind a symbol before editing - synthesized from git history, PRs, and call-graph context.
README
Rationale layer over CodeGraph: explains why code exists, not just what it does.
For each chunk of code, WhyGraph collects evidence from git history and GitHub - commits, blame, PRs, the issues those PRs closed - then serves it to AI editors over MCP, plus an on-demand rationale card (purpose, why, constraints, tradeoffs, risks) with a persistent cache.
📖 Full documentation → https://mtrdesign.github.io/whygraph/
Installation, configuration, the CLI and MCP reference, the Docker delivery, and the service model all live there. This README is just the elevator pitch.
Quickstart
Install WhyGraph once, then from the repo you want to analyze:
whygraph init # bootstrap the WhyGraph DB + write config
whygraph scan # crawl history + refresh CodeGraph + LLM descriptions
whygraph init --agent claude # wire the MCP server into your editor
whygraph-mcp # sanity-check the server (Ctrl-C to exit)
whygraph serve # browse the graph, evidence + rationale in a local web panel
The only-Docker install needs nothing but Docker on the host — one command pulls the image and installs the shims from inside it (pin a version with the image tag):
docker run --rm ghcr.io/mtrdesign/whygraph install | sh
See the Getting Started guide for every install path and the Quickstart for the walkthrough.
Develop
uv sync # bootstrap .venv and install deps
uv run pytest # full test suite
uv run whygraph version # CLI sanity check
uv run whygraph-mcp # launch MCP server on stdio
make docs # serve the documentation site locally
A Makefile wraps the common dev tasks; run make to list them. See CLAUDE.md for the architecture and conventions.
Installing Whygraph
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/mtrdesign/whygraphFAQ
Is Whygraph MCP free?
Yes, Whygraph MCP is free — one-click install via Unyly at no cost.
Does Whygraph need an API key?
No, Whygraph runs without API keys or environment variables.
Is Whygraph hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Whygraph in Claude Desktop, Claude Code or Cursor?
Open Whygraph on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Whygraph with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
