git-mcp-server
local MCP servergit-mcp-server is a local MCP server: Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more. Install it from npm as @cyanheads/git-mcp-server.
Installation
Terminal
claude mcp add io-github-cyanheads-git-mcp-server -e MCP_LOG_LEVEL=... -e GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"io-github-cyanheads-git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "...",
"GIT_BASE_DIR": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx) or Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
MCP_LOG_LEVEL,GIT_BASE_DIR,MCP_HTTP_HOST,MCP_HTTP_PORT,MCP_HTTP_ENDPOINT_PATH,MCP_AUTH_MODE
Summary
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
git-mcp-server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| git-mcp-server | 241 | Local | Yes | npm |
| pg-aiguide | 1,850 | Hosted | Yes | None |
| gopeak | 261 | Local | No | npm |
| virustotal | 149 | Local | Yes | npm |
| MediaWiki MCP Server | 134 | Local | Yes | mcpb |
Questions
It reads 6 environment variables: MCP_LOG_LEVEL, GIT_BASE_DIR, MCP_HTTP_HOST, MCP_HTTP_PORT, MCP_HTTP_ENDPOINT_PATH, MCP_AUTH_MODE. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx) or Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
git-mcp-server is a local MCP server distributed as the npm package @cyanheads/git-mcp-server.
Run: claude mcp add io-github-cyanheads-git-mcp-server -e MCP_LOG_LEVEL=... -e GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server
Run: codex mcp add io-github-cyanheads-git-mcp-server --env MCP_LOG_LEVEL=... --env GIT_BASE_DIR=... -- npx -y @cyanheads/git-mcp-server
Similar MCP servers
NameStars
- pg-aiguideio.github.timescale/pg-aiguide1,850
- gopeakio.github.HaD0Yun/gopeak261
- virustotalio.github.BurtTheCoder/virustotal149
- MediaWiki MCP Serverio.github.ProfessionalWiki/mediawiki-mcp-server134
- Unraid MCPai.dinglebear/unraid-mcp131
- Unraid MCPtv.tootie/unraid-mcp131
- code-indexio.github.Regsorm/code-index130
- ha-mcpio.github.homeassistant-ai/ha-mcp4,868