
Git MCP Server
by cyanheadsio.github.cyanheads/git-mcp-serverv2.15.3
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
context tax
queued
security
queued
cold start
queued
freshness
Maintained46d ago
Install Git MCP server
Install in Claude Code
claude mcp add git-cyanheads -- npx -y @cyanheads/git-mcp-server run start:stdioInstall in Cursor
{
"mcpServers": {
"git-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"git-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server",
"run",
"start:stdio"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"git-cyanheads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"git-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server",
"run",
"start:stdio"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MCP_LOG_LEVEL | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| GIT_BASE_DIR | — | — | Optional absolute path to restrict all git operations to a specific directory tree. Provides security sandboxing for multi-tenant or shared environments. |
| MCP_HTTP_HOST | — | — | The hostname for the HTTP server. |
| MCP_HTTP_PORT | — | — | The port to run the HTTP server on. |
| MCP_HTTP_ENDPOINT_PATH | — | — | The endpoint path for the MCP server. |
| MCP_AUTH_MODE | — | — | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
Freshness
Maintained — last maintenance signal 46d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-24 · 46d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-08-24 · 46d ago · official registry · v2.15.3
FAQ
›How do I install the Git MCP server in Claude Code?
Run: claude mcp add git-cyanheads -- npx -y @cyanheads/git-mcp-server run start:stdio. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Git require an API key?
No required environment variables are declared in its published metadata.
›Can I use Git as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Git in the official MCP registry?
Yes, as io.github.cyanheads/git-mcp-server.
Alternatives to Git
Other version control MCP servers.