A Git MCP server that doesn't suck
A Git MCP server that doesn't suck. That is what the git mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
Exposes the full Git workflow to any MCP-compatible AI agent — inspect, write, branch, remote, stash, rebase, LFS, git-flow, documentation lookup, and more. Designed to be safe by default, composable, and fast. Powered by simple-git.
The server publishes 14 tools. What each one is for:
Safety-first — destructive operations require explicit confirmation; force push and hook bypass are opt-in via server configMulti-repo — pass repo_path per-call or configure a server-level defaultCross-platform — macOS, Linux, Windows (Git for Windows)Inspect-before — mutate workflow rulesVariable — DefaultGIT_REPO_PATH — —GIT_ALLOW_NO_VERIFY — falseGIT_ALLOW_FORCE_PUSH — falseGIT_ALLOW_FLOW_HOOKS — falseGIT_AUTO_SIGN_COMMITS — falseGIT_AUTO_SIGN_TAGS — falseGIT_SIGNING_KEY — —Configuration is passed through the environment: GIT_REPO_PATH, GIT_SIGNING_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
@selfagency/git-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Git's toolset — Safety-first, Multi-repo, Cross-platform and 11 more — is a fair guide to whether it matches your workflow.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Safety-first | destructive operations require explicit confirmation; force push and hook bypass are opt-in via server config |
| Multi-repo | pass repo_path per-call or configure a server-level default |
| Cross-platform | macOS, Linux, Windows (Git for Windows) |
| Inspect-before | mutate workflow rules |
| Variable | Default |
| GIT_REPO_PATH | — |
| GIT_ALLOW_NO_VERIFY | false |
| GIT_ALLOW_FORCE_PUSH | false |
| GIT_ALLOW_FLOW_HOOKS | false |
| GIT_AUTO_SIGN_COMMITS | false |
| GIT_AUTO_SIGN_TAGS | false |
| GIT_SIGNING_KEY | — |
| GIT_SIGNING_FORMAT | — |
| Action | Description |
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "@selfagency/git-mcp", "--repo-path", "/path/to/your/repo"]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GIT_REPO_PATH | Filesystem location the server is allowed to use. | Optional |
| GIT_SIGNING_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.