Git MCP Server
Comprehensive Git MCP server enabling native git tools including clone, commit…
- Pricing
- Open source
- Runs
- Locally or Remotely
- Version
- 2.15.3
- Listing updated
- 4 days ago
About Git MCP Server
Git MCP Server is an open-source MCP server for developer tools. It can run locally on your machine or as a hosted remote server.
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
Install
Run in a terminal
claude mcp add git-mcp-server -- npx -y @cyanheads/git-mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
]
}
}
}Configuration
MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').GIT_BASE_DIROptional absolute path to restrict all git operations to a specific directory tree. Provides security sandboxing for multi-tenant or shared environments.MCP_HTTP_HOSTThe hostname for the HTTP server.MCP_HTTP_PORTThe port to run the HTTP server on.MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').GIT_BASE_DIROptional absolute path to restrict all git operations to a specific directory tree. Provides security sandboxing for multi-tenant or shared environments.
Pricing
Open source
Git MCP Server FAQ
Is Git MCP Server free?
Yes. Git MCP Server is open source, so you can use and self-host it for free.
How do I add Git MCP Server to Claude Code?
Run this command in your terminal: claude mcp add git-mcp-server -- npx -y @cyanheads/git-mcp-server
What are the best alternatives to Git MCP Server?
The closest alternatives to Git MCP Server are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Git MCP Server

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools