LocalFree

Sourcegraph MCP server

mrfentmen/sourcegraph-mcp

Search public code on Sourcegraph. No key required.

278 npm downloads / month

Install Sourcegraph in Claude Code

Claude Code
claude mcp add sourcegraph -- npx -y sourcegraph-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "sourcegraph": {
      "command": "npx",
      "args": [
        "-y",
        "sourcegraph-mcp"
      ]
    }
  }
}

Frequently asked questions

What does the Sourcegraph MCP server do?

Search public code on Sourcegraph. No key required.

Is the Sourcegraph MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Sourcegraph run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Sourcegraph to Claude Code?

Run: claude mcp add sourcegraph -- npx -y sourcegraph-mcp

More search & web scraping MCP servers

View all