Skip to main content

Universal MCP server for documentation with llms.txt support

Project description

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docr_mcp-0.2.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docr_mcp-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file docr_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: docr_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docr_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aedb4850b0802ea74200baa3fdda6b7c642c6f5e787d65ed636b3bddd3f969d3
MD5 a80d25102835ee161d671dfaff1c7a5f
BLAKE2b-256 32682cba6d6aebcd7de45af5fe2ea1a7433c00e84c297b8be1a657aa0825dbfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for docr_mcp-0.2.0.tar.gz:

Publisher: publish.yml on JacobHuang91/docr-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docr_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: docr_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for docr_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbdcfe9ca443b9b9a3d95d691c2f5f0f5e33302da4dc783d32f6270aceb39f41
MD5 452f6c44e02d1b4d5aa926770ac2ad6d
BLAKE2b-256 e383612f090de240d68a4e4f8ad48a6ea4657b91124479b50491a7661617fdab

See more details on using hashes here.

Provenance

The following attestation bundles were made for docr_mcp-0.2.0-py3-none-any.whl:

Publisher: publish.yml on JacobHuang91/docr-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page