Git MCP Server
Local Git history, diffs, commits, and branch operations for repository-aware agents.
Overview
The reference Git server gives an MCP client access to a local repository's history, branches, diffs, and commit operations. It is useful for review preparation, changelog work, and understanding changes without reading a full working tree. Operations apply to the repository path configured at launch.
Capabilities
- Show history
- Inspect diffs
- Create commits
- Branch operations
- Repository status
Connection profile
- Transports
- stdio
- Authentication
- None (local process permissions)
- License
- MIT
- Vendor
- Model Context Protocol project
- Repository
- github.com/modelcontextprotocol/servers
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
uvx mcp-server-git --repository /path/to/repository
Security notes
- Commit and branch tools can change repository state. Work in a clean checkout and review diffs before committing.
- Point the server at one repository, not a parent directory containing unrelated projects.
- Do not expose repositories that contain secrets or unreviewed customer data to an agent session.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Used in these workflows
Use GitHub for PR context, a local Git server for the diff and history, and a scoped filesystem server for surrounding code before writing a review.
WorkflowTriage GitHub issues into a reviewed action planSearch and classify open issues, gather repository context, and produce a triage plan without letting the agent silently mutate the tracker.
Related failure modes
Sources & evidence
- github.com/modelcontextprotocol/servers/tree/main/src/gitRepository · checked Oct 23, 2026 · documented
The reference servers repository documents the Git server's repository argument and available Git tools.