About
Overview
The Sourcegraph MCP Server enables AI agents to use Sourcegraph's code search and intelligence. It provides tools for searching code, finding references, and browsing repositories.
Capabilities
Tools & Capabilities
⚡search
Search code across repositories
⚡find_references
Find references to a symbol
⚡get_file
Get file contents from a repo
Setup
Installation
bash
Install
npx -y @sourcegraph/mcp-server-sourcegraphExamples
Example Usage
javascript
Usage
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": ["-y", "@sourcegraph/mcp-server-sourcegraph"]
}
}
}Quick Info
Authorsourcegraph
LanguageTypeScript
StatusStable
Stars★ 80
Last UpdatedFeb 12, 2026