Traces code from a file and line range to its Git commits, GitHub PRs, and linked issues.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Git Context MCP.
blame_contextFile + line range โ commit + PR description + linked issues
commit_storyCommit hash โ full narrative (message, diff stat, PR, issues)
file_historyFile โ last N commits, each annotated with PR and issues
search_commitsKeyword โ matching commits with PR/issue context
file_contributorsFile โ ranked author table (commits, lines owned, active dates)
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
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/muhannad-hash-git-context-mcp)<a href="https://allmcps.com/mcp/muhannad-hash-git-context-mcp"><img src="https://allmcps.com/api/badge/muhannad-hash-git-context-mcp?style=directory" alt="Git Context MCP on AllMCPs" /></a>