The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Git Context MCP listing page.
An MCP server that answers the one question every developer has: "why does this code exist?"
git blame tells you who wrote a line. This tells you why.
Given a file and line range, git-context-mcp traces back through the commit, finds the pull request that landed it, reads the PR description, and surfaces every linked GitHub issue — all in one shot, directly inside Claude.
No more digging through git log, searching GitHub, and cross-referencing issue trackers. Claude does it in one step.
| Tool | What it does |
|---|---|
blame_context | File + line range → commit + PR description + linked issues |
commit_story | Commit hash → full narrative (message, diff stat, PR, issues) |
file_history | File → last N commits, each annotated with PR and issues |
search_commits | Keyword → matching commits with PR/issue context |
file_contributors | File → ranked author table (commits, lines owned, active dates) |
Add to ~/.claude/claude_mcp_config.json:
Then restart Claude Code.
git in PATHgh CLI (install) + gh auth login for GitHub PR/issue lookups
gh — just skips PR/issue contextOnce installed, talk to Claude naturally in any git repo:
blame_context runs git blame -p on your lines to find the commit hash(es)git show for the full message and diff statgh api /repos/:owner/:repo/commits/:hash/pulls) to find the PR#NNN and /issues/NNN refs from the PR body and fetches each issueNo tokens stored. No data sent anywhere except GitHub's own API (same as gh CLI).
PRs welcome. The entire server lives in src/index.ts.
MIT