Head to head · Git operations · October 2026 research run

Git (MCP reference server) vs Sourcegraph MCP Server

Sourcegraph MCP Server scores 62.5 (B) on agent readiness against Git (MCP reference server)'s 54.3 (C), and leads in 6 of 7 scored categories. Git (MCP reference server) leads on payments & pricing. Both do git operations.

Best code, repository and documentation tools for AI agents · All 70 code comparisons

Which one, for what

Git (MCP reference server) C

Best for Local commit loops in a sandboxed checkout where an agent stages, commits and branches.

Ahead on

  • Payments & pricing, 90 against 23

Also in its favour

  • No key needed to call it
  • Runs on your own machine
  • Open source

Watch for

Without --repository the server reads and writes any repository its process can reach

Sourcegraph MCP Server B

Best for A company that already runs Sourcegraph and wants agents to search and navigate many repositories with compiler-accurate definitions and references.

Ahead on

  • Reliability, 60 against 55
  • Schema & documentation, 71 against 61
  • Security & auth, 76 against 43
  • Maintenance & community, 83 against 72

Watch for

Enterprise plans only, from a $16,000 minimum annual contract through sales. A Cloud trial is by request and subject to eligibility

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing Git (MCP reference server) +67

Git (MCP reference server) 90

Free, self-hosted, nothing to buy, so 20 + 20 + 20. No payment protocol (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Sourcegraph MCP Server 23

No x402, MPP or L402 (0). The pricing page publishes a starting figure, a $16K minimum annual contract, with no per-user or per-call price and a contact-sales button, so half of the plan-pricing credit (5). A free Sourcegraph Cloud trial exists by request, with eligibility reviewed and a wait of up to an hour in business hours. No card is mentioned, so half credit (10). An agent cannot gain access alone. A company needs a contract or an approved trial, and a user approves OAuth in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 15 is 23.

Security & auth Sourcegraph MCP Server +33

Git (MCP reference server) 43

No credentials to leak and nothing to scope, so the middle band (20). --repository is the only confinement, and since 2026.10.28 the server also checks the directories Git opens (a nested .git file, commondir or core.worktree pointing outside is refused). Without --repository every repository the process can reach is in scope, and the server never asks the client for Roots (the 1 October note said Roots confined it; the Roots helper was never called and was removed on 4 October). There's no read-only mode, and git_reset and git_checkout run without confirmation (8). Commit messages, diffs and file contents reach the model unmarked. Since 2026.10.28 the README says to set --repository whenever prompts or content aren't fully trusted, which is confinement advice, not injection guidance (3). No call log beyond git's own reflog (0). SECURITY.md, rewritten on 29 September 2026 and on main since the v1.0.0 tag, names mcp-server-git in scope, takes private reports through GitHub and publishes advisories once a fixed release is out. No bounty or certification. Graded as the fetch, filesystem and memory servers (12, up from 6). OSV and GitHub's advisory database list four advisories for the package, all Moderate, fixed and published by the maintainers (see negative events). A fix merged on 28 October from a branch named for GHSA-w766-5x43-whvw shipped in 2026.10.28; it is in neither OSV nor GitHub's advisory database on 4 November, so it isn't counted (as the fetch and filesystem servers' GHSA-named fixes). GitPython's High GHSA-83vg-56qc-22m7 (submodule clone) is a dependency's flaw; the lock file moved to 3.2.1 on 24 October and isn't counted. 20+8+3+0+12 = 43.

Sourcegraph MCP Server 76

OAuth 2.0 with PKCE, dynamic client registration held to the mcp scope, one-hour access tokens, a revocation endpoint and bearer tokens in the header only. Access tokens can also carry the mcp scope and default to a 90-day expiry (30). Every documented tool reads, repository permissions apply to each call, and admins can gate MCP by RBAC role or disable single tools. There is no per-repository grant narrower than the user's own access (18). The tools return repository content, which is untrusted input. The consent screen warns that the mcp scope grants read access to private code, and no prompt-injection guidance was found (4). The audit log records access token use, repository access and API requests as structured logs for a SIEM. No MCP-specific call log is documented (9). SOC 2 and ISO/IEC 27001:2022 on the security portal, annual third-party penetration tests, CVE fixes named in release notes and an invite-only HackerOne programme reached through security@sourcegraph.com. security.txt returned 404 again on 4 November 2026 (15).

Maintenance & community Sourcegraph MCP Server +11

Git (MCP reference server) 72

2026.10.28, stamped and tagged v2.2.0 on 28 October 2026, 7 days before this check (30). Releases of this package in the 90 days from 6 August are 2026.8.18 (an SDK pin and a README note, half at most), 2026.10.10 (tag v1.0.0), 2026.10.19 (tag v2.0.0) and 2026.10.28 (tag v2.2.0), the last three with code changes. v2.1.0 left git at 2026.10.19, and tag 2026.8.31 carries no git release. Dates come from the repository's tags and CalVer stamps read from pyproject.toml at each tag, since PyPI wasn't read today. The package has no changelog and no separate CLI or plugin (20). Fixes for git merged through October cite issues filed for them; reply times on issues couldn't be read (12). Presence in the official MCP registry wasn't read (its API is barred in this run); the README carries an mcp-name for io.github.modelcontextprotocol/server-git, which is a claim, not presence (0). Current SDK (mcp>=2.3,<3, up from the 1.x pin of 1 October), CI on push, a monthly dependency sweep, a daily alert check and a pip-audit step before each release (10, up from 7). 30+20+12+0+10 = 72.

Sourcegraph MCP Server 83

Self-hosted releases in the window are 7.6.0 (6 August), 7.7.0 (26 August), 7.7.359 (27 August), 8.0.0 (17 September), 8.1.0 (14 October), 8.1.1335 (22 October) and 8.1.2687 (29 October 2026). 7.6.0, 7.7.0, 8.0.0 and 8.1.0 change the MCP server, and the two 8.1 patches don't. The weekly Cloud update notes of 2 November 2026 add a warning to MCP tool results when a code host connection has expired (30). Four releases that change the MCP server since 6 August 2026, plus weekly Cloud notes (20). A closed service with a public changelog, support at support@sourcegraph.com and published response times from two business hours for Enterprise. No public issue tracker for the server was found (12). Listed in the official MCP registry as io.github.sourcegraph/mcp per the 8 October check; the registry's API wasn't requested on 4 November (15). Release 7.6.0 moved to the MCP Go SDK v1.7.0 and protocol version 2026-07-28, and releases name the CVEs they fix. No public CI to read (6). 30+20+12+15+6 = 83.

Schema & documentation Sourcegraph MCP Server +10

Git (MCP reference server) 61

Every tool takes a typed JSON Schema the SDK derives from the function signature (25). No llms.txt. The README is Markdown on GitHub and lists each tool's inputs and return (5). Descriptions are one line of purpose ("Switches branches", "Shows the commit logs") with nothing on when to use one diff tool over another (6). Required fields are marked, but branch_type is still a free string where an enum of local, remote and all belongs, timestamps are free strings, and context_lines and max_count have no bounds (9). Timestamp formats come with examples, and failures return as tool errors with readable messages (9). CalVer releases tagged in the monorepo, with no changelog for this package (7). 25+5+6+9+9+7 = 61.

Sourcegraph MCP Server 71

The docs list each tool's parameters with required and optional marks, defaults and maximums. We could not read the tool definitions themselves, because every endpoint needs an Enterprise instance, so the machine-readable contract earns partial credit (15). /llms.txt and /docs/llms.txt return 404, but every docs page is served as Markdown at its URL plus .md (10). Tool entries state use cases, code_finder has best practices and a contrast with deepsearch, and a matrix shows which endpoint carries which tool (14). Required fields, defaults and bounds are documented, while search filters travel inside one query string and evaluator takes a free Lua script (9). list_refs has JSON examples and the authentication page has a troubleshooting table for invalid_scope, 401, 403 and 404, with no catalogue of tool errors (8). Versioned releases with dated MCP entries in the changelog (15).

Reliability Sourcegraph MCP Server +5

Git (MCP reference server) 55

Scored as a local stdio package. Official PyPI package mcp-server-git and the mcp/git Docker image, Python 3.10 or later stated (20). The monorepo's python.yml runs ruff, pyright and pytest for git on push, with four test files and 189 tests for this server and a per-file coverage gate. The pass state couldn't be read, so 15 of 25 (this run's reading for public CI that runs the tests with an unread result). The October releases close filed issues, among them #4762 (empty commits), #4763, #4804, #4993, #4994, #4995, #4996, #5012, #5050, #5129, #5192 and #5193, and the 2 September git_log fix shipped in 2026.10.10; the open issue list couldn't be read (15). CalVer versions (2026.10.28) with no changelog for this package, and the README states the MCP Python SDK 2.x requirement (5). The classifier still says 4 - Beta and the README says "currently in early development" (0). 20+15+15+5+0 = 55.

Sourcegraph MCP Server 60

Scored with the hosted lines, because the server is an HTTP endpoint on a Sourcegraph Cloud or self-hosted instance. sourcegraphstatus.com, which didn't resolve on 8 October, loaded on 4 November 2026. It is an incident.io page with components for Sourcegraph Cloud, the self-hosted release, the model provider, accounts, workspaces, analytics, the Enterprise Portal and public code search. No component names MCP. The MCP endpoint is a path on each Cloud instance, but a vendor page with no MCP component takes 15, as honeycomb-mcp, sentry-mcp and slack-mcp do, whose MCP servers also sit on infrastructure the vendor's components cover (15). Its feed and incident pages show five Cloud incidents touching 6 August to 4 November. A us-central1 partial outage from 4 August 19:25 to 6 August 05:16 UTC, increased latency and errors from 31 August 17:56 to 1 September 08:41 UTC, degraded performance from Google Cloud issues on 1 and 2 September, a US Central regional incident from 4 to 9 September, and Europe latency and errors on 20 October. Each names one region or a degradation without a full outage, so each reads as partial (minor only, 20). No request rate limits for the MCP endpoints were found in the reviewed documentation, only result limits per tool (0). No 429 or backoff guidance was found. Releases 8.0.0 and 8.1.0 say search tools separate incomplete searches and timeouts from empty results so a client can retry, and every tool reads, so retries are safe (5, a partial kept from 8 October). The SLA page, read again on 4 November, commits to 99.5 per cent monthly uptime on Business and Enterprise plans (10). The server carries no beta label, and Code Finder became generally available on 20 August 2026 (10). 15+20+0+5+10+10 = 60.

Score by category

CategoryWeightGit (MCP reference server)Sourcegraph MCP ServerEdge
Reliability16%5560Sourcegraph MCP Server +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6171Sourcegraph MCP Server +10
Agent ergonomics13%7172Sourcegraph MCP Server +1
Security & auth14%4376Sourcegraph MCP Server +33
Payments & pricing10%9023Git (MCP reference server) +67
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7283Sourcegraph MCP Server +11
Transparency & trust7%7778Sourcegraph MCP Server +1
Negative events≤15-10-3
TotalC 54.3/100B 62.5/100

Facts side by side

FactGit (MCP reference server)Sourcegraph MCP Server
KindMCP serverMCP server
VendorMCP project (reference servers)Sourcegraph, Inc.
Hosted endpointno (local only)no (local only)
TransportsstdioStreamable HTTP
AuthNoneOAuth or key
PricingFreePaid
x402nono
LicenceMIT and Apache-2.0Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service
Tools exposed1216
Read-only variant documentednoyes
llms.txtnono
MCP registrynot listedio.github.sourcegraph/mcp
Last release2026-10-282026-10-14
Terms last updated2021-09-082026-07-22
Privacy policy last updated2023-03-152026-06-12
Customer content may train modelsnot found in the textyes, with an opt-out
Terms restrict automated accessnot found in the textnot found in the text
Terms restrict benchmarkingnot found in the textnot found in the text
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waivernot found in the textyes
Popularity90k starsnone
Agent reviews2.5/5 (2)none

How the scores have moved

Verdicts

Git (MCP reference server)

Twelve tools of about 1,700 tokens, each with readOnlyHint or destructiveHint set, on MCP SDK 2.x since October 2026. --repository is the only confinement and isn't on by default. Four Moderate advisories since December 2025 are fixed, and two October releases changed working calls with no changelog.

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)

  1. Start the server with --repository; without it, any repository the process can reach is writable
  2. Pass repo_path on every call, even when the server was started with --repository
  3. Stage with git_add before git_commit; since 2026.10.10 a commit with nothing staged returns an error
  4. Set max_count and a date range on git_log; diffs and git_show have no size cap
  5. Push with another tool; this server has no remote operations

Sourcegraph MCP Server

  1. Connect to https://<instance>/.api/mcp for the nine core tools. Use /.api/mcp/all for go_to_definition, find_references, list_refs, get_contributor_repos, compare_revisions, deepsearch and nls_search
  2. Request only the mcp scope in OAuth. Any other scope on the MCP resource fails with invalid_scope
  3. Without OAuth, send Authorization: token <access token> and create the token with the mcp scope and an expiry
  4. Call list_repos first and name the repository in every code_finder task. It declines broad searches across repositories
  5. Read large files with startLine and endLine. 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 62.5 (B) on agent readiness against Git (MCP reference server)'s 54.3 (C), and leads in 6 of 7 scored categories. Git (MCP reference server) leads on 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

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.