Git log, diff, blame, branch stats for AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Git repository analysis tools for AI agents, served over MCP (Model Context Protocol). Analyzes local repositories using native git commands β no GitHub API required.
| 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 |
Add to your MCP client configuration:
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 directoryCompare 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 textSee 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 commitGet 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)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 statusMIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/git-2)<a href="https://allmcps.com/mcp/git-2"><img src="https://allmcps.com/api/badge/git-2?style=directory" alt="Git on AllMCPs" /></a>