
Git
io.github.rog0xPublished by GitHub account rog0xv1.0.1Updated Oct 24, 2026
Git log, diff, blame, branch stats for AI agents
Overview
A local MCP server that lets an AI assistant inspect Git repositories: commit history, diffs, blame, branch status and activity statistics.
- What you can do
- Read commit history with filters by author, date range and file path, and compare refs with structured diff summaries or stats only. Show line-by-line authorship of a file, optionally for a line range or a specific commit. Summarize repository activity: commit counts, top contributors, most-changed files and trends over time. List branches with last commit info, ahead/behind counts and merged or unmerged status.
- When to use it
- Useful when you want an assistant to reason about a local repository's history, review what changed between branches or commits, find who last touched specific lines, or get a quick activity overview without calling a hosting API.
- Requirements
- Runs as a local process over stdio from the npm package @rog0x/mcp-git-tools. Needs Node.js 18 or later and Git installed and available on PATH. Each tool call requires an absolute path to the repository. No authentication, API keys or environment variables are declared.
Installation
In SourceWeft
- Open Git in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Prerequisites
- Node.js >= 18
- Git installed and available in PATH
Setup
Configuration
Add to your MCP client configuration:
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
Source: README.md at commit d7330b0
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts