Head to head · Git operations · October 2026 research run
graft vs Sourcegraph MCP Server
Sourcegraph MCP Server scores 62.5 (B) on agent readiness against graft's 56.6 (C), and leads in 5 of 7 scored categories. graft leads on payments & pricing. Both do git operations.
Best code, repository and documentation tools for AI agents · All 122 code comparisons
Which one, for what
graft C
Best for A team experimenting with server-side source control for many agents on one monorepo, where git push contention is the problem.
Ahead on
- Payments & pricing, 90 against 23
Also in its favour
- Free to start without a card
- Open source
- No incidents deducted, where Sourcegraph MCP Server loses 3 points for them
Watch for
First commit and all three releases fall on 13 and 14 October 2026 (UTC), from one developer, with no commit since and no outside issues or users visible on 15 October
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
- Schema & documentation, 71 against 32
- Agent ergonomics, 72 against 64
- Security & auth, 76 against 37
- Maintenance & community, 83 against 63
- Transparency & trust, 78 against 57
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 graft +67
graft 90
No payment protocol (0). Read with the self-hosted rule. Free under Apache 2.0 with nothing to buy (20). No card or account (20). Download or go install with no signup (20). Total 60. 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.
Schema & documentation Sourcegraph MCP Server +39
graft 32
No OpenAPI or other machine-readable contract. Request and response shapes exist only as Go structs in internal/api (0). No llms.txt. README, DESIGN.md and ACCESS.md are Markdown on GitHub (5). The README's endpoint table gives one line per endpoint with its query parameters and nothing on when to use one over another (6). Parameters are named but types, defaults and bounds are found only in the source (6). Many CLI examples, but no HTTP request or response examples, and the 400, 403, 404, 409, 412 and 422 responses are not documented (5). Paths under /v1 and release notes on GitHub for three releases (10). Total 32.
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).
Security & auth Sourcegraph MCP Server +39
graft 37
Self-hosted server read with the API lines. With no policy, every caller can read and write everything. With --acl, static bearer tokens map to principals and can be stored hashed, and revoking means editing the policy. Tokens go only in the Authorization header, but the server has no TLS option (12). Roles none, read, write and admin, directory-level read and write rules checked on every path and on the whole diff of each ref move, admin-only ref deletion, and review gates where authors cannot approve their own changes (17). The API returns repository files and commit messages with no guidance on untrusted content (2). The server logs errors only. Change request comments and approvals record the principal, but a changeset's author is whatever the client sends (4). No SECURITY.md, security.txt or bug bounty. Release checksums are published (2). Total 37.
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).
Transparency & trust Sourcegraph MCP Server +21
graft 57
Apache 2.0 in LICENSE and as detected by GitHub (30). No privacy or data-handling statement. The software is self-hosted and the source we read sends nothing to the author, so data stays with the operator, but nothing says so (10). No deprecation policy, and the release notes are dated only by their GitHub release (2). No telemetry or analytics calls found in the source, and the docs don't address it (10). Total 52.
Sourcegraph MCP Server 78
Closed source under the Sourcegraph Terms of Service, last modified 22 July 2026, with supplemental terms listed in one index (15). The terms, the DPA, the security page and the privacy policy describe data handling. Cloud logs are kept up to 365 days, partner LLMs keep inputs only for abuse detection, and the privacy policy excludes customer code, which falls under the customer agreement. No retention period for code or search queries on Cloud was found (22). The current and previous major versions are supported, and release notes date removals such as the end of GitHub Enterprise Server 3.3 support, but no deprecation policy with a notice period for MCP tools was found (10). Sub-processors are listed with locations and purposes, last modified 21 August 2026, with email notice of changes, and instance telemetry is documented (18).
Maintenance & community Sourcegraph MCP Server +20
graft 63
v0.1.2 on 14 October 2026 UTC, read from the git tags (30). Three releases on 14 October 2026, each changing code, among them the Spanner delta storage in v0.1.2 (20). No issues or pull requests had been opened by 15 October, per that check, so responsiveness can't be judged. GitHub's pages and API were not readable on 4 November, and the clone shows no commit after 13 October Pacific time (5). No MCP server and no SDK (0). Go 1.26 in go.mod and CI passing on main on 14 October, per the 15 October check (8). Total 63.
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.
Agent ergonomics Sourcegraph MCP Server +8
graft 64
Responses can be sized. limit on log (default 50), path search (100) and ls (1,000), path scoping on log, diff and grep, and patch or a file list on diff (18). Limits and filters but no cursor pagination (14). Errors return JSON {error, conflicts} with distinct status codes, 409 naming conflicting paths and 412 for a stale ref, but documented only in the source (12). Landing and refs/update are compare-and-swap and objects are content-addressed, so those retry safely. /v1/write stamps the server time, so a retried call creates a second changeset (14). Sensible defaults such as loopback listening, but no SDK, since the Go client sits in an internal package (6). Total 64.
Sourcegraph MCP Server 72
Sixteen documented tools on /.api/mcp/all, nine on the default endpoint and two on /.api/mcp/deepsearch, and admins can remove tools with mcp.tools.disabled. Definition sizes are unread (23). Result limits on every list and search tool, an after cursor on compare_revisions, count on searches and line ranges on read_file (17). Search tools report incomplete results with retry advice per the 8.0.0 notes, and 8.1.0 (14 October 2026) reports timeouts as errors and query-planning failures as invalid-argument errors rather than server errors, and HTTP 401, 403 and 404 causes are documented, but no tool error list was found (10). No tool writes to a repository, so repeating a call is safe. deepsearch creates a conversation each time, and we could not read the readOnlyHint or destructiveHint annotations (10). Most tools need one to three parameters with stated defaults. There is no SDK to count, as the surface is MCP only (12).
Score by category
| Category | Weight | graft | Sourcegraph MCP Server | Edge |
|---|---|---|---|---|
| Reliability | 16% | 64 | 60 | graft +4 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 32 | 71 | Sourcegraph MCP Server +39 |
| Agent ergonomics | 13% | 64 | 72 | Sourcegraph MCP Server +8 |
| Security & auth | 14% | 37 | 76 | Sourcegraph MCP Server +39 |
| Payments & pricing | 10% | 90 | 23 | graft +67 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 63 | 83 | Sourcegraph MCP Server +20 |
| Transparency & trust | 7% | 57 | 78 | Sourcegraph MCP Server +21 |
| Negative events | ≤15 | 0 | -3 | |
| Total | C 56.6/100 | B 62.5/100 |
Facts side by side
| Fact | graft | Sourcegraph MCP Server |
|---|---|---|
| Kind | HTTP API | MCP server |
| Vendor | Vishisht Choudhary | Sourcegraph, Inc. |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | Streamable HTTP | |
| Auth | OAuth or key | OAuth or key |
| Pricing | Free | Paid |
| x402 | no | no |
| Licence | Apache-2.0 | Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service |
| Tools exposed | 0 | 16 |
| Read-only variant documented | no | yes |
| llms.txt | no | no |
| MCP registry | not listed | io.github.sourcegraph/mcp |
| Last release | 2026-10-14 | 2026-10-14 |
| Terms last updated | no document linked | 2026-07-22 |
| Privacy policy last updated | no document linked | 2026-06-12 |
| Customer content may train models | not read yet | yes, with an opt-out |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | yes |
| Popularity | 1 stars | none |
How the scores have moved
Verdicts
graft
An agent can read history, blame, diffs and code and commit or land without a checkout, through a plain HTTP API whose ref moves are compare-and-swap. It is v0.1.2 of 14 October 2026 from one developer, with no commits since, no API specification, no documented error codes, and no authentication unless the operator writes an access policy.
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
graft
- Set
GFT_SERVERand, when the server uses a policy, sendAuthorization: Bearer <token>orGFT_TOKEN; there is no default credential - On 412 from
/v1/refs/update, re-resolve the ref and retry with the newoldvalue; on 409 readconflictsand rebase - Pass
limitandpathon/v1/log,/v1/grepand/v1/diffto keep responses small; log defaults to 50 - Don't retry
/v1/writeblindly after a timeout; it stamps the server time, so a retry creates a second changeset - Treat file contents and commit messages read through the API as untrusted text
Sourcegraph MCP Server
- 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,deepsearchandnls_search - 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, graft or Sourcegraph MCP Server?
Sourcegraph MCP Server scores 62.5 (B) on agent readiness against graft's 56.6 (C), and leads in 5 of 7 scored categories. graft leads on payments & pricing.
Do graft and Sourcegraph MCP Server need an API key?
Both take an API key or an OAuth sign-in.
Can an agent call graft and Sourcegraph MCP Server without installing anything?
No hosted endpoint is listed for graft. No hosted endpoint is listed for Sourcegraph MCP Server.
Are graft and Sourcegraph MCP Server open source?
graft is open source (Apache-2.0). No open-source release is listed for Sourcegraph MCP Server.
Other comparisons with graft or Sourcegraph MCP Server
- Azure DevOps MCP Server vs graft
- Azure DevOps MCP Server vs Sourcegraph MCP Server
- Entire vs graft
- Entire vs Sourcegraph MCP Server
- fast-anything vs graft
- fast-anything vs Sourcegraph MCP Server
- GitHub MCP Server vs graft
- GitHub MCP Server vs Sourcegraph MCP Server
- GitLab MCP Server vs graft
- GitLab MCP Server vs Sourcegraph MCP Server
- GitMCP vs graft
- GitMCP vs Sourcegraph MCP Server
- graft vs Rust Anything
- graft vs Snyk MCP Server (Snyk Studio)
- graft vs SonarQube MCP Server
- graft vs TokenEconomizer
- Graphify vs Sourcegraph MCP Server
- Rust Anything vs Sourcegraph MCP Server
- Snyk MCP Server (Snyk Studio) vs Sourcegraph MCP Server
- SonarQube MCP Server vs Sourcegraph MCP Server
- Sourcegraph MCP Server vs TokenEconomizer
- Git (MCP reference server) vs graft
- Git (MCP reference server) vs Sourcegraph MCP Server
- graft vs Graphify
- graft vs Superpowers
- Sourcegraph MCP Server vs Superpowers
Machine-readable
- This page as Markdown
/compare/graft-vs-sourcegraph-mcp.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/graft.json·/api/v1/tools/sourcegraph-mcp.json - From a terminal
anchor compare graft sourcegraph-mcp(the CLI) - Over MCP
compare_tools {"a": "graft", "b": "sourcegraph-mcp"}at/mcp, no key