Submit

Sourcegraph MCP Server

@E-Kuerschner

a year ago
developer-tools
Local MCP Server that searches for React prop usage via Sourcegraph API
Overview

what is Sourcegraph MCP Server?

Sourcegraph MCP Server is a local Model Context Protocol (MCP) server that integrates with Sourcegraph to provide code search and analysis capabilities for large language models (LLMs).

how to use Sourcegraph MCP Server?

To use the Sourcegraph MCP Server, you need to generate a Sourcegraph API access token, set it as an environment variable, and configure the server with your Sourcegraph instance URL. After installation, you can use various tools provided by the server to interact with Sourcegraph.

key features of Sourcegraph MCP Server?

  • Integration with Sourcegraph for code search and analysis.
  • Tools for testing connections, searching code, and retrieving file contents.
  • Easy setup with an optional install script for configuration.

use cases of Sourcegraph MCP Server?

  1. Searching for specific React prop usage in codebases.
  2. Analyzing code across multiple repositories using Sourcegraph.
  3. Assisting LLMs in understanding code context and structure.

FAQ from Sourcegraph MCP Server?

  • How do I generate a Sourcegraph access token?

You can generate an access token by visiting your Sourcegraph instance, navigating to Settings > Access tokens, and creating a new token with the appropriate scopes.

  • What environment variables are required?

You need to set SRC_ACCESS_TOKEN for your Sourcegraph access token and optionally SRC_ENDPOINT for your Sourcegraph instance URL.

  • Can I use this server with any MCP client?

Yes, the server can be configured to work with various MCP clients, such as Cursor and Claude Desktop.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.