Git
Read-only Git repository browsing for Claude. See history, diffs, branches, and blame without Claude needing shell access.
Delv Safety Grade: A+
Score 94/100 · assessed 2026-04-22
This is Anthropic's official read-only Git repository browser, designed specifically to avoid shell access risks. It provides Claude with structured access to commit history, diffs, branches, and blame annotations without any write capabilities. The maintainer score is excellent given Anthropic's direct ownership and active development in their official MCP servers repository. Permissions are exceptionally scoped - only filesystem read access to the specified repository path, with no shell execution or write operations. Supply chain is solid via uvx/PyPI distribution, though not quite perfect as it requires local installation rather than being fully sandboxed. Transparency is excellent with full open source code, clear documentation, and active issue tracking. No security incidents on record. The read-only design is a significant safety feature that prevents accidental or malicious repository modifications.
Lethal Trifecta (prompt-injection exposure)
ONE OF THREELocal repo access. Commit messages could be mildly attacker-shaped in multi-author repos, but not a typical untrusted-input surface.
Green flags
- Official Anthropic server with active maintenance and support
- Strictly read-only by design - no write, push, or rebase capabilities
- No shell access required, avoiding command injection risks
- Clear scope limitation to single repository path specified at launch
- Open source with comprehensive documentation and examples
Red flags
- Requires filesystem read access to entire specified repository directory
- No sandboxing - can read any files within the repository path
- Depends on local Git installation being present and functional
Permissions requested
Install
uvx mcp-server-git --repository /path/to/repo
{
"git": {
"command": "uvx",
"args": ["mcp-server-git", "--repository", "/Users/you/myproject"]
}
}Review
Install this if you regularly ask Claude about code history or need to write release notes from commits. It's the cleanest way to give Claude repository context without security risk. Skip it if you work across many repos and don't want to maintain multiple config entries, or if you're happy running git commands yourself.
Good at
- Read-only by design means Claude can't accidentally modify your repository or push changes.
- Eliminates copy-pasting git log and diff output into conversations, making history exploration feel native.
- Git blame integration lets Claude trace why specific lines exist without you running commands manually.
- Handles multi-file diffs cleanly, so Claude can summarise changes across an entire feature branch.
- Official Anthropic server means it's maintained alongside Claude and follows MCP best practices.
Watch out
- One repository per config entry, so working across many projects means maintaining multiple MCP server definitions.
- Read-only limitation means you'll need a separate workflow if you want Claude to suggest and apply fixes.
- Requires absolute paths in config, which can be brittle if you move repositories or sync configs across machines.
- No support for remote repositories, only local clones, so you can't point it at a GitHub URL directly.
Use cases
- Understanding recent changes to a repo
- Writing release notes from commits
- Investigating when a bug was introduced
- Reviewing a feature branch before merge
Getting started
Works with
Similar MCPs
- GitHubFull GitHub API access - manage repos, issues, PRs, and code search. One of the most useful MCPs for any developer workflow.
- GrafanaGrafana Labs' official MCP. Read dashboards, datasources, alerts, and run Loki/Prometheus queries from inside your agent.
- SentryPull live errors, issues, and replays from Sentry into Claude. Great for debugging sessions where the model can see what actually broke in prod.
- MCP CLIInteractive CLI inspector for MCP servers supporting OAuth, tool calls, resource reads, and prompt runs.