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
- The Future of MCP: David Soria Parra on Connectivity, Progressive Discovery and Skills Over MCPMCP co-creator David Soria Parra on why 2026 is about agent connectivity: skills, CLIs and MCP together, progressive discovery, programmatic tool calling, a stateless transport and skills over MCP.
- Gateways Are All You Need: How Anthropic Thinks About MCP in the EnterpriseAnthropic's Karan Sampath on why enterprises get stuck with a handful of MCP servers, and how one blessed gateway for auth, access control, routing and observability lets every team ship its own.
- Set Up Factory Droid Properly: AGENTS.md, Skills, Hooks, MCP and PermissionsA configuration guide for Factory Droid: where AGENTS.md, skills, hooks, MCP servers and settings live, what each one is for, and a starter setup you can commit to a repo today.
- Claude Code Just Got Code Mode: Save a Ton of TokensCode Mode lets Claude Code write JavaScript that makes all its tool calls at once and returns only what it needs. A real run: 11 tool calls in one 6 second step.
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
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.