Skip to content
MCP server
Registry

git MCP Server

Git log, diff, blame, branch stats for AI agents

git scores 30 (Limited), licensed MIT and written in TypeScript. It installs as a local process. It declares 10 tools. Filed under Version control. GitHub shows 0 stars. Package registries report about 63 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by rog0xMITTypeScript0 stars
Trust score
30Limited
Trust score 30 of 100, Limited

Limited trust

30 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 30 comes from

0 + 6 + 3 + 10 + 4 + 7 = 30. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "rog0x-mcp-git-tools": {      "command": "npx",      "args": [        "-y",        "@rog0x/mcp-git-tools@1.0.1"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools10Tool docs quality grade C

All capabilities
  • Branch to compare against (default: main or master)

  • Show who last modified each line of a file with commit info

  • List branches with last commit info, ahead/behind counts, merged/unmerged status

  • Show diff between commits, branches, or tags with change summaries

  • Get commit history with filtering by author, date range, and file path

  • Repository statistics: commits, contributors, activity over time, most changed files

  • Include remote-tracking branches

  • Return only stats without full diff text

  • Number of top contributors to list (default: 10)

  • Number of most-changed files to list (default: 10)

About

mcp-git-tools

Git repository analysis tools for AI agents, served over MCP (Model Context Protocol). Analyzes local repositories using native git commands — no GitHub API required.

Tools

ToolDescription
git_logGet commit history with filtering by author, date range, and file path
git_diffShow diff between commits, branches, or tags with change summaries
git_blameShow who last modified each line of a file with commit info
git_statsRepository statistics: commits, contributors, activity over time, most changed files
git_branchList branches with last commit info, ahead/behind counts, merged/unmerged status

Prerequisites

  • Node.js >= 18
  • Git installed and available in PATH

Setup

npm install
npm run build

Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "git-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-git-tools/dist/index.js"]
    }
  }
}

Tool Details

git_log

Retrieve recent commit history with optional filters.

Parameters:

  • repoPath (required) — Absolute path to the Git repository
  • count — Number of commits to return (default: 20)
  • author — Filter by author name or email
  • since / until — Date range filters
  • path — Filter to commits touching a specific file or directory

git_diff

Compare two refs and get a structured summary of changes.

Parameters:

  • repoPath (required) — Absolute path to the Git repository
  • from — Start ref (default: HEAD~1)
  • to — End ref (default: HEAD)
  • path — Limit diff to a specific file or directory
  • summaryOnly — Return only stats without full diff text

git_blame

See line-by-line authorship of a file.

Parameters:

  • repoPath (required) — Absolute path to the Git repository
  • filePath (required) — File path relative to repo root
  • startLine / endLine — Blame a specific line range
  • ref — Blame at a specific commit

git_stats

Get a high-level overview of repository activity.

Parameters:

  • repoPath (required) — Absolute path to the Git repository
  • topAuthors — Number of top contributors to list (default: 10)
  • topFiles — Number of most-changed files to list (default: 10)

git_branch

List and analyze branches.

Parameters:

  • repoPath (required) — Absolute path to the Git repository
  • baseBranch — Branch to compare against (default: main or master)
  • includeRemote — Include remote-tracking branches
  • mergedOnly / unmergedOnly — Filter by merge status

License

MIT

Frequently asked questions

What is git MCP Server?

Git log, diff, blame, branch stats for AI agents

How do I install git MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. git MCP Server runs locally from the npm package @rog0x/mcp-git-tools with the command npx -y @rog0x/mcp-git-tools@1.0.1.

Is git MCP Server free and open source?

Yes. git MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does git MCP Server support remote (HTTP) connections?

No remote endpoint is listed for git MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does git MCP Server provide?

git MCP Server provides 10 tools, including baseBranch, git_blame, git_branch, and git_diff. See the full tool list for descriptions and parameters.

How is git MCP Server's trust score calculated?

git MCP Server scores 30 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server