sourcegraph-mcp
Verified Safeby divar-ir
Overview
Provides AI-enhanced code search and content fetching capabilities from Sourcegraph instances to LLM agents.
Installation
docker run -p 8000:8000 -p 8080:8080 -e SRC_ENDPOINT=https://sourcegraph.com -e SRC_ACCESS_TOKEN=your-token sourcegraph-mcpEnvironment 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
chunkhound
Transforms codebases into searchable knowledge bases for AI assistants using semantic search and regex search, with deep research capabilities for code and files.
cclsp
MCP server to integrate LLM-based coding agents with Language Server Protocol (LSP) servers for robust symbol resolution and code navigation.
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
codegraph-rust
CodeGraph transforms your codebase into a semantically searchable knowledge graph to augment AI coding assistants with deep understanding and advanced reasoning capabilities beyond simple file searching.