Git MCP Server
Expose Git repository operations to AI agents through 28 MCP tools over STDIO or Streamable HTTP.
Install Git MCP Server
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"git-mcp-server-2": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server@latest"
],
"env": {
"MCP_TRANSPORT_TYPE": "YOUR_VALUE_HERE",
"MCP_LOG_LEVEL": "YOUR_VALUE_HERE",
"MCP_HTTP_PORT": "YOUR_VALUE_HERE",
"GIT_BASE_DIR": "YOUR_VALUE_HERE",
"LOGS_DIR": "YOUR_VALUE_HERE",
"GIT_USERNAME": "YOUR_VALUE_HERE",
"GIT_EMAIL": "YOUR_VALUE_HERE",
"GIT_SIGN_COMMITS": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Automated check passed— started and listed 28 tools correctly (9d ago).
Overview
Use cases
- Clone repositories and inspect their status
- Stage changes and create signed commits
- Review history, diffs, authorship, and reflogs
- Manage branches, merges, rebases, and worktrees
- Fetch, pull, push, tag, and clean repositories
Key features
- 28 Git tools
- STDIO and Streamable HTTP transports
- Node.js and Bun runtime detection
- Session-specific working directories
- GPG and SSH commit signing
- Confirmation for destructive operations
Tools28
What Git MCP Server lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
1 high-severity advisory on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.
Scanned 15d ago via OSV.dev · @cyanheads/git-mcp-server@latest (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Git MCP Server works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Git MCP Server
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
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-mcp-server-2)<a href="https://allmcps.com/mcp/git-mcp-server-2"><img src="https://allmcps.com/api/badge/git-mcp-server-2?style=directory" alt="Git MCP Server on AllMCPs" /></a>