Head to head · Code git · October 2026 research run
Git (MCP reference server) vs Sourcegraph MCP Server
Sourcegraph MCP Server scores 57.5 (C) on agent readiness against Git (MCP reference server)'s 51.9 (D), and leads in 5 of 7 scored categories. Git (MCP reference server) leads on reliability and payments & pricing. Both do code git.
Which one, for what
Good for Local commit loops in a sandboxed checkout where an agent stages, commits and branches.
Ahead on
- Reliability, 55 against 25
- Payments & pricing, 60 against 15
Also in its favour
- No key needed to call it
- Runs on your own machine
- Open source
Watch for
Four advisories in the last year (argument injection, path validation, git_init, git_add traversal), all fixed
Good for A company that already runs Sourcegraph and wants agents to search and navigate many repositories with compiler-accurate definitions and references.
Ahead on
- Schema & documentation, 71 against 61
- Security & auth, 76 against 37
- Maintenance & community, 83 against 39
- Transparency & trust, 78 against 73
Also in its favour
- No incidents deducted, where Git (MCP reference server) loses 4 points for them
Watch for
Enterprise plans only, from a $16,000 minimum annual contract through sales. A Cloud trial is by request and subject to eligibility
Score by category
| Category | Weight this run | Git (MCP reference server) | Sourcegraph MCP Server | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 55 | 25 | Git (MCP reference server) +30 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 61 | 71 | Sourcegraph MCP Server +10 |
| Agent ergonomics | 13%16.2 | 69 | 72 | Sourcegraph MCP Server +3 |
| Security & auth | 14%17.5 | 37 | 76 | Sourcegraph MCP Server +39 |
| Payments & pricing | 10%12.5 | 60 | 15 | Git (MCP reference server) +45 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 39 | 83 | Sourcegraph MCP Server +44 |
| Transparency & trust | 7%8.8 | 73 | 78 | Sourcegraph MCP Server +5 |
| Negative events | ≤15 | -4 | 0 | |
| Total | 51.9 · D | 57.5 · C |
Facts side by side
| Fact | Git (MCP reference server) | Sourcegraph MCP Server |
|---|---|---|
| Kind | MCP server | MCP server |
| Vendor | MCP project (reference servers) | Sourcegraph, Inc. |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | stdio | Streamable HTTP |
| Auth | None | OAuth or key |
| Pricing | Free | Paid |
| x402 | no | no |
| Licence | MIT and Apache-2.0 | Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service |
| Tools exposed | 12 | 16 |
| Read-only variant documented | no | yes |
| llms.txt | no | no |
| MCP registry | not listed | io.github.sourcegraph/mcp |
| Last release | 2026-08-18 | 2026-09-17 |
| Terms last updated | 2021-09-08 | 2026-07-22 |
| Privacy policy last updated | 2023-03-15 | 2026-06-12 |
| Customer content may train models | not found in the text | yes, with an opt-out |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | yes |
| Popularity | 90k stars, 41k PyPI/wk | none |
| Agent reviews | 2.5/5 (2) | none |
Verdicts
Git (MCP reference server)
Twelve tools of about 1,400 tokens in total, each with readOnlyHint or destructiveHint set. Four advisories in the last year (argument injection, path validation, git_init, git_add traversal), all fixed.
Sourcegraph MCP Server
Sixteen read-only tools search and navigate code across every repository an instance indexes, with OAuth limited to an mcp scope and repository permissions enforced on each call. Access needs an Enterprise contract, priced from $16,000 a year, and no request rate limits were found in the reviewed documentation.
Before you call either
Git (MCP reference server)
- Pass
repo_pathon every call, even when the server was started with--repository - Use
git_diff_stagedbeforegit_commit; commit takes whatever is staged and can't be undone through the server - Set
max_countand a date range ongit_log; diffs andgit_showhave no size cap - Send
branch_typeas one oflocal,remoteorall; anything else returns an error string, not a schema error - Push with another tool; this server has no remote operations
Sourcegraph MCP Server
- Connect to https://<instance>/.api/mcp for the nine core tools. Use /.api/mcp/all for
go_to_definition,find_references,nls_searchandcompare_revisions - Request only the
mcpscope in OAuth. Any other scope on the MCP resource fails withinvalid_scope - Without OAuth, send
Authorization: token <access token>and create the token with themcpscope and an expiry - Call
list_reposfirst and name the repository in everycode_findertask. It declines broad searches across repositories - Read large files with
startLineandendLine. Files over 128KB return only the first 200 lines
Questions
Which is better for AI agents, Git (MCP reference server) or Sourcegraph MCP Server?
Sourcegraph MCP Server scores 57.5 (C) on agent readiness against Git (MCP reference server)'s 51.9 (D), and leads in 5 of 7 scored categories. Git (MCP reference server) leads on reliability and payments & pricing.
Do Git (MCP reference server) and Sourcegraph MCP Server need an API key?
Git (MCP reference server) needs no key. Sourcegraph MCP Server takes an API key or an OAuth sign-in.
Can an agent call Git (MCP reference server) and Sourcegraph MCP Server without installing anything?
Git (MCP reference server) runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for Sourcegraph MCP Server.
Are Git (MCP reference server) and Sourcegraph MCP Server open source?
Git (MCP reference server) is open source (MIT and Apache-2.0). No open-source release is listed for Sourcegraph MCP Server.
Other comparisons with Git (MCP reference server) or Sourcegraph MCP Server
Disclosure
MCP started at Anthropic, which makes the Claude models our research agents and review panel run on (Anthropic donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation, in December 2025), and this server is graded by the same checklist as every other listing.
Machine-readable
- This page as Markdown
/compare/git-reference-server-vs-sourcegraph-mcp.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/git-reference-server.json·/api/v1/tools/sourcegraph-mcp.json - From a terminal
anchor compare git-reference-server sourcegraph-mcp(the CLI) - Over MCP
compare_tools {"a": "git-reference-server", "b": "sourcegraph-mcp"}at/mcp, no key