git-mcp-server

InstallView on GitHub

git-mcp-server is an MCP server by cyanheads. Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP. It has 246 GitHub stars and ranks #354 of 3,055 in Developer Tools by stars.

Category
Developer Tools
MCP evidence
Listed in the official MCP Registry · Its own npm package
Author
cyanheads
GitHub stars
246
This week
+1 stars this week (+0.4%) · +0 forks since 18 Nov 2026
Weekly downloads
4,408 (+204 vs last week)
Language
TypeScript
License
Apache-2.0 (open source)
Last update
2026-09-26 (2 months ago)
Forks
58
Created
2024-12-16 (23 months ago)
MCP Registry
io.github.cyanheads/git-mcp-server
Links
SourceWebsitenpm

How to install git-mcp-server

git-mcp-server is published on npm as @cyanheads/git-mcp-server. The command below is the one its README gives, as read on 10 Nov 2026.

  1. Get ready. It reads these environment variables: MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, GIT_BASE_DIR, LOGS_DIR, GIT_USERNAME, GIT_EMAIL, GIT_SIGN_COMMITS; put your own values in place of the placeholders. You need Node.js for npx.
  2. Add it to Claude Code from a terminal:
    claude mcp add git-mcp-server -e MCP_TRANSPORT_TYPE=<YOUR_MCP_TRANSPORT_TYPE> -e MCP_LOG_LEVEL=<YOUR_MCP_LOG_LEVEL> -e GIT_BASE_DIR=<YOUR_GIT_BASE_DIR> -e LOGS_DIR=<YOUR_LOGS_DIR> -e GIT_USERNAME=<YOUR_GIT_USERNAME> -e GIT_EMAIL=<YOUR_GIT_EMAIL> -e GIT_SIGN_COMMITS=<YOUR_GIT_SIGN_COMMITS> -- npx @cyanheads/git-mcp-server@latest
  3. Or add it to Cursor or Claude Desktop in .cursor/mcp.json or claude_desktop_config.json:
    {
      "mcpServers": {
        "git-mcp-server": {
          "command": "npx",
          "args": [
            "@cyanheads/git-mcp-server@latest"
          ],
          "env": {
            "MCP_TRANSPORT_TYPE": "<YOUR_MCP_TRANSPORT_TYPE>",
            "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
            "GIT_BASE_DIR": "<YOUR_GIT_BASE_DIR>",
            "LOGS_DIR": "<YOUR_LOGS_DIR>",
            "GIT_USERNAME": "<YOUR_GIT_USERNAME>",
            "GIT_EMAIL": "<YOUR_GIT_EMAIL>",
            "GIT_SIGN_COMMITS": "<YOUR_GIT_SIGN_COMMITS>"
          }
        }
      }
    }
  4. Restart the client and check it. Run claude mcp list, or open the client's MCP settings, and confirm git-mcp-server and its tools are listed. The install guide covers VS Code and Codex.

Report a problem with this listing · Advertise on MCP Harbor

Frequently asked questions

What is git-mcp-server?

git-mcp-server is an MCP server by cyanheads in the Developer Tools category. Clone, commit, diff, branch, merge, rebase, cherry-pick, stash, tag, and manage worktrees in local git repos via MCP. STDIO or Streamable HTTP. It has 246 GitHub stars and ranks #354 of 3,055 in Developer Tools by stars.

Is git-mcp-server free and open source?

The code in the git-mcp-server repository is published under the Apache-2.0 license, an open-source license that lets you read, modify and reuse the code. The license covers the code only. An app, account or API that git-mcp-server connects to can have its own price and terms, so check those before you rely on it in a commercial product.

What are the alternatives to git-mcp-server?

Other Developer Tools projects on MCP Harbor include rea, context7, codebase-memory-mcp. Each alternative links to its own page with stars, license and recent activity. The Developer Tools category ranks all 3,055 by stars, and you can re-sort it by growth this week.

Alternatives to git-mcp-server

reaTrending★ 477,881
morluto · TypeScript · MCP evidence: MCP Registry, npm package+10,551 stars this week (+2.3%)
Reverse engineer anything with agents, from app behavior down to native binaries.
context7★ 65,436
upstash · TypeScript · MCP evidence: MCP Registry+386 stars this week (+0.6%)
Context7 Platform -- Up-to-date docs for AI agents
DeusData · C · MCP evidence: MCP Registry, npm package+342 stars this week (+0.7%)
Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
GitNexus★ 48,787
abhigyanpatwari · TypeScript · MCP evidence: npm package+160 stars this week (+0.3%)
GitNexus: The Zero-Server Code Intelligence Engine
github · Go · MCP evidence: MCP Registry, README install line+181 stars this week (+0.5%)
GitHub's official MCP Server
tirth8205 · Python+107 stars this week (+0.3%)
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

All 3,055 Developer Tools MCP servers →

Data last updated . Stars and downloads are refreshed every day from GitHub and npm.

Contact MCP Harbor

We reply by email. You can also write to hello@mcpharbor.app.

Report a problem with this listing

git-mcp-servercyanheads · /tools/cyanheads-git-mcp-server/

We reply by email.