Git Insight MCP
git-insight-mcp
Semantic git queries via MCP. Beyond git log — answer who/what/when/why about any line, file, or branch.

Pairs with terminal-history-mcp and localhost-mcp. Together: what you ran, what's running, what you changed.
Why
Devs ask these constantly; git answers poorly:
"Who last touched this function?" —
git blameonly gives lines, not authors-by-region"What PR introduced this line?" — manual: blame → commit SHA → search GH
"Which files always change together?" — no built-in
"Show unmerged branches older than 30 days" — bash one-liner gymnastics
"What did I work on last week?" — manual log scrub
LLM agents need this context to make safe edits. Currently they git log -n 5 and miss everything.
Related MCP server: Continuum
Install
npm install -g git-insight-mcpWire into Claude Code:
claude mcp add --scope user git-insight -- git-insight-mcpOr any MCP-compatible client. Runs as a stdio MCP server.
For PR / issue lookups, set a GitHub token:
export GH_TOKEN=ghp_...Without a token, the local-git tools still work. PR linkage is skipped.
Tools
Tool | Purpose |
| Group blame by author. Lines, commits, last-touched, primary owner. Optional line-range narrowing. |
| Find the PR that introduced a line (or commit). Parses merge messages first; falls back to GitHub API. |
| Files most often changed together with the input file. |
| List branches with ahead/behind, last commit, merged status, stale flag. |
| Standup helper: author's commits + files + ins/del in a window. |
| Full commit context: subject, body, files, PR, related issues. |
Sample output (who_touched)
{
"file": "src/auth.ts",
"total_lines": 124,
"authors": [
{ "name": "alice", "email": "alice@x.com", "lines": 87, "commits": 12, "last_commit_date": "2026-04-12T10:33:01.000Z" },
{ "name": "bob", "email": "bob@x.com", "lines": 37, "commits": 4, "last_commit_date": "2026-01-03T18:14:55.000Z" }
],
"primary_owner": "alice"
}CLI usage (sanity checks)
git-insight-mcp who-touched src/auth.ts
git-insight-mcp co-change src/auth.ts
git-insight-mcp branches
git-insight-mcp recent alice
git-insight-mcp commit a3e577e
git-insight-mcp intro-pr src/auth.ts:42
git-insight-mcp intro-pr a3e577e
git-insight-mcp # MCP stdio serverBuild from source
git clone https://github.com/HasanJahidul/git-insight-mcp.git
cd git-insight-mcp
npm install
npm run build
node dist/cli.js branchesLimits (v0.1)
GitHub only (no GitLab/Bitbucket yet).
co_changeis O(window × files-per-commit) — defaults capped at 1000 commits.Function-level blame is by line range, not AST. Renames not yet tracked.
GH API rate limit applies (5000/h authed). PR results uncached this version.
License
MIT
Maintenance
Related MCP Servers
- Alicense-qualityCmaintenanceDeep code indexing for AI agents. Search symbols, navigate call graphs, explore inheritance, track git history — all via MCP.Last updated52MIT
- Alicense-qualityDmaintenanceAutomatically extracts architectural decisions, patterns, and insights from Git commits to build a local, structured project memory. It exposes this living context to AI tools via MCP, allowing them to understand the historical reasoning and evolution behind your codebase.Last updated187MIT
- FlicenseAqualityDmaintenanceAn MCP server that transforms repositories into queryable knowledge by combining static code analysis with git history tracking. It allows users to investigate codebase structure, identify fragile files based on churn, and receive risk assessments through natural language queries.Last updated7
- Alicense-qualityBmaintenanceDev intelligence layer that builds a knowledge graph from any codebase and exposes 7 MCP tools for graph-powered reasoning, impact analysis, and preflight safety and governance checks.Last updated32Apache 2.0
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HasanJahidul/git-insight-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server