Head to head · Git operations · October 2026 research run
graft vs Sourcegraph MCP Server
Sourcegraph MCP Server scores 57.5 (C) on agent readiness against graft's 52.5 (D), and leads in 5 of 7 scored categories. graft leads on reliability and payments & pricing. Both do git operations.
Best code, repository and documentation tools for AI agents · All 12 code comparisons
Which one, for what
graft D
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
- Reliability, 64 against 25
- Payments & pricing, 60 against 15
Also in its favour
- Free to start without a card
- Open source
Watch for
First commit and all three releases fall on 13 and 14 October 2026 (UTC), from one developer, with no outside issues or users visible
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 53
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 | graft | Sourcegraph MCP Server | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 64 | 25 | graft +39 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 32 | 71 | Sourcegraph MCP Server +39 |
| Agent ergonomics | 13%16.2 | 64 | 72 | Sourcegraph MCP Server +8 |
| Security & auth | 14%17.5 | 37 | 76 | Sourcegraph MCP Server +39 |
| Payments & pricing | 10%12.5 | 60 | 15 | graft +45 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 63 | 83 | Sourcegraph MCP Server +20 |
| Transparency & trust | 7%8.8 | 53 | 78 | Sourcegraph MCP Server +25 |
| Negative events | ≤15 | 0 | 0 | |
| Total | D 52.5/100 | C 57.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-09-17 |
| Terms last updated | no document linked | 2026-07-22 |
| Privacy policy last updated | no document linked | 2026-06-12 |
| Customer content may train models | yes, with an opt-out | |
| Terms restrict automated access | not found in the text | |
| Terms restrict benchmarking | not found in the text | |
| Terms or service can change without notice | not found in the text | |
| Arbitration or class-action waiver | yes | |
| Popularity | 1 stars | none |
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 two days old at v0.1.2 from one developer, with 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,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, graft or Sourcegraph MCP Server?
Sourcegraph MCP Server scores 57.5 (C) on agent readiness against graft's 52.5 (D), and leads in 5 of 7 scored categories. graft leads on reliability and 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
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