Skip to main content
Glama

mcp-git-inspector

License: MIT Zero Dependencies

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:

{
  "mcpServers": {
    "git-inspector": {
      "command": "npx",
      "args": ["-y", "mcp-git-inspector"]
    }
  }
}

Related MCP server: git-context-mcp

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

Available Tools

4 tools
git_change_risk_summaryA

Analyze uncommitted or branch Git diff and compute a structured review risk score (0-100) with sensitive area flags.

Inputs: cwd, baseRef.

git_file_hotspotsA

Identify the most frequently modified hotspot files across recent commits.

Inputs: cwd, topN, commitCount.

git_lint_commit_messageB

Validate a commit message against Conventional Commits guidelines.

Inputs: message (required).

git_search_commitsC

Search recent Git commit history by keyword.

Inputs: cwd, limit, query.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to perform code reviews by providing access to staged files, git diffs, and repository file content. It allows users to evaluate changes and context within any local git repository before committing or pushing.
      3
      4 npm
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI-powered git assistance including commit message generation, branch naming, and branch analysis using conventional commits and git status/diff/log.
      1
      -