Git MCP Server

Full git MCP server for LLM agents — 17 tools, AST annotator, auto-backups, real plumbing.

Local serverstdioGo

What is the Git MCP Server?

Full git MCP server for LLM agents — 17 tools, AST annotator, auto-backups, real plumbing.

What you get

An MCP server that gives AI agents a full, safe interface to Git — not just commits, the whole surface: status, diff, branch, stash, history, sync. Every mutation backs itself up automatically. Nothing routes through Bash, so there's no git reset --hard happening behind your back.

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
status—
diff—
commitPREVIEW → APPLY
branchCREATE / SWITCH / DELETE / RENAME / LIST
stageRM / RESTORE / CLEAN
stashSAVE / POP / SHOW
historyLOG / REFLOG / BLAME
syncPUSH / PULL / FETCH
pr-review—
backupRESTORE / LIST
rewriteAMEND / REVERT / SOFT / HARD
integrateMERGE / UPDATE / PICK / CONTINUE / ABORT
sessionstart / finish / status / select / discard

Example prompts to try

  • “Use Git to status.”
  • “Use Git to diff.”
  • “Use Git to commit.”

Frequently asked questions

Full git MCP server for LLM agents — 17 tools, AST annotator, auto-backups, real plumbing. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.