Sourcegraph MCP Server
Gives AI agents code search, file reading, and commit history across all your repositories.
Publisher
Sourcegraph
Product Details
The Sourcegraph MCP connector lets AI agents query an organization’s entire codebase without leaving their workflow. It offers keyword and natural language code search, precise file reading, commit and diff history search, revision comparison, ancestry and release checks, and contributor lookups across all indexed repositories.
Engineering teams use it to answer how something is implemented, trace when and why a change was made, check whether a fix shipped in a given release, and audit dependency and security-relevant changes across many repos. It can also generate charts, diagrams, and CSV or JSON reports from aggregated code and history data, grounded in actual source rather than documentation alone.
Key Use Cases
Cross-Repository Vulnerability and Refactoring Audit
AppSec and platform engineers use keyword_search and diff_search to locate obsolete library usages and security misconfigurations across hundreds of microservices.
Release Verification and Code Ancestry Inspection
Engineering release managers check whether specific bug fixes have landed in release candidate tags using compare_revisions and check_ancestry before production deployment.
Explore detailed deployment path
Requires Gemini. Access integration prerequisites, specialized agent configuration guides, and implementation documentation.