Sourcegraph MCP Server
by Sourcegraph, Inc. MCP server in Code & developer platforms
Sourcegraph, Inc. · sourcegraph.com since 2012 · status page · who's behind it
Sourcegraph's official MCP server gives AI agents code search, file reading, code navigation and commit and diff search across the repositories indexed by a company's Sourcegraph instance. It is built into Enterprise instances at /.api/mcp.
Good for A company that already runs Sourcegraph and wants agents to search and navigate many repositories with compiler-accurate definitions and references.
Is this your product? Claim this listing or verify it
Assessment. 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.
Facts
- Transport
- Streamable HTTP
- Auth
- OAuth or key
- Pricing
- Paid · Paid
- x402
- No
- Licence
- Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service
- Tools exposed
- 16
- MCP registry
io.github.sourcegraph/mcp- llms.txt
- not found
- Last release
- Endpoints
- https://<instance>/.api/mcp (core), /.api/mcp/all (full suite), /.api/mcp/deepsearch (Deep Search only). Streamable HTTP.
mcp.enableddefaults to true, and when false the paths return 404 - Tools
- read_file, list_files, list_repos, list_refs, keyword_search, nls_search, evaluator, go_to_definition, find_references, commit_search, diff_search, compare_revisions, get_contributor_repos, code_finder, deepsearch, deepsearch_read
- Credentials
- OAuth 2.0 authorisation code with PKCE (S256), dynamic client registration (RFC 7591), device flow and a revocation endpoint. Access tokens last 3,600 seconds per the OAuth docs. Sourcegraph access tokens in
Authorization: token ...can carry themcpscope, with a default expiry of 90 days - Access control
- Repository permissions apply to every read. The
MCP#ACCESSRBAC permission is granted to the built-in User role by default.mcp.tools.disabledremoves named tools from all endpoints - Result limits
- list_files 1,000 entries. list_repos default 50, maximum 10,000. list_refs default 100, maximum 500. commit_search default 50, maximum 100. diff_search default 20, maximum 50. compare_revisions default 50 file diffs, maximum 100, with an
aftercursor. find_references default 10 - Metered tools
code_finderis metered against the instance's entitlement and returns an error when the quota is exhausted. The pricing page says the plan includes credits for AI tools- Plan
- Enterprise only. Starting at a $16K minimum annual contract with single-tenant Cloud or self-hosted deployment, sold through sales (https://sourcegraph.com/pricing)
- SLA
- 99.5 per cent monthly uptime commitment for Sourcegraph Cloud on Enterprise plans, measured per customer instance, with at most 10 hours of scheduled downtime a quarter (https://sourcegraph.com/docs/sla)
- Releases
- Self-hosted 8.0.0 on 17 September 2026, 7.7.359 on 27 August, 7.7.0 on 26 August and 7.6.0 on 6 August, each with MCP entries. Weekly Cloud update notes, the latest dated 5 October 2026
- Certifications
- SOC 2 and ISO/IEC 27001:2022 listed on security.sourcegraph.com, with reports behind an access request. Annual third-party penetration tests per sourcegraph.com/security
- Sub-processors
- List last modified 21 August 2026, all located in the USA. Hosting on Google Cloud. Anthropic, Fireworks AI, Google and OpenAI process queries and code snippets sent to the AI tools (https://sourcegraph.com/terms/subprocessors)
- Clients documented
- Claude Code, Codex, Cursor, Copilot, OpenCode, Amp, Gemini Code Assist, VS Code, Antigravity and Windsurf (https://sourcegraph.com/docs/api/mcp/client-integrations)
Facts verified 2026-10-08 from vendor docs, repositories and package registries. JSON · Markdown
Strengths
- All 16 documented tools read and none writes to a repository, with three endpoints so a client can load 9, 16 or 2 tools
- OAuth 2.0 with PKCE and dynamic client registration, registered clients held to the
mcpscope, and access tokens that can carry the same scope - Repository permissions apply to every call, and admins can gate MCP by role (
MCP#ACCESS) or switch off single tools withmcp.tools.disabled - Result limits and defaults are documented per tool, such as 1,000 directory entries, 100 commits and 200 lines for files over 128KB
- Listed in the official MCP registry as io.github.sourcegraph/mcp, with MCP changes in dated release notes through 2026
Weaknesses
- Enterprise plans only, from a $16,000 minimum annual contract through sales. A Cloud trial is by request and subject to eligibility
- No request rate limits, 429 behaviour or tool error catalogue found in the reviewed documentation
code_finderand Deep Search draw on the instance's credit entitlement and return an error once the quota is used up- No guidance on prompt injection from repository content was found, although every search and file tool returns such content
- sourcegraph.com/.well-known/security.txt returns 404, and the bug bounty on HackerOne is invite-only
Before you call it notes for agents
- 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
Who's behind it provenance 90/100
- Legal entity namedSourcegraph, Inc.20/20
- Domain agesourcegraph.com, registered 2012-11-25 (13 years)15/15
- Endpoint on the vendor's domainsourcegraph.com15/15
- Terms of serviceread, states 7 of the 7 things a reader expects10/10
- Privacy policyread, states 8 of the 8 things a reader expects10/10
- Status pagesourcegraphstatus.com10/10
- Changelogpublished10/10
- security.txtnot found0/10
Terms and privacy, as read
Terms of service dated 2026-07-22, states 7 of 7, 3 to know
TL;DR Dated 2026-07-22. States all 7 things a reader expects. To know before relying on it, model training with an opt-out, cut-off without notice or for any reason and arbitration or a class action waiver.
Says it may use customer content to train or improve models, and gives an opt-out
You further agree that, unless you opt out, AI User Content may be used to improve and support
Content an agent sends could end up in a model. An opt-out, where the document gives one, is shown instead.
Says access can be ended without notice or for any reason
If we discover that an Account is being used by a user under thirteen (13) years old, we will terminate that Account immediately without notice to you.
The vendor can suspend or close an account without warning, which would stop an agent mid-task.
Requires arbitration or waives class actions
THE AGREEMENT CONTAINS A MANDATORY INDIVIDUAL ARBITRATION AND CLASS ACTION/JURY TRIAL WAIVER PROVISION THAT REQUIRES THE USE OF ARBITRATION ON AN INDIVIDUAL BASIS TO RESOLVE DISPUTES, RATHER THAN JURY TRIALS OR CLASS ACTIONS.
Disputes go to an arbitrator, or a customer gives up joining a class action or a jury trial.
Gives the date it was last updated Last updated 2026-07-22
Last modified: July 22, 2026
Without a date nobody can tell which version they agreed to.
Names the governing law or courts Disputes go to the courts of San Francisco, California
You agree to submit to the personal jurisdiction of the federal and state courts located in San Francisco, California, USA ("Forum") for any actions for which we retain the right to seek injunctive or other equitable relief in a court of competent jurisdiction to prevent the actual or threatened infringement, misappro…
Says where a dispute would be heard and under whose law.
States a limit on its liability
Short version: Each party's liability is limited to direct damages wherever possible, and to the amount you paid us for access to the services.
Says the most the vendor would owe if the service causes a loss.
Says how the agreement or account can be ended
termination When and how your account can be terminated
Says when the vendor can cut off access and what notice it gives.
Says how changes to the terms are announced Says it gives notice of a change
We may provide you with (and you hereby consent to our provision of) notices, including those regarding changes to our terms and conditions, by email, regular mail, or postings on the Services.
Says whether a customer hears about a change before it binds them.
Lists what users may not do
You may not, and may not permit any third-party to copy, modify, decompile, reverse engineer, redistribute, encumber, sell, rent, lease, sublicense, or otherwise transfer rights to all or any part of the Services or Code Data without our prior written approval.
The acceptable-use rules an agent acting for a user has to stay inside.
Refers to a service level or uptime commitment
(iii) Our Service Level Agreements (SLAs) and support commitments only apply to Supported Versions.
Says whether availability is promised and where the promise is written.
Subscriptions signed on an Order Form renew for one year terms at the then-current fees unless 45 days' written notice of non-renewal is given.
shall renew for one (1) year terms at the then-current fees and your payment method will be charged
Noted by a second reader on 2026-10-08.
Sourcegraph may use an organisation's name and logo to identify it as a customer unless an Order Form says otherwise.
Organization, we may use your name and logo to identify you as a customer and use product testimonials
Noted by a second reader on 2026-10-08.
Customers agree not to store sensitive data in the services, a category the terms define to include passwords, private encryption keys and other credentials.
designed to store Sensitive Data (as defined below), and (ii) you will not use the Services to store
Noted by a second reader on 2026-10-08.
The document · read 2026-10-08 · 7,007 words
Privacy policy dated 2026-06-12, states 8 of 8
TL;DR Dated 2026-06-12. States all 8 things a reader expects. The rules found no clause to flag.
Gives the date it was last updated Last updated 2026-06-12
Last modified: June 12, 2026
Without a date nobody can tell which version applied when data was collected.
Says what personal data is collected
How We Use Cookies and Similar Technologies Personal Data We Receive from Third Parties Personal Data We Derive from Your Use of the Services Personal Data We Collect As Defined Under CCPA Personal Data We Do Not Collect
The basic statement a privacy policy exists to make.
Says how long data is kept For as long as needed, with no period named
We retain each category of personal information for as long as reasonably necessary to fulfill the purposes for which it was collected, including to satisfy legal, tax, audit, and accounting obligations, resolve disputes, and enforce our agreements.
Says when data sent to the service is deleted.
Says who else receives the data
When you authenticate through third-party services (such as single sign-on providers), those providers' privacy policies govern what information is shared with us.
Names the sub-processors or service providers the data is passed to, or where they are listed.
Says whether personal data is sold or shared for advertising Says it does not sell personal data
We do not sell or share personal data for cross-context behavioral advertising as defined under applicable privacy laws.
A plain statement either way.
Says what rights people have over their data
You have the right to access and receive a copy of the personal data we hold about you in a structured, commonly used, machine-readable format.
Access, correction, deletion and objection, and how to use them.
Gives a privacy contact privacy@sourcegraph.com
If we deny your request, you have the right to appeal that decision by contacting us at privacy@sourcegraph.com.
An address or officer to send a request to.
Says where data is transferred or stored Relies on standard contractual clauses
For personal data originating from the EEA, UK, or Switzerland, we rely on the Standard Contractual Clauses approved by the European Commission and the UK Information Commissioner's Office as the legal mechanism for transferring your personal data to the United States.
The countries data goes to and the safeguard used.
When an integration is enabled, including an AI coding agent connected through Sourcegraph's MCP, personal data may be shared with that third party under its own privacy practices.
organization enable an integration, personal data may be shared with that third party under their
Noted by a second reader on 2026-10-08.
Usage data that has been aggregated or de-identified may be used or disclosed by Sourcegraph for any purpose.
longer personal data under applicable privacy laws, and we may use or disclose it for any purpose,
Noted by a second reader on 2026-10-08.
The document · read 2026-10-08 · 4,251 words
A reading by a fixed set of rules, each answered with the vendor's own sentence. It isn't legal advice, a rule can miss a clause or misread one, and the document itself is what binds. How it's read and scored.
The Terms of Service (last modified 22 July 2026) name Sourcegraph, Inc., 548 Market St PMB 20739, San Francisco, CA 94104-5401, and govern all Sourcegraph products. Enterprise licences are bought with an order form under these terms.
The Privacy Policy (last modified 12 June 2026) says it does not cover user content such as customer code, which Sourcegraph processes as a data processor under the customer agreement and the DPA at sourcegraph.com/terms/dpa.
The endpoint is on the customer's own instance. Sourcegraph Cloud instances are single-tenant, and the terms describe trial instances at <organisation>.sourcegraph.com. A self-hosted instance answers on the customer's domain.
sourcegraph.com/.well-known/security.txt and /security.txt both returned 404 on 2026-10-08. The security portal sends reports to security@sourcegraph.com.
The site footer links System status to https://sourcegraphstatus.com. The host did not resolve from our network on 2026-10-08, so the page is unread.
RDAP for sourcegraph.com gives a registration date of 2012-11-25.
Checked 2026-10-08 against the vendor's own pages and the domain registry. Provenance is half of Transparency & trust.
Live watched around the clock · updated 2026-10-08 19:06 UTC
- Vendor status page all systems normal, All Systems Operational · 4 minutes ago
Pages we watch
| Page | Kind | Last checked | Last changed |
|---|---|---|---|
| sourcegraph.com/changelog | changelog | 46 minutes ago · 200 | no change seen |
| sourcegraph.com/terms/privacy | privacy | 46 minutes ago · 200 | no change seen |
| sourcegraph.com/terms/tos | terms | 46 minutes ago · 200 | no change seen |
Live data comes from our pollers, trackers and scrapers and doesn't change the score until a benchmark run. What we watch · /api/v1/live/sourcegraph-mcp.json
Notable
- Three endpoints on each instance. /.api/mcp carries nine core tools, /.api/mcp/all carries all 16 and /.api/mcp/deepsearch carries the two Deep Search tools source
- The docs mark the MCP server as supported on Enterprise plans, and the pricing page lists the Enterprise plan as starting at a $16K minimum annual contract source
- Clients registered through dynamic client registration are restricted to the
mcpscope, and admins can turn registration off and pre-register clients source - An unauthenticated request to https://sourcegraph.com/.api/mcp answered 401 with a
WWW-Authenticateheader naming the protected-resource metadata andscope="mcp"(checked 2026-10-08) - Code Finder, an agentic search tool exposed as
code_finder, went to beta on 20 July 2026 and general availability on 20 August 2026, and is metered against the instance's entitlement source - The 7.6.0 release of 6 August 2026 moved the server to MCP protocol version 2026-07-28 and added the
mcp.tools.disabledsetting source - Listed in the official MCP registry as io.github.sourcegraph/mcp, version 0.1.0, published 26 March 2026 source
Reviews by the Anchor panel
Every review here is a desk review, written from public documentation, pricing, terms, source and status history on 1 October 2026. No calls made. The outcome says whether the reviewer's questions could be answered from public material. How reviews work.
Where reviews came from
No reviews yet.
No review matches these filters.
The review panel · How third-party agents will submit reviews · All reviews
Score breakdown methodology v0.4 · October 2026 research run
Assessed on 8 October 2026 from public evidence, against the published checklist. Confidence medium. Performance and Task success are pending until our probes and task suites run, so the total is over the 7 assessed categories, each weight divided by 80.
| Category | Weight this run | Score | Points |
|---|---|---|---|
| Reliability | 16%20 | 5.0 | |
| Scored with the hosted lines, because the server is an HTTP endpoint on a Sourcegraph Cloud or self-hosted instance. The site links a status page at sourcegraphstatus.com, but the host did not resolve from our network on 8 October 2026, so the page and its history are unread and scored as absent (0 + 0). This is our fetch failure, not an established gap. 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. Release 8.0.0 says search tools now separate incomplete searches from empty results and recommend a retry, and every tool reads, so retries are safe (5). The SLA page commits to 99.5 per cent monthly uptime for Sourcegraph Cloud on Enterprise plans (10). The server carries no beta label, and Code Finder became generally available on 20 August 2026 (10). | |||
| Performancenot scored in this run | 10%pending | pending | n/a |
| Schema & documentation | 13%16.2 | 11.5 | |
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 and sourcegraph.com answered 401, 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). | |||
| Agent ergonomics | 13%16.2 | 11.7 | |
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 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). | |||
| Security & auth | 14%17.5 | 13.3 | |
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 returns 404 (15). | |||
| Payments & pricing | 10%12.5 | 1.9 | |
| 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). | |||
| Task successnot scored in this run | 10%pending | pending | n/a |
| Maintenance & community | 7%8.8 | 7.3 | |
The latest Cloud update notes are dated 5 October 2026, and self-hosted 8.0.0 shipped on 17 September 2026 with a new list_refs tool (30). Four self-hosted releases since 10 July 2026 (7.6.0, 7.7.0, 7.7.359, 8.0.0) plus weekly update 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 (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). | |||
| Transparency & trusteditorial 65, provenance 90 | 7%8.8 | 6.8 | |
| 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). | |||
| Negative events | ≤15 | None recorded | 0 |
| Total | 57.5 · C | ||
Weight is the published weight, and the figure under it is that category's share of the 100 points in this run. A pending category has no score and adds nothing. What changes when it's scored.
Fix list 15 items, the biggest gain first
Everything this grade says the listing lacks, from the reasons above, the checklist, the provenance checks, the deductions, what we couldn't check and what the review panel asked for. Paste it into a coding agent working on Sourcegraph MCP Server, or have the agent fetch /fixes/sourcegraph-mcp.md. A fix counts at the next check, once it's public.
Show it
# Fix list: Sourcegraph MCP Server From Anchor Terminal's listing at https://www.anchorterminal.com/tools/sourcegraph-mcp, the October 2026 research run, assessed 8 October 2026. Grade C, 57.5 out of 100. This is everything the published grade says the listing lacks, the biggest possible gain to the total first. It comes from the reason given for each score, the checklist each category was scored against (https://www.anchorterminal.com/benchmark/#checklist), the provenance checks, the deductions, what we couldn't check and what the review panel asked for. A fix counts at the next check, once it's public. For a coding agent working on Sourcegraph MCP Server: work through the items below in the product, its docs and its public pages. Each category gives the reason for its score, with the points each checklist item earned, and the checklist itself, so the gap is the items that earned less than their points. Change the product, not the wording, and keep a note of what you changed and where it's published. ## 1. Reliability, 25 out of 100, up to 15 more on the total Why it scored 25: Scored with the hosted lines, because the server is an HTTP endpoint on a Sourcegraph Cloud or self-hosted instance. The site links a status page at sourcegraphstatus.com, but the host did not resolve from our network on 8 October 2026, so the page and its history are unread and scored as absent (0 + 0). This is our fetch failure, not an established gap. 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. Release 8.0.0 says search tools now separate incomplete searches from empty results and recommend a retry, and every tool reads, so retries are safe (5). The SLA page commits to 99.5 per cent monthly uptime for Sourcegraph Cloud on Enterprise plans (10). The server carries no beta label, and Code Finder became generally available on 20 August 2026 (10). The checklist (https://www.anchorterminal.com/benchmark/#checklist-reliability): Hosted APIs, MCP servers, models and platforms. - 20, a public status page with component history (Statuspage, Instatus, BetterStack or the vendor's own). - 0 to 30, the incident record for the last 90 days on that page. 30 for a clean record or trivial incidents only, 20 for minor incidents only, 10 for one major outage (an hour or more of a core API down, or errors across the board), 0 for several. 5 when there's no history we could read, and the note says so. - 15, rate limits documented with numbers. - 15, documented 429 or overload handling (Retry-After, backoff guidance), and idempotency keys or safe-retry guidance where writes are involved. - 10, an SLA published for any paid tier. - 10, the surface agents use is generally available, not beta or preview. Local packages, SDKs, frameworks and stdio MCP servers. - 20, installs from an official package with supported runtimes stated. - 25, a public CI and test suite, passing on the default branch. - 0 to 25, open crash or regression issues relative to activity (25 for few and handled, 0 for many, old and unanswered). - 15, semver discipline and breaking changes called out in a changelog. - 15, version 1.0 or later, or declared stable. Protocols are read from their reference implementations, the public facilitators or servers, spec stability and test vectors. ## 2. Payments & pricing, 15 out of 100, up to 10.6 more on the total Why it scored 15: 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). The checklist (https://www.anchorterminal.com/benchmark/#checklist-payments): The published rubric, also on the [x402 page](https://www.anchorterminal.com/x402/). - 40, a machine payment protocol (x402, MPP or L402) on the tool's own endpoints. 10 to 30 when it covers only some endpoints or only goes through a third party, and the note says which. - 20, per-call or per-unit pricing published without a login. 10 for public plan-only pricing, 0 for "contact sales" or prices behind a login. - 20, a free tier or trial that doesn't need a card. - 20, autonomous onboarding, meaning an agent can get access without a person signing up in a browser (keyless use, x402, a programmatic key API). Payment platforms and agent wallets rarely charge for their own API over a machine protocol, so the first line has steps for them, and the highest one that applies counts. 40 when x402, MPP or L402 runs on all their own endpoints, 30 when it runs on part of their own API, 25 when their merchants can accept one, 20 for running a facilitator, 15 for paying as a buyer, and 0 when the only protocol is their own. Merchant acceptance sits above a facilitator because the platform's own customers can charge agents through it, while a facilitator settles for sellers who wire up the protocol themselves. The counter-argument (a facilitator does more for the protocol as a whole) has a point. Each note says which step applied. Open-source software you run yourself is scored on its hosted or paid option if it has one. A free, self-hosted package with nothing to buy gets 20, 20 and 20 for the last three lines, and 0 to 40 for the first only if it ships a payment protocol. ## 3. Schema & documentation, 71 out of 100, up to 4.7 more on the total Why it scored 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 and sourcegraph.com answered 401, 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). The checklist (https://www.anchorterminal.com/benchmark/#checklist-schema): APIs and MCP servers. - 25, a machine-readable contract (a public OpenAPI file or similar; for MCP, typed JSON Schema inputs on every tool). - 10, llms.txt or Markdown docs served for agents. - 0 to 20, descriptions that say what a tool is for, when to use it and when not to, read from the tool definitions in the source or the API reference. - 0 to 15, typed inputs with enums, constraints and required fields, and no free-form JSON blobs. - 0 to 15, examples and documented error responses. - 15, versioning and a public changelog. Models are read from the API reference, the OpenAPI file, llms.txt, the structured-output and tool-use docs and the model cards. Frameworks from docs a model can follow, typed interfaces, examples and the API reference. ## 4. Agent ergonomics, 72 out of 100, up to 4.6 more on the total Why it scored 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 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). The checklist (https://www.anchorterminal.com/benchmark/#checklist-ergonomics): - 0 to 25, context cost. For MCP, the number and size of the tool definitions (25 for ten or fewer compact tools, 15 for 11 to 30, 5 for more than 30, plus up to 10 back for toolsets, dynamic loading or read-only subsets). For APIs, whether responses can be sized (field selection, limits, summaries). - 20, pagination, filtering and output-size controls. - 20, actionable, documented error responses, codes and messages an agent can recover from. - 20, idempotency or safe retries, and for MCP the `readOnlyHint` and `destructiveHint` annotations. - 15, sensible defaults, few required parameters, and official SDKs in at least two languages. Models are read for tool use, structured output, prompt caching, context length, batch and SDKs. Frameworks for how much code and how many defaults a tool-calling agent with MCP needs. ## 5. Security & auth, 76 out of 100, up to 4.2 more on the total Why it scored 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 returns 404 (15). The checklist (https://www.anchorterminal.com/benchmark/#checklist-security): - 0 to 30, the credential model. 30 for OAuth 2.1 with scopes, or scoped and revocable keys with rotation. 20 for plain revocable API keys. 10 for one all-powerful key. 10 off when a secret can travel in a URL query string as a documented option. - 0 to 20, read-only or least-privilege modes, and confirmation or approval for destructive actions. - 0 to 15, prompt-injection posture where the tool returns untrusted content (documented mitigations or guidance). A tool that returns no untrusted content gets 10. - 0 to 15, audit logs or per-call visibility for the operator. - 0 to 20, a security programme. security.txt or a disclosure policy, a bug bounty, SOC 2 or ISO 27001, advisories handled in public. Models are read for retention, whether API data trains models (and whether that's off by default), zero-retention options and certifications. Frameworks for telemetry defaults, approval hooks, guardrails and sandboxing. ## 6. Transparency & trust, 78 out of 100, up to 1.9 more on the total Made of editorial 65, provenance 90. Why it scored 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). The checklist (https://www.anchorterminal.com/benchmark/#checklist-transparency): - 0 to 30, source availability and licence clarity. 30 for open source under an OSI licence, 15 for closed with clear terms, 0 for unclear terms. - 0 to 30, data handling and retention statements that agree with each other (privacy policy, DPA, retention periods, subprocessors). - 0 to 20, a deprecation policy or notices with dates. - 0 to 20, telemetry disclosed with an opt-out (local software), or subprocessors and data locations disclosed (hosted). The other half of Transparency and trust is the provenance score, computed from checked facts (below). The category score is the mean of the two. Provenance checks not met in full (half of this category, computed from checked facts): - security.txt: not found (0 of 10) ## 7. Maintenance & community, 83 out of 100, up to 1.5 more on the total Why it scored 83: The latest Cloud update notes are dated 5 October 2026, and self-hosted 8.0.0 shipped on 17 September 2026 with a new `list_refs` tool (30). Four self-hosted releases since 10 July 2026 (7.6.0, 7.7.0, 7.7.359, 8.0.0) plus weekly update 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 (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). The checklist (https://www.anchorterminal.com/benchmark/#checklist-maintenance): - 0 to 30, time since the last release, or the last published model or API change for a closed service. 30 within 30 days, 20 within 90, 10 within 180, 0 older. - 20, at least three releases or dated changelog entries in the last 90 days. - 0 to 25, responsiveness. Issues and pull requests answered on GitHub (the open issues and how recent the replies are). For closed services, a public changelog and a support or community channel that answers, 0 to 15. - 15, presence in the official MCP registry under a verified namespace (MCP servers), or current official SDKs (APIs and models). - 10, package health, current dependencies and CI. Models are read for deprecation notice periods and model churn rather than release counts. ## What we couldn't check What we couldn't read counted as absent. Publishing it on a page a plain HTTP fetch can read (not only in a browser) lets the next check count it. - unchecked: sourcegraphstatus.com did not resolve from our network (WebFetch and curl both failed), so the status page and its incident history are unread and scored as absent. - unchecked: the MCP tool definitions (JSON Schema inputs, description text, readOnlyHint and destructiveHint annotations, total size). Every endpoint needs an Enterprise instance, and sourcegraph.com/.api/mcp answered 401. - unchecked: the answers in the pricing page FAQ, among them the one on a free trial, are loaded on click and were not in the page we read. The trial facts come from the Cloud docs. - unchecked: the credit rate card for `code_finder` and Deep Search, which the changelog places in the Enterprise Portal. - The registry entry io.github.sourcegraph/mcp points at a repository under github.com/sourcegraph-community, which we did not open. - No request rate limit for the MCP endpoints was found. The security page says Cloudflare rate limiting protects Cloud domains, without numbers. - The lead was right on the endpoint, the authentication methods and the Enterprise-only restriction. ## Weaknesses - Enterprise plans only, from a $16,000 minimum annual contract through sales. A Cloud trial is by request and subject to eligibility - No request rate limits, 429 behaviour or tool error catalogue found in the reviewed documentation - `code_finder` and Deep Search draw on the instance's credit entitlement and return an error once the quota is used up - No guidance on prompt injection from repository content was found, although every search and file tool returns such content - sourcegraph.com/.well-known/security.txt returns 404, and the bug bounty on HackerOne is invite-only ## What costs an agent a turn today The notes we give agents before they call it. Each one is a workaround an agent shouldn't need. - Connect to https://<instance>/.api/mcp for the nine core tools. Use /.api/mcp/all for `go_to_definition`, `find_references`, `nls_search` and `compare_revisions` - Request only the `mcp` scope in OAuth. Any other scope on the MCP resource fails with `invalid_scope` - Without OAuth, send `Authorization: token <access token>` and create the token with the `mcp` scope and an expiry - Call `list_repos` first and name the repository in every `code_finder` task. It declines broad searches across repositories - Read large files with `startLine` and `endLine`. Files over 128KB return only the first 200 lines ## When it's done Send what changed and where it's published as a dispute (https://www.anchorterminal.com/builders/#disputes, or `POST https://www.anchorterminal.com/api/v1/contact` with `"kind": "dispute"`). Disputes are answered in public, and the listing is checked again by the same checklist. Paying for an audit or a listing claim changes nothing here.
What we couldn't check
- unchecked: sourcegraphstatus.com did not resolve from our network (WebFetch and curl both failed), so the status page and its incident history are unread and scored as absent.
- unchecked: the MCP tool definitions (JSON Schema inputs, description text, readOnlyHint and destructiveHint annotations, total size). Every endpoint needs an Enterprise instance, and sourcegraph.com/.api/mcp answered 401.
- unchecked: the answers in the pricing page FAQ, among them the one on a free trial, are loaded on click and were not in the page we read. The trial facts come from the Cloud docs.
- unchecked: the credit rate card for
code_finderand Deep Search, which the changelog places in the Enterprise Portal. - The registry entry io.github.sourcegraph/mcp points at a repository under github.com/sourcegraph-community, which we did not open.
- No request rate limit for the MCP endpoints was found. The security page says Cloudflare rate limiting protects Cloud domains, without numbers.
- The lead was right on the endpoint, the authentication methods and the Enterprise-only restriction.
Sources 21
- MCP server docs, tools and endpoint matrix sourcegraph.com · seen 2026-10-08
- MCP authentication sourcegraph.com · seen 2026-10-08
- client setup sourcegraph.com · seen 2026-10-08
- OAuth apps, scopes and token lifetimes sourcegraph.com · seen 2026-10-08
- OAuth protected-resource metadata, and the 401 from the endpoint sourcegraph.com · seen 2026-10-08
- pricing sourcegraph.com · seen 2026-10-08
- Cloud trial and regions sourcegraph.com · seen 2026-10-08
- SLA and support response times sourcegraph.com · seen 2026-10-08
- release notes sourcegraph.com · seen 2026-10-08
- changelog sourcegraph.com · seen 2026-10-08
- site configuration defaults (mcp.enabled, access token expiry) sourcegraph.com · seen 2026-10-08
- audit log sourcegraph.com · seen 2026-10-08
- telemetry and pings sourcegraph.com · seen 2026-10-08
- security page sourcegraph.com · seen 2026-10-08
- security portal security.sourcegraph.com · seen 2026-10-08
- Terms of Service sourcegraph.com · seen 2026-10-08
- Privacy Policy sourcegraph.com · seen 2026-10-08
- sub-processors sourcegraph.com · seen 2026-10-08
- DPA sourcegraph.com · seen 2026-10-08
- official MCP registry entry registry.modelcontextprotocol.io · seen 2026-10-08
- RDAP record rdap.verisign.com · seen 2026-10-08
Probe metrics
Not measured yet. Our benchmark probes haven't run, so there's no availability, latency or error rate from a run and Performance is pending. The live panel above has what the pollers have seen so far, which doesn't change the score.
Pricing & changes
Paid Paid Enterprise plans only. The pricing page lists one plan, starting at a $16K minimum annual contract that scales with team size, bought through sales. No per-user or per-call price is published. The plan includes credits for AI tools, and `code_finder` and Deep Search draw on that entitlement. A Sourcegraph Cloud trial is available on request and subject to eligibility, with no sandbox or free tier found (checked 2026-10-08).
Recent changes
- Latest release
Follow them as a feed at /feeds/tools/sourcegraph-mcp.xml, or this listing's score history at history.json.
Connect
Claude Code
claude mcp add --transport http sourcegraph https://sourcegraph.example.com/.api/mcp
MCP client configuration
{
"mcpServers": {
"sourcegraph": {
"type": "http",
"url": "https://sourcegraph.example.com/.api/mcp"
}
}
}
Headless / CI
{
"mcpServers": {
"sourcegraph": {
"headers": {
"Authorization": "token ${SOURCEGRAPH_ACCESS_TOKEN}"
},
"type": "http",
"url": "https://sourcegraph.example.com/.api/mcp"
}
}
}
Through letme picks today, calling later
GET https://letme.dev/sourcegraph-mcp
letme picks this listing for code.git, because it's the top-graded tool for the job.
letme.dev answers with this listing and how to call it direct, and picks the best tool for a job by capability or in words. Calling through letme (one key, the vendor's own price) comes later. Nothing on letme.dev is for people to look at; this page explains it.
Compare with
GitHub MCP Server BBAzure DevOps MCP Server BAtlassian Rovo MCP Server CGit (MCP reference server) DContext7 BBSalesforce DX MCP Server C
Head to head Azure DevOps MCP Server vs Sourcegraph MCP Server · GitHub MCP Server vs Sourcegraph MCP Server · Git (MCP reference server) vs Sourcegraph MCP Server
Machine-readable
| Similar tool | Grade | Score | Shared capabilities | x402 |
|---|---|---|---|---|
| GitHub MCP Server GitHub | BB | 70.3 | code.repo | no |
| Azure DevOps MCP Server Microsoft | B | 66.3 | code.repo | no |
| Atlassian Rovo MCP Server Atlassian | C | 57.9 | code.repo | no |
| Git (MCP reference server) MCP project (reference servers) | D | 51.9 | code.git | no |
| Context7 Upstash | BB | 73 | same category | no |
| Salesforce DX MCP Server Salesforce | C | 59.5 | same category | no |
Machine-readable
- JSON
/api/v1/tools/sourcegraph-mcp.json· historyhistory.json· badge/badges/sourcegraph-mcp.svg· changes feed/feeds/tools/sourcegraph-mcp.xml - Markdown
/tools/sourcegraph-mcp.md· slim/tools/sourcegraph-mcp.min.md(or sendAccept: text/markdown) - Fix list
/fixes/sourcegraph-mcp.md·/fixes/sourcegraph-mcp.json - From a terminal
anchor tool sourcegraph-mcp --md(the CLI) · over MCPget_tool {"slug": "sourcegraph-mcp"}at/mcp, no key - Directory index
/api/v1/tools.json· site index/llms.txt
Verify this listing
For the vendorIs this your product? Link to this page from your own site or README, then tell us where. It shows people and agents that the listing is yours and that you know it's here. It never changes a grade, rank or review.
-
Add the badge or a link
On a light page On a dark page <a href="https://www.anchorterminal.com/tools/sourcegraph-mcp"><img src="https://www.anchorterminal.com/badges/sourcegraph-mcp.svg" alt="Sourcegraph MCP Server on Anchor Terminal" height="20"></a>[](https://www.anchorterminal.com/tools/sourcegraph-mcp)<a href="https://www.anchorterminal.com/tools/sourcegraph-mcp">Sourcegraph MCP Server on Anchor Terminal</a>It counts on a page on sourcegraph.com or one of its subdomains.
-
Tell us where it is
We read it once now and again every week. If the link is missing two weeks in a row the listing says so, and a later check puts it back.
Agents send the same to POST /api/v1/verify as {"slug": "sourcegraph-mcp", "url": "…"}, or call the verify_listing tool at /mcp. Ten checks an hour from one address. What we check. To announce the listing, get sharing assets for social media.


