Labsco
arabold logo

Docs MCP Server

β˜… 1,500

from arabold

Creates a personal, always-current knowledge base for AI by indexing documentation from websites, GitHub, npm, PyPI, and local files.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Grounded Docs: Your AI's Up-to-Date Documentation Expert

Docs MCP Server solves the problem of AI hallucinations and outdated knowledge by providing a personal, always-current documentation index for your AI coding assistant. It fetches official docs from websites, GitHub, npm, PyPI, and local files, allowing your AI to query the exact version you are using.

✨ Why Grounded Docs MCP Server?

The open-source alternative to Context7, Nia, and Ref.Tools.

  • βœ… Up-to-Date Context: Fetches documentation directly from official sources on demand.

  • 🎯 Version-Specific: Queries target the exact library versions in your project.

  • πŸ’‘ Reduces Hallucinations: Grounds LLMs in real documentation.

  • πŸ”’ Private & Local: Runs entirely on your machine; your code never leaves your network.

  • 🧩 Broad Compatibility: Works with any MCP-compatible client (Claude, Cline, etc.).

  • πŸ“ Multiple Sources: Index websites, GitHub repositories, local folders, and zip archives.

  • πŸ“„ Rich File Support: Processes HTML, Markdown, PDF, Office documents (Word, Excel, PowerPoint), OpenDocument, RTF, EPUB, Jupyter Notebooks, and 90+ source code languages.

πŸ“„ Supported Formats

Category Formats Documents PDF, Word (.docx/.doc), Excel (.xlsx/.xls), PowerPoint (.pptx/.ppt), OpenDocument (.odt/.ods/.odp), RTF, EPUB, FictionBook, Jupyter Notebooks Archives ZIP, TAR, gzipped TAR (contents are extracted and processed individually) Web HTML, XHTML Markup Markdown, MDX, reStructuredText, AsciiDoc, Org Mode, Textile, R Markdown Source Code TypeScript, JavaScript, Python, Go, Rust, C/C++, Java, Kotlin, Ruby, PHP, Swift, C#, and many more Data JSON, YAML, TOML, CSV, XML, SQL, GraphQL, Protocol Buffers Config Dockerfile, Makefile, Terraform/HCL, INI, dotenv, Bazel

See Supported Formats for the complete reference including MIME types and processing details.

πŸ“š Documentation

Getting Started

  • Installation: Detailed setup guides for Docker, Node.js (npx), and Embedded mode.

  • Connecting Clients: How to connect Claude, VS Code (Cline/Roo), and other MCP clients.

  • Basic Usage: Using the Web UI, CLI, and scraping local files.

  • Configuration: Full reference for config files and environment variables.

  • Supported Formats: Complete file format and MIME type reference.

  • Embedding Models: Configure OpenAI, Ollama, Gemini, and other providers.

  • Search Quality Benchmark: Measure retrieval quality with IR metrics + LLM-judged scores; prerequisites, how to run, how to interpret results.

Hash-Routed SPAs

  • Use --preserve-hashes, MCP preserveHashes, or the Web UI "Preserve Hash Routes" checkbox only for docs sites that route with URLs like #/guide.

  • When enabled with scrapeMode=fetch, the scraper automatically upgrades the job to Playwright because plain fetch cannot evaluate client-side hash routes.

  • Refresh reuses the stored preserveHashes setting by default, and CLI/Web refresh entrypoints can override it explicitly.

Markdown-Optimized Web Scraping

  • Web scrapes and refreshes automatically probe for llms.txt at the documentation subpath and site root before normal crawling. When found, the curated links become additional crawl seeds, and pages discovered this way prefer .md URL variants such as /guide/index.html.md or /page.html.md before falling back to the original page.

  • Web requests send Accept: text/markdown, text/html;q=0.9, */*;q=0.8 by default. Servers that support Markdown content negotiation, including Cloudflare Markdown for Agents, can return Markdown directly so the scraper bypasses HTML-to-Markdown conversion for cleaner output.

  • This behavior is automatic and requires no configuration. Custom Accept headers are preserved when provided.

Key Concepts & Architecture

  • Deployment Modes: Standalone vs. Distributed (Docker Compose).

  • Authentication: Securing your server with OAuth2/OIDC.

  • Security: Trust boundaries, deployment hardening, and outbound access controls.

  • Telemetry: Privacy-first usage data collection.

  • Architecture: Deep dive into the system design.

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for development guidelines and setup instructions.

License

This project is licensed under the MIT License. See LICENSE for details.