Does Sourcegraph have an MCP server?

Yes Official

Sourcegraph maintains an official MCP server.

Verified 2026-09-29 against vendor docs
Access
Built into the product
Endpoint
<sourcegraph-instance>/.api/mcp — per-instance endpoint
The receipts
In-product <sourcegraph-instance>/.api/mcp — per-instance endpoint

Ships inside Sourcegraph's own product rather than as a standalone server. Documented at sourcegraph.com.

Connect it

Ships inside the vendor's own app or CLI rather than as a standalone download.

Add it from the terminal, then restart your session:

terminal
claude mcp add sourcegraph -- npx -y <package-from-readme>

Swap in the exact package and flags from the package page — most servers need an API key passed as an environment variable.

Add --scope user to make it available in every project.

Setup sponsor · open Put your product right here, under the setup steps of all 645 verdict pages. One sponsor at a time. $149 first month, then $399/mo →
Questions
Does Sourcegraph have an official MCP server?

Yes. Sourcegraph maintains an official MCP server.

How do I connect Sourcegraph to Claude?

Run the server locally and register it in Claude's MCP config. In Claude Code that's a single "claude mcp add" command; in Claude Desktop you add it to claude_desktop_config.json.

How is this verdict verified?

Sourcegraph documents a built-in MCP server at sourcegraph.com/docs/api/mcp, served from each instance at /.api/mcp (plus /.api/mcp/all and /.api/mcp/deepsearch) with OAuth or access-token auth on Enterprise plans. It is also listed in the MCP Registry as io.github.sourcegraph/mcp, published by the verified sourcegraph GitHub org. GitHub metadata is refreshed every six hours.

How we know

Sourcegraph documents a built-in MCP server at sourcegraph.com/docs/api/mcp, served from each instance at /.api/mcp (plus /.api/mcp/all and /.api/mcp/deepsearch) with OAuth or access-token auth on Enterprise plans. It is also listed in the MCP Registry as io.github.sourcegraph/mcp, published by the verified sourcegraph GitHub org.

  • github data refreshed 2026-09-29, then every 6 hours
  • vendor docs verified on 2026-09-29

Spotted something out of date? Tell us — corrections ship same-day.

Also in Developer Tools

See all Developer Tools servers →