loading…
Search for a command to run...
loading…
Semantic git queries via MCP. Beyond git log — answer who/what/why about any line, file, or branch with blame, co-change, PR linkage.
Semantic git queries via MCP. Beyond git log — answer who/what/why about any line, file, or branch with blame, co-change, PR linkage.
git-insight-mcp MCP server CI npm version License: MIT
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.
Devs ask these constantly; git answers poorly:
git blame only gives lines, not authors-by-regionLLM agents need this context to make safe edits. Currently they git log -n 5 and miss everything.
npm install -g git-insight-mcp
Wire into Claude Code:
claude mcp add --scope user git-insight -- git-insight-mcp
Or 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.
| Tool | Purpose |
|---|---|
who_touched |
Group blame by author. Lines, commits, last-touched, primary owner. Optional line-range narrowing. |
introducing_pr |
Find the PR that introduced a line (or commit). Parses merge messages first; falls back to GitHub API. |
co_change |
Files most often changed together with the input file. |
branch_hygiene |
List branches with ahead/behind, last commit, merged status, stale flag. |
recent_work |
Standup helper: author's commits + files + ins/del in a window. |
commit_context |
Full commit context: subject, body, files, PR, related issues. |
who_touched){
"file": "src/auth.ts",
"total_lines": 124,
"authors": [
{ "name": "alice", "email": "[email protected]", "lines": 87, "commits": 12, "last_commit_date": "2026-04-12T10:33:01.000Z" },
{ "name": "bob", "email": "[email protected]", "lines": 37, "commits": 4, "last_commit_date": "2026-01-03T18:14:55.000Z" }
],
"primary_owner": "alice"
}
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 server
git clone https://github.com/HasanJahidul/git-insight-mcp.git
cd git-insight-mcp
npm install
npm run build
node dist/cli.js branches
co_change is O(window × files-per-commit) — defaults capped at 1000 commits.MIT
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"git-insight-mcp": {
"command": "npx",
"args": []
}
}
}