Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ”„ Version Control
  3. Git Context MCP
Git Context MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 3:00:28 PM

Git Context MCP

User RatingsBe the first to rate and review this MCP server!
View Repository2 GitHub StarsTotal stargazers on GitHub for the source repository (2 stars).Visit Website
gitgithubcode-historydeveloper-tools

Traces code from a file and line range to its Git commits, GitHub PRs, and linked issues.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

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.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "muhannad-hash-git-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "git-context-mcp"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (5) Directory Badge Claim listing Alternatives๐Ÿ”„ More in Version Control

Overview

This MCP server explains why code exists by combining Git history with GitHub pull request and issue context. Use it when investigating a line, commit, file history, commit search result, or file ownership in a Git repository. GitHub context requires the GitHub CLI and authentication, but the server can operate without it.

Use cases

โ€ขTrace a line range to its originating commit and rationale
โ€ขInvestigate the story behind a commit
โ€ขReview a file's recent changes with linked PR and issue context
โ€ขSearch commits by keyword and inspect related GitHub discussions
โ€ขIdentify the main contributors to a file

Key features

โ€ขBlame context with commit, PR, and issue details
โ€ขCommit narratives with messages and diff statistics
โ€ขAnnotated file history
โ€ขKeyword-based commit search
โ€ขRanked file contributor summaries

Capabilities & Tool Schemas (5) ~89 tokensApproximate context cost of this serverโ€™s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server โ€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Git Context MCP.

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)

Documentation Overview

git-context-mcp

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.


Demo

Code
You: Why does line 87 of src/auth/session.ts exist?

Claude (using blame_context):
  Commit `a3f9c12` by Sarah Chen on 2024-08-14
  Message: "fix: rotate session tokens on privilege escalation"

  PR #441 โ€” "Security: fix session fixation vulnerability"
  Merged: 2024-08-15  |  Labels: security, critical

  PR Description:
  > After the pen test in sprint 22, we found that session tokens
  > weren't being rotated when a user's role changed. This allows
  > a stolen low-priv token to be used after the account is promoted.

  Linked Issue #389 โ€” "Session token not rotated on role change" (closed)
  > Reported by @contractor-red: "I was able to reuse a captured
  > token after my account was upgraded to admin..."

No more digging through git log, searching GitHub, and cross-referencing issue trackers. Claude does it in one step.


Tools

ToolWhat it does
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)

Installation

Option 1 โ€” npx (no install)

Terminal
claude mcp add git-context -- npx git-context-mcp

Option 2 โ€” global install

Terminal
npm install -g git-context-mcp
claude mcp add git-context -- git-context-mcp

Option 3 โ€” manual config

Add to ~/.claude/claude_mcp_config.json:

config.json
{
  "mcpServers": {
    "git-context": {
      "command": "npx",
      "args": ["git-context-mcp"]
    }
  }
}

Then restart Claude Code.


Requirements

  • Claude Code (or any MCP-compatible client)
  • git in PATH
  • gh CLI (install) + gh auth login for GitHub PR/issue lookups
    • Works without gh โ€” just skips PR/issue context

Usage examples

Once installed, talk to Claude naturally in any git repo:

Code
"Why does line 42 of src/db/connection.ts exist?"
"What's the story behind commit d4a8f91?"
"Who owns the most of src/payments/stripe.ts?"
"When was the rate limiting added? Search commits for 'rate limit'"
"Show me the last 5 changes to src/api/auth.ts and why each was made"

How it works

  1. blame_context runs git blame -p on your lines to find the commit hash(es)
  2. For each commit it calls git show for the full message and diff stat
  3. It hits the GitHub API (gh api /repos/:owner/:repo/commits/:hash/pulls) to find the PR
  4. It parses #NNN and /issues/NNN refs from the PR body and fetches each issue
  5. Everything is returned as structured markdown for Claude to reason over

No tokens stored. No data sent anywhere except GitHub's own API (same as gh CLI).


Contributing

PRs welcome. The entire server lives in src/index.ts.

bash
git clone https://github.com/muhannad-hash/git-context-mcp
cd git-context-mcp
npm install
npm run dev   # watch mode

License

MIT

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Version Control View all alternatives
  • Git MCP logoGit MCP

    gitmcp.io is a generic remote MCP server to connect to ANY GitHub repository or project for documentation

    ๐Ÿ”„ Version Control4 views
    Compare vs Git MCP โ†’
  • Git Insight MCP logoGit Insight MCP

    Semantic git queries beyond git log: who-touched (blame grouped by author with primary owner), introducing-PR, co-change suggestions, branch hygiene (ahead/behind/stale), recent-work standup, and full commit context. Local git plus optional GitHub API for PR and issue linkage.

    ๐Ÿ”„ Version Control3 views
    Compare vs Git Insight MCP โ†’
  • Gk Cli logoGk Cli

    A CLI for interacting with GitKraken APIs. Includes an MCP server via gk mcp that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more. Works with local tools and remote services.

    ๐Ÿ”„ Version Control3 views
    Compare vs Gk Cli โ†’
  • Octocode MCP logoOctocode MCP

    AI-powered developer assistant that enables advanced research, analysis and discovery across GitHub and NPM realms in realtime.

    ๐Ÿ”„ Version Control3 views
    Compare vs Octocode MCP โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
2
Stargazers on the source repository.
npm downloads
60
Package downloads in the last 30 days.
Last commit
5mo ago
Most recent push to the default branch.
Tools exposed
5
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about Git Context MCP

It accepts a file and line range, then returns the related commit, pull request description, and linked GitHub issues.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGit Context MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/muhannad-hash-git-context-mcp?style=directory)](https://allmcps.com/mcp/muhannad-hash-git-context-mcp)
HTML Embed
<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>

Technical Specs & Signals

Category๐Ÿ”„Version Control
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthOther
LicenseMIT
Last updatedAug 9, 2026
10/11 checks healthy over the last 32d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars2
GitHub Star CountTotal stargazers on GitHub representing community popularity (2 stars).
Last commit5mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Apr 13, 2026
npm downloads60/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
56Quality signal: Good ยท 56/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools28/30
Adoption & activity4/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 27d ago via OSV.dev ยท git-context-mcp (npm)

โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ”„ Version Control โ†’Best MCP servers for Git & Version Control โ†’Alternatives to Git Context MCP โ†’Install in Claude DesktopInstall in CursorInstall in VS Code