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.
Limited trust
30 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
83/100 for listing completeness. Lost points: short README, 1 of 10 tools barely described, short summary.
How quality is graded
Where the 30 comes from
0 + 6 + 3 + 10 + 4 + 7 = 30. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "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 capabilitiesbaseBranchtoolBranch to compare against (default: main or master)
git_blametoolShow who last modified each line of a file with commit info
git_branchtoolList branches with last commit info, ahead/behind counts, merged/unmerged status
git_difftoolShow diff between commits, branches, or tags with change summaries
git_logtoolGet commit history with filtering by author, date range, and file path
git_statstoolRepository statistics: commits, contributors, activity over time, most changed files
includeRemotetoolInclude remote-tracking branches
summaryOnlytoolReturn only stats without full diff text
topAuthorstoolNumber of top contributors to list (default: 10)
topFilestoolNumber 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
| Tool | Description |
|---|---|
git_log | Get commit history with filtering by author, date range, and file path |
git_diff | Show diff between commits, branches, or tags with change summaries |
git_blame | Show who last modified each line of a file with commit info |
git_stats | Repository statistics: commits, contributors, activity over time, most changed files |
git_branch | List 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 repositorycount— Number of commits to return (default: 20)author— Filter by author name or emailsince/until— Date range filterspath— 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 repositoryfrom— Start ref (default: HEAD~1)to— End ref (default: HEAD)path— Limit diff to a specific file or directorysummaryOnly— 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 repositoryfilePath(required) — File path relative to repo rootstartLine/endLine— Blame a specific line rangeref— Blame at a specific commit
git_stats
Get a high-level overview of repository activity.
Parameters:
repoPath(required) — Absolute path to the Git repositorytopAuthors— 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 repositorybaseBranch— Branch to compare against (default: main or master)includeRemote— Include remote-tracking branchesmergedOnly/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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.