doc-scraper

io.github.Sriram-PR由 GitHub 账号 Sriram-PR 发布v2.26.0更新于 Nov 8, 2026

将文档站点抓取为本地语料库,让智能体可完全离线地搜索、阅读和比对。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Crawl documentation sites into local corpora agents can search, read, and diff fully offline.

概览

doc-scraper 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 doc-scraper,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

LLM Documentation Scraper (doc-scraper)

[CI] [Go Version] [Go Reference] [License] [Glama score]

A configurable, concurrent, and resumable web crawler written in Go. Specifically designed to scrape technical documentation websites, extract core content, convert it cleanly to Markdown format suitable for ingestion by Large Language Models (LLMs), and save the results locally.

[doc-scraper crawling a docs site and answering search queries offline]

doc-scraper crawls documentation sites into clean Markdown and serves them to coding agents over MCP. Your agent searches and reads the docs you chose, offline, instead of guessing from training data or a live web search. Point doc-scraper add at any docs page and it detects the framework (30+ docs generators, including Docusaurus, Starlight, Sphinx, VitePress, Material for MkDocs, and mdBook), validates the content selector, and drafts the config for you.

Documentation: https://sriram-pr.github.io/doc-scraper/

Features

  • Offline search for agents: BM25 full-text search (search_docs) and page reads (read_page) over the stored corpus, with no network access
  • Framework detection: 30+ docs generators recognized, each selector validated on the page, Readability fallback, JavaScript-only shells reported instead of crawled empty
  • Clean output: GitHub-Flavored Markdown per page with frontmatter, plus pages.jsonl, llms.txt, and llms-full.txt
  • Polite and resumable: robots.txt and sitemaps, per-host rate limits, retries with backoff, resumable crawls, and staged output that never clobbers the last good copy
  • Stays fresh: incremental re-crawls, watch mode, and crawl history (get_freshness, diff_crawl)
  • Many sites at once: parallel crawls with shared limits

Install

Download a release binary (Linux, macOS, Windows; amd64 and arm64) from the Releases page, or:

bash
go install github.com/Sriram-PR/doc-scraper/v2/cmd/doc-scraper@latest
bash
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD":/data ghcr.io/sriram-pr/doc-scraper:latest crawl -site rust_cli_book

Claude Desktop users can install doc-scraper.mcpb from the latest release instead. Details: Install.

Quick start

bash
doc-scraper add -site rust_cli_book https://rust-cli.github.io/book/index.html   # detect, preview, confirmdoc-scraper crawl -site rust_cli_book             # Markdown lands in ./crawled_docs/rust_cli_book/doc-scraper search -site rust_cli_book "error handling"

Then give it to Claude Code:

bash
claude mcp add --transport stdio doc-scraper -- /path/to/doc-scraper mcp-server -config /path/to/config.yaml

See Claude Code setup for scopes and a first prompt.

Docs

Contributing

Contributions are welcome. Read CONTRIBUTING.md before starting: it covers setup, the testing rules CI enforces, how to claim an issue, and the policy on AI-assisted contributions. Issues labeled good first issue are a good place to begin.

Report security problems privately as described in SECURITY.md. Everyone taking part follows the Code of Conduct.

Privacy Policy

doc-scraper collects nothing: no telemetry, no analytics, no accounts. All output and state stays on your machine, and the only network requests it makes are the crawls and fetches you explicitly ask for. Full policy: PRIVACY.md.

License

This project is licensed under the Apache-2.0 License.

Acknowledgements

来源:README.md,提交 5c1f7c0

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

22
  1. v2.25.0Nov 5, 2026
  2. v2.24.1Oct 29, 2026
  3. v2.24.0Oct 25, 2026
  4. v2.22.0Oct 23, 2026
  5. v2.21.1Oct 22, 2026
  6. v2.21.0Oct 20, 2026
  7. v2.20.0Oct 20, 2026
  8. v2.19.0Oct 20, 2026
  9. v2.18.0Oct 19, 2026
  10. v2.17.0Oct 18, 2026
  11. v2.16.0Oct 18, 2026
  12. v2.15.1Oct 18, 2026
  13. v2.15.0Oct 17, 2026
  14. v2.14.0Oct 17, 2026
  15. v2.13.2Oct 16, 2026
  16. v2.13.1Oct 16, 2026
  17. v2.13.0Oct 15, 2026
  18. v2.12.0Oct 14, 2026
  19. v2.11.0Oct 10, 2026
  20. v2.10.1Oct 7, 2026
  21. v2.10.0Oct 5, 2026
  22. v2.9.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分