Sourcegraph MCP
Public code search from Sourcegraph. No key required.
This file is self contained. It reads public data only and never writes to the machine. All output is bounded and honest about what could not be fetched.
Tools
Usage
npm install
npm run build
node dist/index.js
Data comes from the public Sourcegraph API.
Premium tools
These tools need a license key:
search_repos
search_paths
Buy a key at https://mcp-marketplace.io/server/io-github-mrfentmen-sourcegraph-mcp and set it in your MCP client config:
"env": { "MCP_LICENSE_KEY": "mcp_live_..." }
The key is checked against MCP Marketplace, cached for 24 hours, and keeps
working offline once one check has succeeded. Every other tool on this server
stays free.