sourcegraph-mcp
Verified Safeby akbad
Overview
Provides AI-enhanced code search capabilities by integrating with a Sourcegraph instance via the Model Context Protocol (MCP).
Installation
docker run -p 8000:8000 -p 8080:8080 -e SRC_ENDPOINT=https://sourcegraph.com -e SRC_ACCESS_TOKEN=your-token ghcr.io/akbad/sourcegraph-mcp:latestEnvironment Variables
- SRC_ENDPOINT
- SRC_ACCESS_TOKEN
- MCP_SSE_PORT
- MCP_STREAMABLE_HTTP_PORT
- FASTMCP_SSE_PATH
- FASTMCP_MESSAGE_PATH
Security Notes
Uses environment variables for sensitive data like API tokens. Employs `yaml.safe_load` for parsing prompt configurations, mitigating YAML deserialization risks. Performs network requests to user-configured Sourcegraph endpoints. Server binds to `0.0.0.0` (all interfaces) by default, standard for a server application.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
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
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.