Skip to main content
Glama
Ask the Docs MCP Server

Ask the Docs MCP Server

by joshbarros

Ask the Docs — MCP server

Expose a production RAG system as a Model Context Protocol (MCP) server — usable from any MCP client (Claude Desktop, Cursor, Claude Code, …).

license python mcp

What it is

Three tools over a small corpus of AI-engineering docs:

Tool

What it does

search_docs(query, k)

BM25 retrieval over the corpus

ask(question)

Grounded answer with inline citations ([rag:1]) via OpenRouter

list_sources()

Indexed sources + chunk count

No API key? ask falls back to the top retrieved chunk — the server never dead-ends.

Related MCP server: mcp-rag-bridge

Use it

uv run app/server.py                      # stdio (Claude Desktop / Claude Code)
uv run mcp run app/server.py              # same, via the MCP CLI

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "ask-the-docs": {
      "command": "uv",
      "args": ["run", "app/server.py"]
    }
  }
}

Claude Code / Cursor: add the same command as an MCP server.

Why this matters

MCP is how tools get exposed to agents in 2026. A recruiter sees this and knows you can build agent integrations, not just call a chat API. It pairs with ask-the-docs (the RAG) and operator (the harness).

Available Tools

3 tools
askA

Answer a question with grounded, cited text from the indexed documents.

Inputs: question (required). Returns: result

list_sourcesB

List the indexed document sources and chunk count.

Inputs: no named parameters. Returns: result

search_docsB

Retrieve the most relevant chunks for a query (lexical BM25).

Inputs: query (required), k. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 3 tools

    Disambiguation4/5

    search_docs and ask both accept a query, but the descriptions clearly separate raw chunk retrieval from a synthesized cited answer, so an agent can choose correctly. list_sources is clearly distinct. Minor overlap remains because both query-consuming tools operate on the same corpus.

    Naming Consistency4/5

    search_docs and list_sources follow a clean verb_noun pattern, while 'ask' is a bare verb that breaks the pattern. Still readable and unambiguous, just a minor deviation.

    Tool Count4/5

    Three tools is a tight, well-scoped surface for a documentation Q&A server; each tool maps to a distinct retrieval need. It sits at the low end of the range and could feel thin without at least one document-inspection tool.

    Completeness3/5

    Core retrieval and answering are covered, but there is no way to fetch a full document or a specific chunk, and no source-filtering parameter to scope search or ask to a particular indexed source. list_sources hints at per-source capability that the other tools cannot exploit.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables any MCP-compatible AI assistant to search, filter, and retrieve information from a local document collection using a hybrid search pipeline with vector, BM25, reranking, and LLM enrichment.
      4
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query and manage a document knowledge base via MCP, with RAG-powered search and grounded answers with citations.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables any MCP host to search and answer over your own documents with hybrid BM25+dense retrieval, cross-encoder reranking, and grounded, cited responses that refuse when no evidence is found.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables any MCP-capable LLM client to search self-hosted long-term memory over markdown and PDF documents, combining dense semantic vectors with BM25 keyword retrieval and optional cross-encoder reranking. Exposes a read-only tool surface for querying incidents, runbooks, and other knowledge-base content, while writes happen out-of-band through ingestion jobs or a token-gated internal API.
      2
      MIT