Skip to main content

docr-mcp

docr-mcp

A framework for building MCP servers that give LLMs access to any documentation.

Give LLMs the ability to search and read documentation from any source - public or private, official or internal. Stop getting outdated answers. Start getting accurate information directly from current docs.

Tests Python 3.10+ License: MIT

Why docr-mcp?

The Problem: LLMs give you outdated answers based on their training data. They don't know about the latest API changes, new features, or the specific libraries and tools you use daily.

The Solution: docr-mcp provides a proven framework to connect any documentation to LLMs through MCP servers. Give your AI assistant real-time access to current documentation - from popular libraries to your internal tools.

Key Features:

  • Universal framework for any documentation site (public or private)
  • Smart BM25 search with code-aware tokenization and relevance ranking
  • Full customization - control parsing, indexing, search, and tool descriptions
  • Production ready - 88 tests (unit + E2E), secure by default, proper resource management
  • Easy to extend - YAML config + Python implementation to add any library

Supported Documentation

Library Status Tests Install Command (Claude Code)
Strands Agents ✅ Test Strands claude mcp add docr-mcp-strands -- uvx docr-mcp --library strands
Vercel ✅ Test Vercel claude mcp add docr-mcp-vercel -- uvx docr-mcp --library vercel
Twilio ✅ Test Twilio claude mcp add docr-mcp-twilio -- uvx docr-mcp --library twilio
OpenAI ✅ Test OpenAI claude mcp add docr-mcp-openai -- uvx docr-mcp --library openai
Stripe ✅ Test Stripe claude mcp add docr-mcp-stripe -- uvx docr-mcp --library stripe
Anthropic ✅ Test Anthropic claude mcp add docr-mcp-anthropic -- uvx docr-mcp --library anthropic

Want to add a library? See CONTRIBUTING.md for guidelines.

Usage

Public Documentation

After installation, ask your AI assistant to search documentation:

Search Strands docs for "agent state"
What is agent-loop in Strands?
Show me how to use model providers in Strands

Authenticated Documentation (Private/Internal Docs)

Need to access private or internal documentation behind authentication? docr-mcp supports cookie-based authentication for SSO-protected sites.

Simply create a YAML config file with your cookies and domain - no code changes required.

📖 See the Authenticated Docs Guide for step-by-step instructions.

How It Works

graph LR
    A[Index Source] --> B[Build BM25 Index]
    B --> C[Query]
    C --> D[Search Index]
    D --> E[Fetch Live Docs]
    E --> F[LLM Response]
  1. Startup: Fetch index source (llms.txt, sitemap) and build searchable BM25 index
  2. Query: Search pre-built index, then fetch live documentation from URLs
  3. Search: BM25 ranking with code-aware tokenization and field weighting

License

MIT

Metadata

Release files for docr-mcp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docr-mcp 0.3.0
File Size Uploaded
docr_mcp-0.3.0.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docr-mcp 0.3.0
File Interpreter ABI Platform
docr_mcp-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / docr_mcp-0.3.0.tar.gz

Download URL docr_mcp-0.3.0.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f13c2922f4553683e0801a27a649753598b1129ecdd8da35a39f54b9dc724a79
BLAKE2b-256 checksum
How to use checksums
ccbd691c6708400890a24065ad84d95ac1c42e729d7f57cfec9df36d297dbc91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Release files / docr_mcp-0.3.0-py3-none-any.whl

Download URL docr_mcp-0.3.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
318e8cd326c92c62a07d33adf0ef9b23aefc3d4ca39a288ce9dea2bb9fd8758b
BLAKE2b-256 checksum
How to use checksums
07a5d957d2e7805912cd43308d04bcca004ff9051d794c0ca3ef7e95fefc0db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page