Sourcegraph Claude Plugin
Back to directory
Sourcegraph logo

Sourcegraph

MCP Servers 10,460 installs Apr 22, 2026

Sourcegraph connects your Claude Code workspace to enterprise-scale code search so you can read and navigate millions of lines without hopping between browser tabs. It queries your Sourcegraph instance, pulls repository indexes, and runs semantic or pattern-based searches (keyword, regex, or commit history) from the same interface where you write code. You can jump to symbols, open file locations, and map call graphs as plain links or code snippets.

It traces references across repos and computes refactor blast radius: run a symbol search, list all references, and then check each reference’s file and commit context. You can run security sweeps by searching for vulnerable function names, authentication flows, or unsafe patterns and then record the matches with file paths and line ranges. The plugin also supports Deep Search queries to find similar code by intent, not just text.

When you need details it fetches file contents, shows surrounding lines, and returns commit metadata so you can see who changed what and when. It formats results as clickable navigation links or pasted code snippets you can edit locally. You can combine searches, filter by branch, and request diffs or blame info directly from Claude Code.

For example, when preparing a cross-repo refactor you can list all uses of a public API, inspect each implementation, and generate a remediation checklist without opening Sourcegraph in another window. That saves time and avoids switching tools during review and edits.

Install

/plugin install sourcegraph@claude-plugins-official

Tags

code-search
repositories
refactoring
semantic-search
enterprise