Git MCP Server
by abhishekkumar2021io.github.Abhishekkumar2021/gitv0.2.0
MCP server for local Git repositories — status, log, diff, file history, branches, and gated stage/commit — pure-JS (isomorphic-git), no git binary, from any MCP client.
context tax
queued
security
queued
cold start
queued
freshness
Slowing3mo ago
Install Git MCP server
Install in Claude Code
claude mcp add git -e GIT_ROOTS='<git-roots>' -- npx -y @abhishekmcp/gitInstall in Cursor
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<git-roots>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<git-roots>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<git-roots>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<git-roots>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GIT_ROOTS | yes | — | Allowed repo root directories (comma-separated). Required — the server refuses to start without it. |
| GIT_WRITABLE | — | — | Set to 1 or true to enable local write tools (stage/commit/branch/checkout). |
Freshness
Slowing — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-04 · 3mo ago · GitHub
Latest release
2026-07-04 · 3mo ago · GitHub · http-v0.1.0
Package published
no data · npm/PyPI
Registry entry updated
2026-06-28 · 3mo ago · official registry · v0.2.0
FAQ
›How do I install the Git MCP server in Claude Code?
Run: claude mcp add git -e GIT_ROOTS='<git-roots>' -- npx -y @abhishekmcp/git. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Git require an API key?
Yes. It expects GIT_ROOTS.
›Can I use Git as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Git in the official MCP registry?
Yes, as io.github.Abhishekkumar2021/git.
Alternatives to Git
Other version control MCP servers.