Back to Home
divar-ir icon

sourcegraph-mcp

Verified Safe

by divar-ir

Overview

Provides AI-enhanced code search and content fetching capabilities from Sourcegraph instances to LLM agents.

Installation

Run Command
docker run -p 8000:8000 -p 8080:8080 -e SRC_ENDPOINT=https://sourcegraph.com -e SRC_ACCESS_TOKEN=your-token sourcegraph-mcp

Environment Variables

  • SRC_ENDPOINT
  • SRC_ACCESS_TOKEN

Security Notes

The server relies on environment variables for sensitive data (SRC_ACCESS_TOKEN) and endpoint configuration, avoiding hardcoded secrets. It does not use 'eval' or other inherently dangerous functions. Network requests are made to a user-configured Sourcegraph endpoint. The primary security consideration is trusting the configured Sourcegraph instance and the integrity of the SRC_ENDPOINT variable to prevent malicious redirection.

Similar Servers

Stats

Interest Score41
Security Score8
Cost ClassHigh
Avg Tokens10000
Stars16
Forks3
Last Update2025-11-25

Tags

code searchSourcegraphAI integrationLLM toolcode analysis