What is the Git MCP server?
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
How to install Git
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
GIT_ROOTSrequiredAllowed repo root directories (comma-separated). Required — the server refuses to start without it.
GIT_WRITABLESet to 1 or true to enable local write tools (stage/commit/branch/checkout).
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<YOUR_GIT_ROOTS>",
"GIT_WRITABLE": "<YOUR_GIT_WRITABLE>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<YOUR_GIT_ROOTS>",
"GIT_WRITABLE": "<YOUR_GIT_WRITABLE>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<YOUR_GIT_ROOTS>",
"GIT_WRITABLE": "<YOUR_GIT_WRITABLE>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<YOUR_GIT_ROOTS>",
"GIT_WRITABLE": "<YOUR_GIT_WRITABLE>"
}
}
}
}Claude Code
claude mcp add git --env GIT_ROOTS=<YOUR_GIT_ROOTS> --env GIT_WRITABLE=<YOUR_GIT_WRITABLE> -- npx -y @abhishekmcp/gitRelated MCP servers
Files
Active
Sandboxed local filesystem: read, search, edit, copy, archive, and safely manage files.
1
View repository →TypeScript
MIT
GitHub
Active
GitHub via MCP: search, repos, issues, PRs, files, notifications. OAuth device flow or token.
1
View repository →TypeScript
MIT
Notes
Active
Local markdown notes: ranked + semantic search, tags, todos, and a wiki-link knowledge graph.
1
View repository →TypeScript
MIT