When should you use it?
- You keep fetching docs for a coding agent by hand
- Your agent needs full references, not summaries
- You want docs saved locally for reuse
Not for: Crawling sites whose terms forbid it; Expecting summarized docs, since this keeps full content
What do you need, and what do you get?
You need
- An MCP server the agent can call
- A documentation URL to crawl
- A local folder to save Markdown
You get
- A documentation section saved as clean Markdown
- Files stamped with origin URL, title and when they were fetched
- A local library the agent searches on its own
How does it work, step by step?
- Give the agent the toolExpose crawl, fetch, save and list tools through an MCP server.
- Point it at the docsAsk it to pull a library's docs into the project's reference folder.
- Let it crawl smartlyIt checks robots and sitemaps, stays under the start path and runs workers in parallel.
- Keep content intactKeep pages, tables, code and links intact rather than summarizing, so references stay usable.
- Reuse the local libraryHave it open just the files it needs rather than loading everything into context.
The prompt
Our own prompt, inspired by Jessica Doering and written to work in Claude and Custom agent. Values in lime are placeholders.
Using your documentation tools, pull the docs for [library] at [URL] into the reference folder under DOCS/ as clean Markdown. Keep full content, tables, code blocks and links rather than summarizing, and stamp each file with origin URL, title and when it was fetched. Do not load every page into context; write them to disk and then open just the pages relevant to [task]. Tell me what you saved.
Inspired by Jessica Doering: I Gave My AI Agents Their Own Documentation Crawler, and Pulled 60 Pages of Clean Markdown in 49 Seconds. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- It writes to disk rather than dumping pages into context; expect metadata back, not full text.
- Respect each site's robots and terms; the crawler follows sitemaps but you own the choice to crawl.
Our take
The architectural choice in pulpie-mcp is the reason it works: crawling writes pages to disk and returns only metadata, so sixty pages of documentation never flood the agent's context. The agent fetches a section once, then searches and opens only the files relevant to the task, which keeps sessions focused and cheaper. Jessica Doering's other principle matters just as much. Extraction should be faithful, with full content and frontmatter, not summaries, because when an agent needs an API reference it needs the exact parameter names and types, and a summary is where those details get lost or invented. If you adopt this or something like it, store the docs in a folder per library and version, record the source URL and fetch date in each file, and refresh them when you upgrade dependencies, since stale docs mislead as badly as none. Respect site terms and robots rules, crawl politely with limits, and keep the library out of your published repository if the documentation's license does not allow redistribution.
Where the time goes back: The chore of hand-feeding documentation to an agent disappears, and it builds its own searchable local reference in under a minute.
FAQ
Why not just let the agent read the live site?
How fast is a crawl?
Source and credit
Inspired by Jessica Doering. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- I Gave My AI Agents Their Own Documentation Crawler, and Pulled 60 Pages of Clean Markdown in 49 Seconds
- Creator
- Jessica Doering
- Published on
- DEV Community (dev.to)
- Original date
- Oct 5, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Custom agent
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.