doc-scraper is a configurable, concurrent, resumable web crawler written in Go, specifically designed for crawling technical documentation websites, extracting core content and converting it into Markdown format suitable for use by large language models (LLMs), with results saved locally. It can also provide crawled documentation to coding agents via MCP, allowing agents to search and read specified documentation offline instead of relying on training data or real-time web searches.
Main capabilities: For offline search, it provides BM25-based full-text search (search_docs) and page reading (read_page), without requiring network access; for framework detection, it can identify more than 30 documentation generators (such as Docusaurus, Starlight, Sphinx, VitePress, Material for MkDocs, mdBook), and verifies content selectors on pages, falling back to Readability on failure, and for pure JavaScript pages it reports rather than crawling empty content; for output, it generates GitHub-flavored Markdown with frontmatter for each page, and generates pages.jsonl, llms.txt, and llms-full.txt; for crawling strategy, it follows robots.txt and sitemap, supports per-host rate limiting, retries with backoff, resumable crawling, and staged output that does not overwrite the previous usable copy; for staying up to date, it supports incremental recrawling, watch mode, and crawl history (get_freshness, diff_crawl); for multiple sites, it supports parallel crawling with shared limits.
Usage: Release binaries for Linux, macOS, and Windows (amd64 and arm64) can be downloaded from the Releases page; Claude Desktop users can install doc-scraper.mcpb from the latest version. Use doc-scraper add pointing to any documentation page, and it will detect the framework, verify content selectors, and automatically draft a configuration. The documentation address is https://sriram-pr.github.io/doc-scraper/。
Use cases: preparing documentation corpora for RAG or training data, allowing coding agents to consult specified documentation offline, and monitoring changes to documentation sites. Limitations: the materials do not provide specific performance metrics, a complete list of supported sites, or pricing information; the project does not collect telemetry, analytics, or account data, all output and state remain local, and network requests are limited to crawling and fetching explicitly requested by the user. The project uses the Apache-2.0 license.