Sourcegraph

Updated Published

Sourcegraph is a code search and code intelligence platform that gives developers and AI agents exact search, cross-repo navigation and commit history over MCP.

Best for: companies with large monorepos or many repositories that want every coding agent to search and navigate the same code

Sourcegraph official site

What is Sourcegraph?

Sourcegraph is a code search and code intelligence platform for large codebases. Its MCP server gives AI agents such as Claude Code, Cursor and Codex exact search, cross-repository navigation, commit history and Deep Search over the same code.

Sourcegraph calls itself the context layer for an entire codebase. Code Search returns exact, exhaustive results, navigation uses SCIP (an open standard for precise code indexing), and Deep Search answers natural-language questions with citations. It works on code and its history; we found no place on its pages where a team stores decisions or agent learnings.

How does Sourcegraph work?

  1. Sourcegraph connects to your code hosts and indexes your repositories, including large monorepos.
  2. SCIP indexing gives precise go-to-definition and find-all-references across repositories.
  3. Developers can navigate code in the browser, and agents connect to the Sourcegraph MCP server, which comes with API and CLI access on the plan.
  4. An agent searches code, follows symbols, or searches commits and diffs to recover why something changed.
  5. Deep Search answers complex questions with citation-backed answers, and Code Finder, in beta, adds agentic search inside the MCP server.

How much does Sourcegraph cost?

As of 30 October 2026, Sourcegraph's pricing page lists an Enterprise plan starting at $16K with a minimum annual contract, including credits for AI features and scaling with team size. We found no free plan; a free-trial question appears in the FAQ, but its answer is not in the page HTML.

Who is Sourcegraph for, and who is it not for?

Sourcegraph suits engineering organisations with large monorepos or many repositories, where agents and developers need exact search and precise navigation across all of them. The self-hosted option and the SOC 2 Type II and ISO 27001 statements fit companies with strict security reviews.

It does not suit a small team looking for a free or self-serve plan, given the $16K starting price on a minimum annual contract. Teams that want agents to follow what the team agreed will need a separate memory or rules tool, since we found no place to record decisions.

What does Sourcegraph do well?

  • Exact, deterministic and exhaustive code search, built for large monorepos and multi-repo setups
  • Cross-repository go-to-definition and find-all-references for agents, powered by SCIP precise code indexing
  • Agents can search commits and diffs and recover intent from change history
  • One MCP server for Claude Code, Cursor, Codex, Amp and other MCP agents, so a team standardises retrieval across tools
  • Self-hosted or single-tenant cloud, with SOC 2 Type II and ISO 27001 stated, plus SSO, SCIM and RBAC

Sourcegraph on our criteria

Sourcegraph: what we found, by criterion
CriterionWhat we found
Pricing Enterprise starting at $16K, with a minimum annual contract, including credits for AI features and scaling with team size Verified
Free plan Not publicly documented
Open source Not publicly documented
Human approval Not publicly documented
Cites sources Deep Search gives grounded, citation-backed answers to natural-language questions about the code Vendor-reported
Versioning and history Code history only: agents search commits and diffs and compare revisions; we found no store of memories or rules to version Verified
Shared across agents Yes: one MCP server for MCP-compatible agents, so teams standardise retrieval across tools; Claude Code, Cursor, Codex and Amp are named Verified
Context graph Code graph only: precise go-to-definition and find-all-references across repositories through SCIP indexing; we found no graph of decisions or entities Verified
Enterprise sources Not publicly documented
Deployment Single-tenant cloud or self-hosted Verified
Compliance SOC 2 Type II and ISO 27001 Vendor-reported
Interface Full MCP server, API and CLI access on the Enterprise plan; developers can also navigate code in the browser Verified

What Sourcegraph reports

What are Sourcegraph's limits?

  • Pricing starts at $16K, with a minimum annual contract; we found no self-serve or free plan on the pricing page
  • We found no feature for storing team decisions, conventions or agent learnings; it answers questions about the code and its history
  • We found no connectors for docs, wikis or chat; the pricing page describes coverage of coding languages and code hosts
  • The free-trial answer on the pricing page is not in the page's HTML, and its docs llms.txt returned 404, so trial terms could not be confirmed

FAQ

Does Sourcegraph work with Claude Code and Cursor?

Yes. Sourcegraph's MCP server works with MCP-compatible agents and development environments, and its pricing page names Claude Code, Cursor, Codex and Amp. Agents get code search, cross-repository navigation, commit history and Deep Search through it.

Does Sourcegraph store team decisions for coding agents?

We found no feature for that on its pages. Sourcegraph indexes code and its history, so an agent can search commits and diffs to recover intent, but we found no described place where a team records conventions or decisions for agents to follow.

How much does Sourcegraph cost?

As of 30 October 2026, Sourcegraph lists an Enterprise plan starting at $16K, with a minimum annual contract, with credits for AI features included and pricing that scales with team size. MCP server, API and CLI access are part of that plan. We found no free plan on the pricing page.

Sources checked

Show 4 sources