Developer platforms - official Sourcegraph server
Sourcegraph MCP server
MCP server built into a Sourcegraph instance that gives AI agents code search, file and repository reading, code navigation, commit and diff history, Code Finder and Deep Search tools over the instance's indexed code. It is served from your own instance at https://<your-sourcegraph-instance>/.api/mcp with OAuth or API key auth.
Last verified 15 tools2 sources
Install
Claude Code
About Claude Codeclaude mcp add --transport http sourcegraph https://sourcegraph.example.com/.api/mcpCodex
About Codex[mcp_servers.sourcegraph]
url = "https://sourcegraph.example.com/.api/mcp"
scopes = ["mcp"]Cursor
About Cursor{
"mcpServers": {
"sourcegraph": {
"url": "https://sourcegraph.example.com/.api/mcp"
}
}
}VS Code
{
"servers": {
"sourcegraph": {
"type": "http",
"url": "https://sourcegraph.example.com/.api/mcp"
}
},
"inputs": []
}Tools
read_file- Read file contents with line numbers, ranges and revisions
list_files- List files and directories in a repository path
list_repos- Search and list repositories by name substring
list_refs- List a repository's Git branches and tags
keyword_search- Perform exact keyword code searches
nls_search- Semantic code search with flexible linguistic matching
evaluator- Run sandboxed Lua scripts over search results for aggregation and cross-referencing
go_to_definition- Find the definition of a symbol from a usage location
find_references- Find all references to a symbol from its definition
commit_search- Search commits by message, author, content, files and date range
diff_search- Search code changes for patterns across repositories
compare_revisions- Compare changes between two revisions
get_contributor_repos- Find repositories where a contributor has made commits
code_finder- Agentic search that returns relevant file paths and line ranges for a task
deepsearch- Create a Deep Search conversation to answer complex codebase questions
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- Supported on Sourcegraph Enterprise plans; served per instance, so replace sourcegraph.example.com with your instance hostname.
- Three endpoints: /.api/mcp (core tools), /.api/mcp/all (full suite) and /.api/mcp/deepsearch (Deep Search only); tool availability differs by endpoint (deepsearch_read is also available).
- Auth is OAuth 2.0 via Dynamic Client Registration or pre-registered clients, or a Sourcegraph access token (Authorization: token ...).
- Codex needs scopes = ["mcp"] then codex mcp login sourcegraph.
- Admins can disable it with mcp.enabled, disable tools with mcp.tools.disabled, and gate it with the MCP#ACCESS RBAC permission.
- Code Finder usage is metered against the instance entitlement.
- This is code search over your own repositories, not web search.
- The registry entry points at sourcegraph-community/mcpregistry, which is registry metadata, not server source.
More MCP servers for developer platforms
- AdobeStatus: GA
Adobe Express Developer MCP server
Local MCP server run via npx that gives AI IDEs semantic search over Adobe Express add-on documentation and the official add-on SDK TypeScript definitions.
Transport: stdioAuth: No auth - Algolia
Algolia DevEx MCP server
Hosted MCP server for coding agents that returns Algolia API client code snippets matching the client version installed in a project, across all Algolia APIs and client languages; it does not access Algolia application data.
Transport: Streamable HTTPAuth: No auth - AppleStatus: GA
Xcode MCP server
Xcode provides a local MCP server, reached through the `xcrun mcpbridge` command, that lets external agents launched outside Xcode access an open Xcode project and Xcode capabilities such as building the app. Apple describes agents using it to search documentation, explore file structures, update project settings and capture Xcode Previews.
Transport: stdioAuth: Other - Canva
Canva Dev MCP server
Local MCP server, run through the Canva CLI, that gives coding agents Canva developer documentation and tooling context for building Canva apps (Apps SDK, App UI Kit, Developers SDK). It runs on the developer's machine and fetches documentation from canva.dev.
Transport: stdioAuth: No auth - Chroma
Package Search MCP server
Remote MCP server, hosted by Chroma, that gives coding agents grep, hybrid semantic search and file reads over the source code of thousands of public packages Chroma has indexed, so they can ground code in the real dependency source.
Transport: Streamable HTTPAuth: API key - Chromatic
Chromatic published Storybook MCP server
Chromatic deploys a project's Storybook MCP server alongside each published Storybook at its /mcp route, with Chromatic access control, so teams and agents can query component documentation remotely without running Storybook locally.
Transport: Streamable HTTPAuth: OAuth
Related reading
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
- Pi 1.0 Release Guide: MCP, Codemode and Pi DurablePi 1.0 adds built-in MCP through Codemode, a fullscreen TUI by default and Pi Durable. What changed, how to install it, and what breaks on upgrade.
FAQ
What does the Sourcegraph MCP server do?
MCP server built into a Sourcegraph instance that gives AI agents code search, file and repository reading, code navigation, commit and diff history, Code Finder and Deep Search tools over the instance's indexed code. The vendor documents 15 tools, including read_file, list_files, list_repos and list_refs.
How do I add the Sourcegraph MCP server to Claude Code?
Run claude mcp add --transport http sourcegraph https://sourcegraph.example.com/.api/mcp, copied from Sourcegraph's docs. This page also has snippets for Codex, Cursor and VS Code.
Does the Sourcegraph MCP server need authentication?
Yes, OAuth or API key. Transport: Streamable HTTP. Status: Unlabelled, last checked October 17, 2026.
Sources
Last verified against 2 Sourcegraph pages, then re-checked independently.
- sourcegraph.comhttps://sourcegraph.com/docs/api/mcp
- sourcegraph.comhttps://sourcegraph.com/docs/api/mcp/client-integrations
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.