Git (reference)
Gives the agent git status, diff, log, commit and branch tools for one local repository.
Test results
Last passed 2026-10-21Server package tested: mcp-server-git 2026.10.19 (uv, Python 3.12.15; resolved 2026-10-21)
Direct and key dependencies as resolved: anyio 4.15.1 · click 8.5.0 · GitPython 3.2.1 · mcp 2.3.0 · pydantic 2.14.1 · pydantic_core 2.50.1 · sse-starlette 3.5.0 · starlette 1.9.0 · typing_extensions 4.16.0 · uvicorn 0.54.0
All 31 resolved dependencies
annotated-types==0.8.0
anyio==4.15.1
attrs==26.1.0
cffi==2.1.1
click==8.5.0
cryptography==50.0.2
gitdb==4.0.12
GitPython==3.2.1
h11==0.16.0
httpcore2==2.16.0
httpx2==2.16.0
idna==3.20
jsonschema==4.26.0
jsonschema-specifications==2025.9.1
mcp==2.3.0
mcp-types==2.3.0
opentelemetry-api==1.45.1
pycparser==3.11
pydantic==2.14.1
pydantic_core==2.50.1
PyJWT==2.15.1
python-multipart==0.0.32
referencing==0.37.0
rpds-py==2026.9.1
smmap==5.0.3
sse-starlette==3.5.0
starlette==1.9.0
truststore==0.10.5
typing-inspection==0.4.4
typing_extensions==4.16.0
uvicorn==0.54.0Captured with: uvx --from mcp-server-git@2026.10.19 python (importlib.metadata in the same uvx env; equivalent to uv pip freeze).
Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?
Real test
PassedOne run from our records. When two runs share a date, we show a failure if there is one.
- Client
- ChatGPT (Codex) · Codex CLI 0.162.0-alpha.17.2
- Date
- Oct 21, 2026
- The task we gave
Using only the ref-git MCP tools, look at the code repository at /workspace/timmy/harness/sandbox/coderepo. Find which file defines the function compute_total and which other file calls it. Reply with both file names.
- What it promised
- details not recorded for this run
- What happened
Tool calls:
ref-git:git_showTool result
{"content": [{"type": "text", "text": "commit c52d24c43e899202a7eccf6780e078b3fd359cde\nAuthor: toolpassed <t@toolpassed.com>\nDate: 2026-10-13 23:05:01 -0400\n\n Add billing and receipt helpers\n\n--- /dev/null\n+++ b/billing.py\n@@ -0,0 +1,4 @@\n+def compute_total(prices, tax_rate):\n+ \"\"\"Return the total of prices plus tax.\"\"\"\n+ subtotal = sum(prices)\n+ return round(subtotal * (1 + tax_rate), 2)\n\n--- /dev/null\n+++ b/utils.py\n@@ -0,0 +1,4 @@\n+from billing import compute_total\n+\n+def format_receipt(prices):\n+ return f\"Total: {compute_total(prices, 0.08)}\"\n"}], "structured_content": null}Agent reply
`compute_total` is defined in `billing.py` and called in `utils.py`.- Verdict
- Passed
Install
claude mcp add git -- uvx mcp-server-git --repository /path/to/dir/coderepoRun in your terminal. This exact command is what our harness runs in Claude Code; see the results above.
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/dir/coderepo"
]
}
}
}Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/dir/coderepo"
]
}
}
}Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.
[mcp_servers.git]
command = "uvx"
args = ["mcp-server-git", "--repository", "/path/to/dir/coderepo"]Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.
Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)
Test history
| Date | Check | Result | Versions tested |
|---|---|---|---|
| 2026-10-21 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · mcp-server-git 2026.10.19 |
| 2026-10-20 | Protocol (direct stdio) | Protocol: 12 tools + tool call OK | mcp-server-git 2026.10.19 · server reported v2026.10.19 |
| 2026-10-20 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · mcp-server-git 2026.10.19 |
| 2026-10-20 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.19-6bbf2c4 · mcp-server-git 2026.10.19 |
| 2026-10-20 | Protocol (direct stdio) | Protocol: 12 tools + tool call OK | 2026.10.19 |
| 2026-10-20 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · mcp-server-git 2026.10.19 |
| 2026-10-20 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.19-6bbf2c4 · mcp-server-git 2026.10.19 |
| 2026-10-14 | Claude Desktop | Passed install, connect, tools, agent task | Claude Desktop 2.37337.1 (Linux beta) · package version not recorded |
| 2026-10-14 | Claude Desktop | Passed install, connect, tools, agent task | Claude Desktop 2.37337.1 (Linux beta) · package version not recorded |
| 2026-10-14 | ChatGPT (Codex) | Passed install, connect, tools, agent task | Codex CLI 0.162.0-alpha.17.2 · package version not recorded |
| 2026-10-13 | Protocol (direct stdio) | Protocol: 12 tools + tool call OK | 2026.10.10 |
| 2026-10-13 | Cursor | Passed install, connect, tools, agent task | Cursor CLI 2026.10.12-d47ca18 · package version not recorded |
| 2026-10-13 | Claude Code | Passed install, connect, tools, agent task | Claude Code 2.1.296 · package version not recorded |
Tested on ToolPassed badge
Maker of Git (reference)? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-21. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.
[](https://toolpassed.com/mcp/ref-git/)Tools seen by our harness (12)
git_statusgit_diff_unstagedgit_diff_stagedgit_diffgit_commitgit_addgit_resetgit_loggit_create_branchgit_checkoutgit_showgit_branch