Git
Read, search, and manipulate local Git repositories. Lets an agent inspect history and diffs without shelling out.
What it does
Exposes Git operations as structured tools: read status, view diffs, search log history, inspect branches, stage files, and commit. An official reference server, written in Python.
The value over letting the agent run git in a terminal is that results come back structured rather than as text the agent has to parse.
Setup
This one is Python, not Node, so it runs through uvx rather than npx. You need uv installed first.
claude mcp add git -- uvx mcp-server-git --repository ~/projects/my-repo
If you prefer pip:
pip install mcp-server-git python -m mcp_server_git --repository ~/projects/my-repo
What to watch out for
The server can stage and commit. If you do not want an agent writing to history, review what your harness auto-approves before connecting it.
Most coding harnesses can already run git directly, so this is redundant for them. It earns its place in agents that have no shell access.