G

Git (reference)

Gives the agent git status, diff, log, commit and branch tools for one local repository.

🧠 Code understandingGitHub stars for modelcontextprotocol/servers, shared by several tools92,022shared repoUpdated 2026-11-12Auth: noneGitHub ↗

Test results

Last passed 2026-10-21
Claude CodePassed2026-10-20 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · mcp-server-git 2026.10.19 · connected in 2.7s
CursorPassed2026-10-20 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.19-6bbf2c4 · mcp-server-git 2026.10.19 · connected in 1.3s
Claude DesktopPassed2026-10-14 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 1.6s
ChatGPT (Codex)Passed2026-10-21 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · mcp-server-git 2026.10.19 · connect time not recorded

Server 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.0

Captured 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)?

Protocol: 12 tools + tool call OK · 2026-10-20 · connected in 1.6s
🔁 New release 2026.10.19 shipped Oct 19, 2026 (part of the servers v2.0.0 release). Retested on Oct 20, 2026 on 2026.10.19: passed again in Claude Code and Cursor (found where compute_total is defined and called). The Claude Desktop and ChatGPT (Codex) results are still from 2026.10.10 (Oct 14).

Real test

Passed

One 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_show

Tool 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/coderepo

Run 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

DateCheckResultVersions tested
2026-10-21ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · mcp-server-git 2026.10.19
2026-10-20Protocol (direct stdio)Protocol: 12 tools + tool call OKmcp-server-git 2026.10.19 · server reported v2026.10.19
2026-10-20Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · mcp-server-git 2026.10.19
2026-10-20CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · mcp-server-git 2026.10.19
2026-10-20Protocol (direct stdio)Protocol: 12 tools + tool call OK2026.10.19
2026-10-20Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · mcp-server-git 2026.10.19
2026-10-20CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · mcp-server-git 2026.10.19
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: 12 tools + tool call OK2026.10.10
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

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.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/ref-git.svg)](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
Featured