Webclaw fetches public pages and returns Markdown, JSON, and structured fields tuned for agents and RAG. Use a CLI, MCP tools, a hosted API, or a self-hostable server.
Overview
Webclaw extracts content from public web pages so applications and AI workflows can work from readable text instead of raw HTML. It turns a URL into clean Markdown, JSON, plain text, or LLM-oriented output, and can crawl sites, map links, and pull structured values with CSS selectors or XPath.
The open-source core ships as a command-line tool, an MCP server with many scrape-and-crawl tools, and a REST server you can run on your own hardware. A separate hosted API at webclaw.io offers the same extraction without operating the server yourself. Python bindings call the bundled binary for scrape, crawl, select, tables, and related operations without an API key.
Extraction options include keeping main content only, scoring blocks against a natural-language query, chunking pages for retrieval indexes, numbered link citations, caching successful fetches, and writing fetched HTTP traffic to WARC archives. Table extraction, find-by-text selectors, and “similar element” picking help turn listing and grid pages into JSON records. Pages that need JavaScript are rendered before extraction.
Output can target different workflows: Markdown with boilerplate reduced, structured extraction and data tables as JSON, token-oriented chunk lines for vector stores, and modes that move link URLs into footnotes. The hosted API documents Firecrawl-compatible scrape, crawl, and search routes to ease migration, with protected-page handling and rendering attempted when a site requires it.
Typical uses include feeding RAG pipelines, giving coding agents live page context through MCP, batch and scheduled crawls for fresh datasets, and competitor or documentation monitoring. Install via Homebrew, prebuilt binaries for macOS, Linux, and Windows, Docker, or building the Rust packages from source.
Key features
- URL to Markdown, JSON, and LLM text
- Site crawl, link map, and batch fetch
- CSS, XPath, and table structured extraction
- MCP server for agent and IDE clients
- Query-focused content filtering
- RAG-oriented page chunking
- JavaScript rendering when needed
- Firecrawl-compatible REST routes
Use cases
- RAG and vector index ingestion
- Agent web reading via MCP
- Scheduled crawl and change monitoring
- Competitor pricing and docs tracking
- Structured data from listing pages