Git
Read-only access to a repository's history: status, diffs, commit logs, and blame.
What it does
Read-only access to a repository's history: status, diffs, commit logs, and blame. Useful when an agent needs to understand why a file looks the way it does before changing it. Keep it read-only and pair it with a write-capable tool so the agent can inspect first and edit second.
Install
Terminal
uvx mcp-server-git --repository ./
Client configuration
Paste this into your MCP client config (Claude Desktop, Cursor, or any client that reads mcpServers), then restart the client.
mcp.json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"./"
]
}
}
}
When to use it
Reach for this when the task needs git inside the agent loop. Skip it if a plain shell command or a one-off script is enough — every server you add costs context and adds a failure mode.