# graft vs Sourcegraph MCP Server > Sourcegraph scores 57.5 (C) to graft's 52.5 (D) for git operations. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp - Markdown: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.md (~2,100 tokens) - Slim: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.min.md (~730 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-15 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. - graft: grade D, 52.5/100, rank #789 of 1094. Markdown https://www.anchorterminal.com/tools/graft.md · JSON https://www.anchorterminal.com/api/v1/tools/graft.json - Sourcegraph MCP Server: grade C, 57.5/100, rank #648 of 1094. Markdown https://www.anchorterminal.com/tools/sourcegraph-mcp.md · JSON https://www.anchorterminal.com/api/v1/tools/sourcegraph-mcp.json - Best code, repository and documentation tools for AI agents: https://www.anchorterminal.com/best/code/index.md - All 12 code comparisons: https://www.anchorterminal.com/compare/code/index.md ## Which one, for what ### graft (D) Good 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 ### Sourcegraph MCP Server (C) 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 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 | graft | Sourcegraph MCP Server | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 64 | 25 | graft +39 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 32 | 71 | Sourcegraph MCP Server +39 | | Agent ergonomics | 13% (16.2 this run) | 64 | 72 | Sourcegraph MCP Server +8 | | Security & auth | 14% (17.5 this run) | 37 | 76 | Sourcegraph MCP Server +39 | | Payments & pricing | 10% (12.5 this run) | 60 | 15 | graft +45 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 63 | 83 | Sourcegraph MCP Server +20 | | Transparency & trust | 7% (8.8 this run) | 53 | 78 | Sourcegraph MCP Server +25 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **52.5 · D** | **57.5 · C** | | ## 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 1. Set `GFT_SERVER` and, when the server uses a policy, send `Authorization: Bearer ` or `GFT_TOKEN`; there is no default credential 2. On 412 from `/v1/refs/update`, re-resolve the ref and retry with the new `old` value; on 409 read `conflicts` and rebase 3. Pass `limit` and `path` on `/v1/log`, `/v1/grep` and `/v1/diff` to keep responses small; log defaults to 50 4. Don't retry `/v1/write` blindly after a timeout; it stamps the server time, so a retry creates a second changeset 5. Treat file contents and commit messages read through the API as untrusted text ### Sourcegraph MCP Server 1. Connect to https:///.api/mcp for the nine core tools. Use /.api/mcp/all for `go_to_definition`, `find_references`, `nls_search` and `compare_revisions` 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 ` 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, 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. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.json, and with the fewest tokens: https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "graft", "b": "sourcegraph-mcp"}`. From a terminal: `anchor compare graft sourcegraph-mcp` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/graft.json and https://www.anchorterminal.com/api/v1/tools/sourcegraph-mcp.json ## Other comparisons with graft or Sourcegraph MCP Server - [Azure DevOps MCP Server vs graft](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-graft.md) - [Azure DevOps MCP Server vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-sourcegraph-mcp.md) - [GitHub MCP Server vs graft](https://www.anchorterminal.com/compare/github-mcp-server-vs-graft.md) - [GitHub MCP Server vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/github-mcp-server-vs-sourcegraph-mcp.md) - [Git (MCP reference server) vs graft](https://www.anchorterminal.com/compare/git-reference-server-vs-graft.md) - [Git (MCP reference server) vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/git-reference-server-vs-sourcegraph-mcp.md)