Semantic Git queries for ownership, introducing pull requests, co-changed files, branch hygiene, recent work, and commit context.
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 Insight MCP.
HasanJahidul/git-insight-mcp MCP server gives an MCP-compatible client structured answers about repository history and branch state. Its queries operate on local Git data and cover authorship, commit relationships, branch hygiene, recent activity, and files that tend to change together.
The server is intended for questions such as who last worked on a region of a file, which commit introduced a line, which branches are stale or unmerged, and what a contributor changed during a time window. With a GitHub token, it can also associate commits with pull requests and related issues. Without that token, the local Git features remain available.
The project runs as a local stdio MCP server. An MCP client starts the git-insight-mcp executable, and the server reads the repositoryβs local history to answer tool requests. It is not limited to the most recent few commits: several tools derive results from blame data, commit windows, branch comparisons, and commit metadata.
For introducing pull requests, the server first examines merge-message information and can fall back to the GitHub API. GitHub access is limited to GitHub repositories; GitLab and Bitbucket are not supported. Pull-request results are not cached in the current version, so API rate limits apply. An authenticated GitHub API limit is documented as 5,000 requests per hour.
Install the package globally with npm:
A Claude Code configuration can start it with:
Other MCP-compatible clients can launch the same executable as a stdio server. Set GH_TOKEN when pull-request or issue lookups are needed. The token is optional for local Git queries.
The repository can also be built from source by cloning it, running npm install, running npm run build, and invoking the resulting CLI under dist/cli.js.
who_touched groups blame results by author and reports line counts, related commits, last-touch dates, and a primary owner. It accepts an optional line range.introducing_pr looks for the pull request associated with a line or commit, using merge messages before consulting GitHub.co_change finds files most frequently changed alongside a selected file.branch_hygiene reports ahead and behind counts, the last commit, merged state, and whether branches are stale.recent_work summarizes an authorβs commits, files, and insertions or deletions over a selected period.commit_context returns commit subject and body, changed files, pull-request information, and related issues.The command-line interface also exposes sanity-check commands such as who-touched, co-change, branches, recent, commit, and intro-pr.
co_change can be expensive because its work scales with the commit window and the number of files per commit; the default history window is capped at 1,000 commits. Function-level ownership is approximated using line ranges rather than an AST, and renames are not tracked yet.
GitHub linkage requires the optional token and is subject to API limits. The current release supports GitHub only for remote repository metadata. HasanJahidul/git-insight-mcp MCP server is licensed under 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/hasanjahidul-git-insight-mcp)<a href="https://allmcps.com/mcp/hasanjahidul-git-insight-mcp"><img src="https://allmcps.com/api/badge/hasanjahidul-git-insight-mcp?style=directory" alt="Git Insight MCP on AllMCPs" /></a>