git-mcp

v0.4.2
io.github.selfagency/git-mcp Checked 4 hours ago Published 1 month ago

A Git MCP server that doesn't suck

Values you need

VariableWhat it is
GIT_REPO_PATHoptional 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_VERIFYoptional 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_PUSHoptional 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_HOOKSoptional 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_KEYoptional 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_FORMAToptional Signing format for commits and tags. Accepted values: openpgp, ssh, x509.
GIT_AUTO_SIGN_COMMITSoptional Set to 'true' to automatically sign all commits produced by this server.
GIT_AUTO_SIGN_TAGSoptional 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.2
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: git_status, git_history, git_commits, git_branches, git_remotes, git_workspace, git_context, git_but_check, ….
  4. 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