01
谁在用
Who一位开发 pulpie-mcp 的开发者。
02
遇到什么问题
Challenge让 AI 读文档网站时,网页噪音多、塞满上下文。
03
怎么用 AI 解决
Solution- 搭建一个 MCP 服务器,提供抓取、保存、爬取和列表四个工具,后台自动启动本地提取模型。
- 让 Claude 爬取一个 60 页的文档站:通过 robots.txt 和站点地图发现页面,4 个并发线程。
- 把带元数据的 Markdown 写入磁盘,而不是塞回上下文。
04
结果如何
Results据原作者自述- 总耗时约 49 秒:后台冷启动约 10 秒,爬取保存 60 页约 37 秒
- 未测试客户端渲染页面,不支持 PDF;模型为 CC BY-NC 4.0 非商用许可
以上内容均由原作者自行报告,未经独立核实,也不代表造物云产品的效果。
05
提示词
Prompt参考提示词(由 agentusecases.ai 整理为模板,非原帖原文)
中文
写一个爬虫:从【文档网址】出发沿站内链接爬取,把每页保存成干净的 Markdown(去掉导航和页脚),一页一个文件,放进 docs-md 文件夹。遵守 robots.txt 并礼貌限速。
ENGLISH
Build a crawler that takes the documentation site [docs URL], follows its internal links, and saves each page as clean Markdown (no nav or footer) in a folder called docs-md, one file per page. Respect robots.txt and rate limit politely. Done when you have crawled the whole site and given me a count of pages saved and a list of any that failed.