
Git
Wraps native git commands into five MCP tools that let AI agents analyze local repositories without touching the GitHub API. You get git_log with filtering by author, date, and path, git_diff for comparing refs with change summaries, git_blame for line-by-line authorship, git_stats for commit and contributor breakdowns, and git_branch for listing branches with ahead/behind counts and merge status. Runs on Node.js 18+ and calls git directly from your PATH. Useful when you want Claude to review commit history, track down who changed specific lines, or understand repository activity patterns from the filesystem rather than a remote API.
- tools
- 5
- transport
- STDIO
- last updated
- Mar 22, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
git_logGet commit history with filtering by author, date range, and file path
Get commit history with filtering by author, date range, and file path
No parameter schema in public metadata yet.
git_diffShow diff between commits, branches, or tags with change summaries
Show diff between commits, branches, or tags with change summaries
No parameter schema in public metadata yet.
git_blameShow who last modified each line of a file with commit info
Show who last modified each line of a file with commit info
No parameter schema in public metadata yet.
git_statsRepository statistics: commits, contributors, activity over time, most changed files
Repository statistics: commits, contributors, activity over time, most changed files
No parameter schema in public metadata yet.
git_branchList branches with last commit info, ahead/behind counts, merged/unmerged status
List branches with last commit info, ahead/behind counts, merged/unmerged status
No parameter schema in public metadata yet.
Sponsors
Readme
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.
Details
- Repository
- github.com/rog0x/mcp-git-tools
- Categories
- Developer Tools, Monitoring & Observability
- Package
@rog0x/mcp-git-tools- Transport
- STDIO
- Registry
- MCP registry, active