Git MCP Server
by Anthropic ยท โญ 3.1k stars ยท updated 1 months ago
Git operations directly from your AI assistant. Clone, commit, diff, branch, log โ full repository management without leaving your AI workflow. Tools to read, search, and manipulate Git repositories.
93
Excellent
Quality Score Breakdown
maintenance96/100
community90/100
documentation92/100
compatibility94/100
Use Cases
- โgit commits
- โbranch management
- โcode diffs
- โrepository inspection
โก One-Click Install Configs
Copy the config below and paste it into your AI client's config file.
๐ค Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git",
"--repository",
"/path/to/repo"
]
}
}
}โก Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git",
"--repository",
"/path/to/repo"
]
}
}
}๐ VS Code
.vscode/mcp.json
{
"mcp": {
"servers": {
"git": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-git",
"--repository",
"/path/to/repo"
]
}
}
}
}