$ 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.

226 stars4k/wkupdated 3d agogithub ↗
81good
▣ Overview
VersionMCP SpecMCP SDKLicenseStatusTypeScriptBun

What it does

The server exposes 28 git operations as MCP tools, enabling AI agents to perform comprehensive version control tasks via STDIO or HTTP. Operations span repository management (init, clone, status, clean), staging and commits, history inspection (log, blame, reflog), branching and merging (branch, checkout, merge, rebase, cherry-pick), remote operations (fetch, pull, push), and advanced workflows (tag, stash, reset, worktree management). It integrates with local git installations, supports commit signing, and provides a Git Wrap-up prompt for structured completion workflows: review, document, commit, and tag.

Who it's for

Backend engineers and development teams who want Claude Code or other MCP clients to manage git workflows programmatically. Particularly suited for developers building autonomous agents that need to handle version control independently—from creating feature branches and commits to resolving merge conflicts and publishing changes.

Common use cases

  • Query git history and blame within Claude Code for code context and authorship insights
  • Automate multi-step git workflows: feature branch creation, commits, cherry-picks, and rebasing
  • Generate structured changelogs by analyzing commit patterns with the built-in changelog analysis tool
  • Manage parallel development with git worktrees, allowing agents to work across multiple branches simultaneously
  • Automate cleanup and state reset (stash, reset, clean) in CI/CD or agent recovery scenarios

Setup pitfalls

  • GIT_USERNAME and GIT_EMAIL must be set and match your git configuration. GIT_SIGN_COMMITS adds complexity—skip if you don't use commit signing.
  • The server reads and writes your filesystem and makes network calls for remote operations. High risk classification—ensure it runs in a trusted environment or sandbox appropriate for your use case. Restrict permissions via GIT_BASE_DIR.
  • One secret was detected in the codebase during scanning. Audit environment variable handling carefully, especially around credentials or API tokens in git configuration.
  • Requires Node.js ≥ 20.0.0 or Bun ≥ 1.2.0 with git installed and accessible on PATH.
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%
67
13.5
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
80.5
⚿ 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 44 snapshots
4/30/20267/1/2026 · 44 snapshots
⚙ Maintenance health
27/ 100 · is this project alive?
contributors (1y)1
top contributor share100%
releases (1y)0
ci✓ passing
⛁ Raw data
weekly downloads4k
github stars226
forks56
open issues10
license✓ present
readme length17195 chars
last publish7d ago
last commit3d ago
last updated1d ago
install verified✓ pass · 53d 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