Who it is forA developer feeding documentation sites into a RAG index.
The problemRaw HTML is noisy and wastes tokens.
The outcomeClean Markdown per page ready to chunk and embed.
What you need first
- Python with pip
- Playwright Chromium (installed by crawl4ai-setup)
Steps
- Install with
pip install -U crawl4ai - Run
crawl4ai-setupand check withcrawl4ai-doctor - Use AsyncWebCrawler and crawler.arun(url=...)
- Save result.markdown
Prompt for your agent
Using unclecode/crawl4ai, crawl <url> with AsyncWebCrawler and save the Markdown. Confirm navigation menus and scripts are not in the output.
Caveat. Respect each site's terms and robots rules when crawling.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for unclecode/crawl4ai and "Turn any web page into clean Markdown for RAG"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer