Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
Connect Runs on your machine
claude mcp add git -e GIT_ROOTS=<GIT_ROOTS> -e GIT_WRITABLE=<GIT_WRITABLE> -- npx -y @abhishekmcp/[email protected]
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>",
"GIT_WRITABLE": "<GIT_WRITABLE>"
}
}
}
}
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>",
"GIT_WRITABLE": "<GIT_WRITABLE>"
}
}
}
}
{
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>",
"GIT_WRITABLE": "<GIT_WRITABLE>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GIT_ROOTSRequired | Allowed repo root directories (comma-separated). Required — the server refuses to start without it. |
GIT_WRITABLEOptional | Set to 1 or true to enable local write tools (stage/commit/branch/checkout). |
Details
| Package | @abhishekmcp/[email protected] (NPM, stdio) |
| First published | 28 Jun 2026 |
| Last updated | 28 Jun 2026 |
| Registry name | io.github.Abhishekkumar2021/git |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
