PluginBench
MCP Server
Active
MIT

Git MCP Server

io.github.Abhishekkumar2021/git

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_ROOTS
    required

    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).

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/git

Related MCP servers

Files

Active

Sandboxed local filesystem: read, search, edit, copy, archive, and safely manage files.

1
TypeScript
MIT
View repository →

GitHub

Active

GitHub via MCP: search, repos, issues, PRs, files, notifications. OAuth device flow or token.

1
TypeScript
MIT
View repository →

Notes

Active

Local markdown notes: ranked + semantic search, tags, todos, and a wiki-link knowledge graph.

1
TypeScript
MIT
View repository →