Git runs on your own machine — the client starts it, so there is no endpoint to ping. 50 installs a week from npm. Last commit 4 Jul 2026.
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
We read the source, 5 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
const stored = path.join(trashDir, id, path.basename(abs));
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add git -e 'GIT_ROOTS=<GIT_ROOTS>' -- npx -y @abhishekmcp/git
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>"
}
}
}
}
[mcp_servers.git]
command = "npx"
args = ["-y", "@abhishekmcp/git"]
env = { GIT_ROOTS = "<GIT_ROOTS>" }
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>"
}
}
}
}
{
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "<GIT_ROOTS>"
}
}
}
}
Put your own value in place of
<GIT_ROOTS> (Allowed repo root directories (comma-separated). Required — the server refuses to start without it).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
GIT_WRITABLE (Set to 1 or true to enable local write tools (stage/commit/branch/checkout)).
Local git operations over MCP: status, diff, log, branches and commits.
Pare Git ג€” Structured git operations (status, log, diff, branch, commit, push) as typed JSON.
Structured git operations (status, log, diff, branch, show) as typed JSON.
Git log, diff, blame, branch stats for AI agents
Trace code history, commit reasoning, and PR context directly from Git logs.
Search donors and contacts, giving history, notes and projects, and log notes, tags and gifts.
Check, diff and history of MCP tool definitions, from a public signed log of 88k+ servers.
Open-source MCP server: encrypted local keys and state, operator approval gates, a hash-chained log.
Answers built from our own checks of this server.