git-mcp-server
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.
- 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 fornpx. - 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 - Or add it to Cursor or Claude Desktop in
.cursor/mcp.jsonorclaude_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>" } } } } - 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
All 3,055 Developer Tools MCP servers →
Data last updated . Stars and downloads are refreshed every day from GitHub and npm.