mcp-git-inspector
# mcp-git-inspector
[](LICENSE)
[](package.json)
Zero-dependency **Model Context Protocol (MCP)** server that gives Claude Code, Cursor, Windsurf, and Antigravity structured Git intelligence: PR risk scoring, file hotspot detection, commit history search, and Conventional Commits linting.
## Quick Setup (Claude Desktop / Cursor / Antigravity)
Add to your MCP config:
```json
{
"mcpServers": {
"git-inspector": {
"command": "npx",
"args": ["-y", "mcp-git-inspector"]
}
}
}
```
## Tools Provided
| Tool | Description |
| --- | --- |
| `git_change_risk_summary` | Computes a 0–100 review risk score from uncommitted or branch diffs, flagging auth/security, DB migrations, CI/CD, and dependency changes. |
| `git_search_commits` | Searches recent commit history by keyword. |
| `git_file_hotspots` | Finds the most frequently churned files across recent commits. |
| `git_lint_commit_message` | Validates commit messages against Conventional Commits rules. |
## License
MIT
TDQS
Scored across 4 tools
Each tool targets a clearly distinct operation: diff risk scoring, commit message search, hotspot file analysis, and commit message linting. There is no meaningful overlap between any pair, so an agent can select the right tool from the name alone.
All four tools follow a strict `git_<verb>_<noun>` snake_case pattern (git_change_risk_summary, git_search_commits, git_file_hotspots, git_lint_commit_message). The shared `git_` prefix and consistent casing make the set highly predictable.
Four tools is a tight, focused surface where each tool earns its place in a review/analysis workflow. It is on the thin side for a 'git inspector' but nothing is redundant or filler.
The read-only analysis workflow is partially covered, but there are notable gaps: no tool to fetch a specific commit's details, list branches, or view file blame/history for a single file. An agent investigating a hotspot or search hit has no follow-up tool to drill into the underlying commit.