rog0x avatar

Git

rog0x/mcp-git-tools

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 tools

Public 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

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.


View the full README on GitHub

Details

Repository
github.com/rog0x/mcp-git-tools
Categories
Developer Tools, Monitoring & Observability
Package
@rog0x/mcp-git-tools
Transport
STDIO
Registry
MCP registry, active

More from rog0x

Related Developer Tools MCP servers

View all
1dave-london avatarGithubdave-london/pareMCP server for GitHub operations (PRs, issues, actions) with structured, token-efficient output128stars
2aniongithub avatardevcontainer-mcpaniongithub/devcontainer-mcpManage dev container environments via MCP (Docker, DevPod, Codespaces).28stars
3tadas-github avatarA2asearch Mcptadas-github/a2asearch-mcpSearch 10,000+ AI agents, MCP servers, and CLI tools via A2ASearch from any MCP client.17stars
4aybelatchane avatarTerminal MCP Serveraybelatchane/mcp-server-terminalMCP server for AI agents to interact with terminal applications. Think Playwright for terminals.15stars
5pungggi avatarSmart Terminalpungggi/smart-terminal-mcpMCP PTY server providing AI agents with real interactive terminal access12stars
6mkpvishnu avatarTerminal Mcpmkpvishnu/terminal-mcpMCP server for interactive terminal sessions — SSH, REPLs, database CLIs, TUI apps7stars