cc-crawl4ai

A native Claude Code plugin for crawling live websites with Crawl4AI and extracting compact Markdown or text with Trafilatura.
cc-crawl4ai gives Claude Code one crawling skill, four runtime-management skills, three specialized agents, and a bundled Python command-line runner. It is deliberately not an MCP server: Claude invokes a local executable through Bash, and the executable launches pinned Crawl4AI and Trafilatura tools without a shell.
Why: spend fewer agent tokens on web pages
Web pages rendered for browsers contain navigation, repeated menus, cookie/UI text, scripts, styling remnants, and other boilerplate that an AI agent usually does not need. Sending all of it into an agent's context wastes tokens, increases cost, and leaves less context for reasoning and source code.
The primary goal of cc-crawl4ai is to extract the useful page content before Claude reads it. Crawl4AI renders the page, Trafilatura removes boilerplate locally, optional BM25 keeps only query-relevant sections, and the plugin returns an artifact path instead of injecting the entire crawl into the conversation.
Real example
Claude Code's features overview is served as 503,770 bytes of raw HTML. Each output mode turns that same page into:
| Mode | Output size | Words | Tokens¹ | Reduction vs. regular Markdown |
|---|
| Crawl4AI Markdown | 33,971 bytes | 3,959 | 8,269 | baseline |
Crawl4AI fitted Markdown (markdown-fit) | 24,963 bytes | 3,549 | 5,675 | 31.4% fewer |
| Crawl4AI + Trafilatura Markdown | 14,340 bytes | 2,243 | 3,255 | 60.6% fewer |
| Crawl4AI + Trafilatura text | 13,154 bytes | 1,898 | 2,805 | 66.1% fewer |
That is roughly 5,500 fewer tokens for one page in compact text mode. The fitted-Markdown row is the honest intermediate baseline: Crawl4AI's own heuristic filter already removes some boilerplate, and Trafilatura roughly doubles that saving. Results vary by site — content-heavy pages shrink less, and pages with extensive navigation shrink more. BM25 filtering can reduce the artifact further when the agent needs only one topic from a long document.
¹ Methodology. Counted with the cl100k_base tokenizer as a portable proxy; Claude's tokenizer differs, so treat these as indicative rather than exact. Sizes are the bytes of the saved artifact, so they exclude the raw HTML that never reaches the conversation. The common four-characters-per-token rule of thumb understates the benefit here (it estimates 57.8% and 61.3%), because boilerplate-free prose packs more characters per token — 4.09 chars/token for regular Markdown versus 4.67 for Trafilatura text.
Reproduce it with plugin 0.1.2, Crawl4AI 0.9.2, and Trafilatura 2.2.0 (measured 2026-08-11):
URL=https://code.claude.com/docs/en/features-overview
crawl4ai crawl "$URL" --output-format markdown --bypass-cache
crawl4ai crawl "$URL" --output-format markdown-fit --bypass-cache
crawl4ai crawl "$URL" --extractor trafilatura --output-format markdown --bypass-cache
crawl4ai crawl "$URL" --extractor trafilatura --output-format text --bypass-cache
Live pages change over time, so absolute numbers drift; the ordering of the modes is the durable result.
Use it naturally:
Read https://code.claude.com/docs/en/features-overview with Trafilatura and summarize the useful content.
Or request the smallest representation:
Read https://code.claude.com/docs/en/features-overview as compact plain text to minimize agent tokens.
What it does