Sourcegraph MCP Server
by mrfentmenio.github.mrfentmen/sourcegraph-mcpv1.0.0
Search public code on Sourcegraph. No key required.
context tax
queued
security
queued
cold start
queued
freshness
Active18d ago
Install Sourcegraph MCP server
Install in Claude Code
claude mcp add sourcegraph -- npx -y sourcegraph-mcpInstall in Cursor
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": [
"-y",
"sourcegraph-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": [
"-y",
"sourcegraph-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"sourcegraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sourcegraph-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sourcegraph": {
"command": "npx",
"args": [
"-y",
"sourcegraph-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Freshness
Active — last maintenance signal 18d ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-09-21 · 18d ago · official registry · v1.0.0
FAQ
›How do I install the Sourcegraph MCP server in Claude Code?
Run: claude mcp add sourcegraph -- npx -y sourcegraph-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Sourcegraph require an API key?
No required environment variables are declared in its published metadata.
›Can I use Sourcegraph as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Sourcegraph in the official MCP registry?
Yes, as io.github.mrfentmen/sourcegraph-mcp.