$ timeahead.in
/ servers/npm/@cyanheads/git-mcp-server
npm

@cyanheads/git-mcp-server

A secure and scalable Git MCP server enabling AI agents to perform comprehensive Git version control operations via STDIO and Streamable HTTP.

221 stars5k/wkupdated 35d agogithub ↗
82good
▣ Overview
VersionMCP SpecMCP SDKLicenseStatusTypeScriptBun

What it does

A Git MCP server that exposes 28 git operations to AI agents over STDIO or HTTP. The tools span repository management (init, clone, status, clean), staging and commits, commit history inspection and blame, branching and merging workflows, remote synchronization, and advanced operations like worktree management and stash. It includes a dedicated resource representing the current working directory and a prompt protocol for completing git sessions with review, documentation, and tagging. Supports both Node.js (≥20) and Bun (≥1.2).

Who it's for

Developers building AI workflows that need autonomous version control—Claude Code users automating commits and branches, teams using AI for code review and changelog generation, and deployments where an LLM should manage repositories without operator intervention.

Common use cases

  • Stage, diff, and commit changes directly from Claude Code without manual git CLI
  • Generate changelogs by analyzing commit history with LLM context via git_changelog_analyze
  • Automate branch creation, switching, and merging in multi-step workflows
  • Inspect commit blame and reflog to trace code authorship and decision history
  • Manage worktrees and stashes for parallel task branching

Setup pitfalls

  • Configure GIT_BASE_DIR and LOGS_DIR as absolute paths or tilde-expanded; the server runs git commands in these directories
  • Set GIT_USERNAME and GIT_EMAIL; commits will fail without them
  • High-risk class (writes filesystem, makes network calls)—run in sandboxed containers or restricted user accounts
  • One secret found during scanning; audit the code before using in production or shared environments
1 credential detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
80
28.0
Freshness
25%
100
25.0
Adoption
20%
68
13.7
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
81.7
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "cyanheadsgit": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/git-mcp-server"
      ]
    }
  }
}
📈 Score historylast 33 snapshots
4/30/20266/11/2026 · 33 snapshots
⚙ Maintenance health
27/ 100 · is this project alive?
contributors (1y)1
top contributor share100%
releases (1y)0
ci✓ passing
⛁ Raw data
weekly downloads5k
github stars221
forks55
open issues11
license✓ present
readme length17195 chars
last publish2d ago
last commit35d ago
last updated1d ago
install verified✓ pass · 28d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points