Sourcegraph MCP Server

Stabledevelopment
80 starsTypeScriptsourcegraph
GitHub
About

Overview

The Sourcegraph MCP Server enables AI agents to use Sourcegraph's code search and intelligence. It provides tools for searching code, finding references, and browsing repositories.
Capabilities

Tools & Capabilities

search

Search code across repositories

find_references

Find references to a symbol

get_file

Get file contents from a repo

Setup

Installation

bash
Install
npx -y @sourcegraph/mcp-server-sourcegraph
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "sourcegraph": {
      "command": "npx",
      "args": ["-y", "@sourcegraph/mcp-server-sourcegraph"]
    }
  }
}

Quick Info

Authorsourcegraph
LanguageTypeScript
StatusStable
Stars 80
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.