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
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
cclsp
Integrate LLM-based coding agents with Language Server Protocol (LSP) servers to enable robust code navigation, symbol resolution, and refactoring across various programming languages.
codegraph-rust
Transforms codebases into a semantically searchable knowledge graph, enabling AI agents to reason about code relationships, architecture, and impact rather than just performing text-based searches.
context-engine
Provides an agent-agnostic local context engine via Model Context Protocol (MCP) for coding agents, enabling semantic search, planning, code review, and prompt enhancement with AI integration.