Git MCP Server

A Git MCP server that doesn't suck

Local serverstdio

What is the Git MCP Server?

A Git MCP server that doesn't suck

The short version

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.

  • 11 grouped tools with 60+ actions — covering everyday Git workflows and advanced recovery operations
  • Safety-first — — destructive operations require explicit confirmation; force push and hook bypass are opt-in via server config
  • GPG/SSH signing — for commits and tags, with server-level auto-sign support
  • Git LFS — — track patterns, manage objects, install hooks, migrate history
  • Git Flow — — git-flow-next-style workflow support with preset init, overview, config CRUD, generalized topic actions, finish recovery, optional hook/filter parity, and classic feature/release/hotfix/support aliases, without requiring the external CLI
  • Documentation lookup — — search git-scm.com and fetch man pages directly from the LLM

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Git MCP Server

{
  "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.

Configuration

VariableDescriptionRequired
GIT_REPO_PATHFilesystem location the server is allowed to use.Optional
GIT_SIGNING_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Git to Safety-first.”
  • “Use Git to Multi-repo.”
  • “Use Git to Cross-platform.”

Frequently asked questions

A Git MCP server that doesn't suck Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.