# Sourcegraph

**Canonical:** https://apis.io/providers/sourcegraph/  
**Website:** https://sourcegraph.com  
**APIs profiled:** 10

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.

## Kin Score — 27.1 / 100 (thin)

Scored 2026-08-21 under rubric 0.12.0. Trend: flat (+0.0 from 27.1).

| Facet | Score |
|---|---|
| Discoverability | 64.8 |
| Contract Quality | 0.0 |
| Governance | 0.0 |
| Contract Governance | 0.0 |
| Operational Transparency | 23.7 |
| Developer Ergonomics | 40.5 |
| Commercial Clarity | 47.4 |
| Access Clarity | 47.4 |

## Agent readiness — 7.1 (agent-aware)

| Dimension | Value |
|---|---|
| Spec Presence | no |
| Agentic Access | no |
| Reversibility Documented | no |
| MCP Server | documented |
| Auth Clarity | no |
| Idempotency | no |
| Error Semantics | no |
| OpenAPI Examples | no |
| Rate Limit Signal | documented |
| Event Surface Described | no |
| Agent Skills | no |
| Well Known Catalog | no |
| Consent Identity | no |
| Agent Card | no |
| Dry Run Mode | no |

## Access

Free — onboarding: unknown, pricing: free, trial: no (confidence: medium).

## APIs (10)

- **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.

## MCP servers (1)

- **Sourcegraph MCP Server**

## Security (3)

- **Sourcegraph Domain Security** — TLSv1.3 · HSTS · DNSSEC · DMARC
- **Sourcegraph Vulnerability Disclosure** — disclosure policy published
- **Sourcegraph Trust Center** — SOC 2, ISO 27001, GDPR

## Plans (1)

- **Sourcegraph Plans Pricing**

## Use cases (5)

- **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.

## Tags

Code Intelligence, Code Search, Cody, AMP, AI Coding Agent, GraphQL, REST API, MCP

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/providers/sourcegraph/). Scores are computed from the provider's own public artifacts under a published rubric.
