Model Context Protocol (MCP) server for Sourcegraph code search
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"iflow-mcp-divar-ir-sourcegraph-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Sourcegraph MCP Server A Model Context Protocol (MCP) server that provides AI-enhanced code search capabilities using [Sourcegraph](https://sourcegraph.com). ## Table of Contents - [Overview](#overview) - [Features](#features) - [Prerequisites](#prerequisites) - [Installation](#installation) - [Using UV (recommended)](#using-uv-recommended) - [Using pip](#using-pip) - [Using Docker](#using-docker) - [Configuration](#configuration) - [Required Environment Variables](#required-environment-variables) - [Optional Environment Variables](#optional-environment-variables) - [Usage with AI Tools](#usage-with-ai-tools) - [Cursor](#cursor) - [MCP Tools](#mcp-tools) - [search](#search) - [search_prompt_guide](#search_prompt_guide) - [fetch_content](#fetch_content) - [Development](#development) - [Linting and Formatting](#linting-and-formatting) ## Overview This MCP server integrates with Sourcegraph, a universal code search platform that enables searching across multiple repositories and codebases. It provides powerful search capabilities with advanced query syntax, making it ideal for AI assistants that need to find and understand code patterns across large codebases. ## Features - **Code Search**: Search across codebases using Sourcegraph's powerful query language - **Advanced Query Language**: Support for regex patterns, file filters, language filters, and boolean operators - **Repository Discovery**: Find repositories by name and explore their structure - **Content Fetching**: Browse repository files and directories - **AI Integration**: Designed for LLM integration with guided search prompts ## Prerequisites - **Sourcegraph Instance**: Access to a Sourcegraph instance (either sourcegraph.com or self-hosted) - **Python 3.10+**: Required for running the MCP server - **UV** (optional): Modern Python package manager for easier dependency management ## Installation ### Using UV (recommended) ```bash # Install dependencies uv sync # Run the se…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.