Git MCP Server
by Anthropic (reference implementation)
Reference MCP server for Git operations. Read status, diffs, logs, and write commits from inside an agent.
MCP
Git MCP Server
Added 1 June 2026
Overview
The Git MCP Server is the reference implementation for giving agents structured Git access. It exposes 12 tools covering the operations agents most commonly need: status, log, diff, show, add, commit, reset, branch, checkout, and create_branch. Runs against a local repo via stdio. Maintained by Anthropic alongside the protocol.
Best for
Best for
Agents that need to read or write to a local Git repo as part of a broader workflow
Use cases
- Let an agent commit its own changes after completing a task
- Read git history and diffs as part of a code review or audit loop
- Automate branch creation and switching in a multi-step agent workflow
- Generate commit messages by giving the agent access to the staged diff
Notes
Why it matters
An agent that can read and write code but cannot commit its own work is half an agent. The Git MCP is the minimal bridge from agent output to version control, without requiring the agent to shell out to the terminal.
How teams use it in production
Wire Git MCP alongside Filesystem MCP for local work. The pattern: agent reads files and edits them via Filesystem, then uses Git MCP to stage and commit the result. GitHub MCP handles the remote half, PR creation and review comments.
What to watch
The gap to close is remote operations. Push, pull, fetch, and PR creation from a unified MCP surface would let an agent own the full ticket-to-PR loop without switching to the GitHub MCP mid-workflow.
Pros
- Official reference implementation, maintained by Anthropic
- Covers the 12 most common Git operations agents actually need
- Clean MCP surface, easy to understand and extend
- Pairs naturally with the GitHub MCP for a local+remote Git workflow
Cons
- Still marked early development by the upstream maintainers
- No push or remote sync operations, local-only
- Not suitable for complex rebase or merge strategies
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Claude Code
Anthropic
Anthropic's terminal-native coding agent. Reads your repo, edits files, runs tests, ships PRs.
Cursor
Anysphere
The AI-first code editor. Tab to autocomplete, Composer to multi-file refactor, Agents for the long-running stuff.