git-mcp
v0.4.2A Git MCP server that doesn't suck
Values you need
| Variable | What it is | |
|---|---|---|
GIT_REPO_PATH | optional | Default repository path for all tool requests. Can also be set via the --repo / --repo-path CLI argument. If omitted, each tool call must supply repo_path explicitly. |
GIT_ALLOW_NO_VERIFY | optional | Set to 'true' to expose a no_verify parameter on commit and push tools, passing --no-verify to Git and bypassing pre-commit / pre-push hooks. |
GIT_ALLOW_FORCE_PUSH | optional | Set to 'true' to expose a force parameter on push tools. Remote branch protection rules (GitHub/GitLab) are still enforced server-side regardless. |
GIT_ALLOW_FLOW_HOOKS | optional | Set to 'true' to allow git_flow to execute git-flow-next-compatible hook and filter programs discovered from git config or repository hook locations. |
GIT_SIGNING_KEY | optional secret | Default signing key: a GPG key ID, an SSH public key path, or empty to use git's configured user.signingkey. Used when GIT_AUTO_SIGN_COMMITS or GIT_AUTO_SIGN_TAGS is enabled. |
GIT_SIGNING_FORMAT | optional | Signing format for commits and tags. Accepted values: openpgp, ssh, x509. |
GIT_AUTO_SIGN_COMMITS | optional | Set to 'true' to automatically sign all commits produced by this server. |
GIT_AUTO_SIGN_TAGS | optional | Set to 'true' to automatically sign all tags produced by this server. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add git-mcp -- npx -y @selfagency/git-mcp@0.4.2Add to
claude_desktop_config.json{
"mcpServers": {
"git-mcp": {
"args": [
"-y",
"@selfagency/git-mcp@0.4.2"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"git-mcp": {
"args": [
"-y",
"@selfagency/git-mcp@0.4.2"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"git-mcp": {
"args": [
"-y",
"@selfagency/git-mcp@0.4.2"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.git-mcp]
command = "npx"
args = ["-y", "@selfagency/git-mcp@0.4.2"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: git_status, git_history, git_commits, git_branches, git_remotes, git_workspace, git_context, git_but_check, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json