Sourcegraph website screenshot

Sourcegraph

Sourcegraph is a code intelligence platform that lets developers and AI agents search, navigate, understand, and modify code across very large, multi-repo codebases. The platform pairs classic code search and code intelligence (jump-to-definition, references, batch changes) with AI products — Cody (in-IDE AI coding assistant), Amp (frontier coding agent with its own CLI and plugin system), and Deep Search (a natural-language code research agent). Sourcegraph instances expose a versioned external REST API introduced in v7.0, a streaming search API, an analytics API, webhooks, an MCP server, and the historical GraphQL API kept available for migration. The src CLI is the long-standing command-line client.

Sourcegraph publishes 10 APIs on the APIs.io network. Tagged areas include Code Intelligence, Code Search, Cody, AMP, and AI Coding Agent.

Sourcegraph’s developer surface includes developer portal, documentation, API reference, engineering blog, CLI, pricing, support, and 14 more developer resources.

30.9/100 thin ▬ flat Agent 6/100 agent aware open core · Apache-2.0 Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessFree
10 APIs 1 MCP Servers 9 Features 5 Use Cases
Code IntelligenceCode SearchCodyAMPAI Coding AgentGraphQLREST APIMCP

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Open Source Surface applies to this provider. This product is open source and we read its repository directly, so Open Source Surface carries 10 points of the composite. It is scored from what the repository actually publishes — a security policy, a contribution guide, a release history, a code of conduct — read live from the provider rather than inferred from our own catalog pointers. This facet adds; nothing was taken away to make room for it. An open-source project is not excused from the commercial facets, because exemption would strip it of the points it does earn. If we have the wrong repository, or this product is not open source, say so on your provider repo and we will drop the facet rather than have you publish against it.
Create-or-Update Ergonomics could not be measured. We hold no machine-readable contract for this provider to read, so there is nothing to measure a write surface against. Excluded rather than scored zero: never-measured and measured-empty are different facts. Publishing an OpenAPI is what makes this facet — and several others — scorable at all.
The six quality facets above are damped to 90 points between them, because the conditional facet above carries the other 10. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 90% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from github.com/api-evangelist/sourcegraph: open an issue to ask a question, or submit a pull request to add artifacts. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

APIs 10

Individual APIs this provider publishes, each with its own machine-readable definition.

Sourcegraph REST API

Versioned external REST API introduced in Sourcegraph 7.0 and intended as the stable integration surface going forward. Each Sourcegraph instance exposes its own /api-reference ...

Sourcegraph GraphQL API

The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph now recommends migrating to the versioned REST API for compatibil...

Sourcegraph Streaming Search API

Server-sent-event API that streams search results as they are produced, used by the Sourcegraph UI and by integrations that want incremental result delivery instead of batched r...

Sourcegraph Analytics API

API surface for pulling usage and search analytics from a Sourcegraph instance.

Sourcegraph Webhooks

Sourcegraph instances expose three distinct webhook surfaces. Outgoing webhooks (Site Admin > Configuration > Outgoing webhooks) push batch_change, changeset, and user:create ev...

Sourcegraph MCP Server

Model Context Protocol server exposed by Sourcegraph so MCP-compatible AI agents can use Sourcegraph search and code intelligence as tools.

Cody by Sourcegraph

Cody is Sourcegraph's AI coding assistant. It runs inside VS Code and JetBrains IDEs, uses Sourcegraph code intelligence for codebase-aware context, and can write, explain, and ...

Amp Coding Agent

Amp is Sourcegraph's frontier coding agent, designed for pay-as-you-go use against leading AI models. It ships a CLI for macOS, Linux, WSL, and Windows, supports plugins (slash ...

Sourcegraph Deep Search

Deep Search is a natural-language code research agent that answers complex questions about a codebase by combining Sourcegraph search, code intelligence, and AI.

src CLI

src is Sourcegraph's command-line client for code search, code intelligence, batch changes, and administrative operations against a Sourcegraph instance.

Scroll for all 10

MCP Servers 1

Model Context Protocol servers that expose these APIs to AI agents.

GraphQL 1

GraphQL schemas published by this provider.

Sourcegraph GraphQL API

The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph now recommends migrating to the versioned REST API for compatibil...

GRAPHQL

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Sourcegraph Rate Limits

2 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Features 9

Notable capabilities this provider offers.

Multi-Repo Code Search

Search across every branch of every repository on every code host connected to Sourcegraph.

Code Intelligence

Jump-to-definition, find references, hover documentation, and dependency graphs powered by SCIP indexes.

Batch Changes

Apply large-scale code modifications across many repositories from a single specification.

Cody AI Assistant

Codebase-aware AI assistant for writing, explaining, and fixing code inside VS Code and JetBrains.

Amp Coding Agent

Frontier coding agent with its own CLI, plugin model, and pay-as-you-go pricing.

Deep Search

Natural-language code research agent for complex questions about large codebases.

Versioned REST API

Stable, backwards-compatible REST API introduced in v7.0 with per-instance OpenAPI schema.

Streaming Search and Analytics

SSE streaming search and an analytics API for pulling usage data.

Webhooks and MCP Server

Push events to external systems and expose Sourcegraph as a tool surface to AI agents via MCP.

Scroll for all 9

Security Posture 3

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Sourcegraph Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Sourcegraph Vulnerability Disclosure

disclosure policy published

SECURITY

Sourcegraph Trust Center

SOC 2, ISO 27001, GDPR

SECURITY

Use Cases 5

What developers build with this provider.

Code Search at Scale

Find anything across millions of lines of code across many repositories.

AI-Assisted Coding

Use Cody and Amp to write, refactor, and fix code with codebase context.

Large-Scale Refactors

Apply consistent changes across hundreds of repositories with Batch Changes.

Codebase Research

Use Deep Search to answer architectural questions about an unfamiliar codebase.

Agentic Code Tooling

Expose Sourcegraph code intelligence as MCP tools for AI agents.

Integrations 5

Pre-built integrations with other platforms and tools.

VS Code

Cody and Amp IDE integration for Visual Studio Code.

JetBrains

Cody plugin for JetBrains IDEs.

GitHub, GitLab, Bitbucket

Connects to all major code hosts.

MCP Server

Exposes Sourcegraph as a tool to MCP-compatible AI agents.

Webhooks

Event push to CI, chat, and ticketing systems.

Resources

Get Started 1

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 7

SDKs, sample code, and the tooling you integrate with

Scroll for all 7

Access & Security 3

Authentication, authorization, and security posture

Operate 3

Status, limits, changes, and where to get help

Commercial 2

Pricing, plans, and the legal terms of use

Company 2

The organization behind the API

Source (apis.yml)

apis.yml Raw ↑
aid: sourcegraph
name: Sourcegraph
description: Sourcegraph is a code intelligence platform that lets developers and AI agents search, navigate, understand,
  and modify code across very large, multi-repo codebases. The platform pairs classic code search and code intelligence (jump-to-definition,
  references, batch changes) with AI products — Cody (in-IDE AI coding assistant), Amp (frontier coding agent with its own
  CLI and plugin system), and Deep Search (a natural-language code research agent). Sourcegraph instances expose a versioned
  external REST API introduced in v7.0, a streaming search API, an analytics API, webhooks, an MCP server, and the historical
  GraphQL API kept available for migration. The src CLI is the long-standing command-line client.
type: Index
deliveryModel:
  model: open-core
  license: Apache-2.0
  open_source: true
  commercial: true
  callable_host: false
  label: Open core · an OSS project plus a commercial hosted product
  confidence: high
  source:
  - license
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: free
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Free
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/sourcegraph.png
tags:
- Code Intelligence
- Code Search
- Cody
- AMP
- AI Coding Agent
- GraphQL
- REST API
- MCP
tags_raw:
- Code Intelligence
- Code Search
- Cody
- Amp
- AI Coding Agent
- GraphQL
- REST API
- MCP
url: https://raw.githubusercontent.com/api-evangelist/sourcegraph/refs/heads/main/apis.yml
created: '2026-05-23'
modified: '2026-05-30'
specificationVersion: '0.23'
apis:
- aid: sourcegraph:sourcegraph-rest-api
  name: Sourcegraph REST API
  description: Versioned external REST API introduced in Sourcegraph 7.0 and intended as the stable integration surface going
    forward. Each Sourcegraph instance exposes its own /api-reference path where the live OpenAPI schema is published. Backwards
    compatibility is guaranteed within a major version.
  humanURL: https://sourcegraph.com/docs/api
  tags:
  - REST API
  - OpenAPI
  - Code Intelligence
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/api
  - type: APIReference
    url: https://sourcegraph.com/api-reference
- aid: sourcegraph:sourcegraph-graphql-api
  name: Sourcegraph GraphQL API
  description: The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph
    now recommends migrating to the versioned REST API for compatibility guarantees. Also exposed as a debug surface inside
    each instance.
  humanURL: https://sourcegraph.com/api/graphql
  tags:
  - GraphQL
  - Code Intelligence
  - Legacy
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/api
  - type: APIReference
    url: https://sourcegraph.com/api/graphql
  - url: graphql/sourcegraph-graphql.md
    type: GraphQL
- aid: sourcegraph:sourcegraph-streaming-search-api
  name: Sourcegraph Streaming Search API
  description: Server-sent-event API that streams search results as they are produced, used by the Sourcegraph UI and by integrations
    that want incremental result delivery instead of batched responses. Exposed per-instance at /.api/search/stream with event
    types matches, progress, filters, alert, and done.
  humanURL: https://sourcegraph.com/docs/api/stream_api
  tags:
  - Streaming
  - Search
  - SSE
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/api/stream_api
- aid: sourcegraph:sourcegraph-analytics-api
  name: Sourcegraph Analytics API
  description: API surface for pulling usage and search analytics from a Sourcegraph instance.
  humanURL: https://sourcegraph.com/docs/api
  tags:
  - Analytics
  - Reporting
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/api
- aid: sourcegraph:sourcegraph-webhooks
  name: Sourcegraph Webhooks
  description: Sourcegraph instances expose three distinct webhook surfaces. Outgoing webhooks (Site Admin > Configuration
    > Outgoing webhooks) push batch_change, changeset, and user:create events to external HTTP endpoints. The code monitoring
    webhook action delivers per-monitor JSON POSTs when a saved search returns new results. Incoming webhooks (Site Admin
    > Integrations > Incoming webhooks) receive push, batch-change, and permission events from GitHub, GitLab, Bitbucket Server,
    Bitbucket Cloud, and Azure DevOps.
  humanURL: https://sourcegraph.com/docs/admin/config/webhooks
  tags:
  - Webhook
  - Event
  - Outgoing Webhooks
  - Incoming Webhooks
  - Code Monitoring
  tags_raw:
  - Webhooks
  - Events
  - Outgoing Webhooks
  - Incoming Webhooks
  - Code Monitoring
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/admin/config/webhooks
  - type: Documentation
    url: https://sourcegraph.com/docs/admin/config/webhooks/outgoing
    name: Outgoing Webhooks
  - type: Documentation
    url: https://sourcegraph.com/docs/admin/config/webhooks/incoming
    name: Incoming Webhooks
  - type: Documentation
    url: https://sourcegraph.com/docs/code_monitoring
    name: Code Monitoring Webhook Action
- aid: sourcegraph:sourcegraph-mcp-server
  name: Sourcegraph MCP Server
  description: Model Context Protocol server exposed by Sourcegraph so MCP-compatible AI agents can use Sourcegraph search
    and code intelligence as tools.
  humanURL: https://sourcegraph.com/docs/api
  tags:
  - MCP
  - AI Agents
  - Tooling
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/api
  - type: MCPServer
    url: https://sourcegraph.com/docs/api
- aid: sourcegraph:cody
  name: Cody by Sourcegraph
  description: Cody is Sourcegraph's AI coding assistant. It runs inside VS Code and JetBrains IDEs, uses Sourcegraph code
    intelligence for codebase-aware context, and can write, explain, and fix code grounded in the user's repositories.
  humanURL: https://sourcegraph.com/cody
  tags:
  - AI Coding Assistant
  - Cody
  - IDE
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs/cody
  - type: GitHubRepository
    url: https://github.com/sourcegraph/cody-public-snapshot
- aid: sourcegraph:amp
  name: Amp Coding Agent
  description: Amp is Sourcegraph's frontier coding agent, designed for pay-as-you-go use against leading AI models. It ships
    a CLI for macOS, Linux, WSL, and Windows, supports plugins (slash commands in .agents/commands and toolbox tools in JavaScript,
    Python, or Bash), and is tuned for long, responsive agent threads. The amp-contrib repository ships starter slash commands
    (bigquery, deep_search, formatting, linear, tmux, typescript-codemod, web-browser) and tool templates.
  humanURL: https://ampcode.com
  tags:
  - AI Coding Agent
  - CLI
  - AMP
  tags_raw:
  - AI Coding Agent
  - CLI
  - Amp
  properties:
  - type: Documentation
    url: https://ampcode.com/manual
  - type: GettingStarted
    url: https://ampcode.com
  - type: Pricing
    url: https://ampcode.com/pricing
  - type: APIReference
    url: https://ampcode.com/models
  - type: GitHubRepository
    url: https://github.com/sourcegraph/amp-contrib
- aid: sourcegraph:deep-search
  name: Sourcegraph Deep Search
  description: Deep Search is a natural-language code research agent that answers complex questions about a codebase by combining
    Sourcegraph search, code intelligence, and AI.
  humanURL: https://sourcegraph.com/docs
  tags:
  - AI Agent
  - Code Research
  - Search
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs
- aid: sourcegraph:src-cli
  name: src CLI
  description: src is Sourcegraph's command-line client for code search, code intelligence, batch changes, and administrative
    operations against a Sourcegraph instance.
  humanURL: https://sourcegraph.com/docs
  tags:
  - CLI
  - Developer Tools
  properties:
  - type: Documentation
    url: https://sourcegraph.com/docs
  - type: GitHubRepository
    url: https://github.com/sourcegraph/src-cli
common:
- type: Website
  url: https://www.sourcegraph.com/
- type: IssueTracker
  url: https://github.com/sourcegraph/cody-public-snapshot/issues
- type: Releases
  url: https://github.com/sourcegraph/cody-public-snapshot/releases
- type: License
  name: Apache-2.0
  url: https://github.com/sourcegraph/cody-public-snapshot/blob/main/LICENSE
- type: TrustCenter
  url: security/sourcegraph-trust-center.yml
- type: VulnerabilityDisclosure
  url: security/sourcegraph-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/sourcegraph-domain-security.yml
- type: Portal
  url: https://sourcegraph.com
- type: Documentation
  url: https://sourcegraph.com/docs
- type: APIReference
  url: https://sourcegraph.com/docs/api
- type: Blog
  url: https://sourcegraph.com/blog
- type: GitHubOrganization
  url: https://github.com/sourcegraph
- type: GitHubRepository
  url: https://github.com/sourcegraph/sourcegraph-public-snapshot
  name: Sourcegraph (public snapshot)
- type: GitHubRepository
  url: https://github.com/sourcegraph/cody-public-snapshot
  name: Cody (public snapshot)
- type: GitHubRepository
  url: https://github.com/sourcegraph/amp-contrib
  name: amp-contrib (Amp slash commands and tool templates)
- type: GitHubRepository
  url: https://github.com/sourcegraph/src-cli
  name: src CLI
- type: CLI
  url: https://sourcegraph.com/docs
  name: src CLI
- type: CLI
  url: https://ampcode.com
  name: Amp CLI
- type: MCPServer
  url: https://sourcegraph.com/docs/api
  name: Sourcegraph MCP Server
- type: Pricing
  url: https://ampcode.com/pricing
- type: Support
  url: https://sourcegraph.com/docs
- type: Features
  data:
  - name: Multi-Repo Code Search
    description: Search across every branch of every repository on every code host connected to Sourcegraph.
  - name: Code Intelligence
    description: Jump-to-definition, find references, hover documentation, and dependency graphs powered by SCIP indexes.
  - name: Batch Changes
    description: Apply large-scale code modifications across many repositories from a single specification.
  - name: Cody AI Assistant
    description: Codebase-aware AI assistant for writing, explaining, and fixing code inside VS Code and JetBrains.
  - name: Amp Coding Agent
    description: Frontier coding agent with its own CLI, plugin model, and pay-as-you-go pricing.
  - name: Deep Search
    description: Natural-language code research agent for complex questions about large codebases.
  - name: Versioned REST API
    description: Stable, backwards-compatible REST API introduced in v7.0 with per-instance OpenAPI schema.
  - name: Streaming Search and Analytics
    description: SSE streaming search and an analytics API for pulling usage data.
  - name: Webhooks and MCP Server
    description: Push events to external systems and expose Sourcegraph as a tool surface to AI agents via MCP.
- type: UseCases
  data:
  - name: Code Search at Scale
    description: Find anything across millions of lines of code across many repositories.
  - name: AI-Assisted Coding
    description: Use Cody and Amp to write, refactor, and fix code with codebase context.
  - name: Large-Scale Refactors
    description: Apply consistent changes across hundreds of repositories with Batch Changes.
  - name: Codebase Research
    description: Use Deep Search to answer architectural questions about an unfamiliar codebase.
  - name: Agentic Code Tooling
    description: Expose Sourcegraph code intelligence as MCP tools for AI agents.
- type: Integrations
  data:
  - name: VS Code
    description: Cody and Amp IDE integration for Visual Studio Code.
  - name: JetBrains
    description: Cody plugin for JetBrains IDEs.
  - name: GitHub, GitLab, Bitbucket
    description: Connects to all major code hosts.
  - name: MCP Server
    description: Exposes Sourcegraph as a tool to MCP-compatible AI agents.
  - name: Webhooks
    description: Event push to CI, chat, and ticketing systems.
maintainers:
- FN: Kin Lane
  url: http://apievangelist.com
  email: kin@apievangelist.com

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/sourcegraph"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/sourcegraph/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/sourcegraph/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.