by 0xMassi
Fast, local-first web content extraction for LLMs. Scrape, crawl, extract structured data — all from Rust. CLI, REST API, and MCP server.
# Add to your Claude Code skills
git clone https://github.com/0xMassi/webclawYour AI agent calls fetch() and gets a 403. Or 142KB of raw HTML that burns through your token budget. webclaw fixes both.
It extracts clean, structured content from any URL using Chrome-level TLS fingerprinting — no headless browser, no Selenium, no Puppeteer. Output is optimized for LLMs: 67% fewer tokens than raw HTML, with metadata, links, and images preserved.
Raw HTML webclaw
┌──────────────────────────────────┐ ┌──────────────────────────────────┐
│ <div class="ad-wrapper"> │ │ # Breaking: AI Breakthrough │
│ <nav class="global-nav"> │ │ │
│ <script>window.__NEXT_DATA__ │ │ Researchers achieved 94% │
│ ={...8KB of JSON...}</script> │ │ accuracy on cross-domain │
│ <div class="social-share"> │ │ reasoning benchmarks. │
│ <button>Tweet</button> │ │ │
│ <footer class="site-footer"> │ │ ## Key Findings │
│ <!-- 142,847 characters --> │ │ - 3x faster inference │
│ │ │ - Open-source weights │
│ 4,820 tokens │ │ 1,590 tokens │
└──────────────────────────────────┘ └──────────────────────────────────┘
npx create-webclaw
Auto-detects your AI tools, downloads the MCP server, and configures everything. One command.
brew tap 0xMassi/webclaw
brew install webclaw
Download from GitHub Releases for macOS (arm64, x86_64) and Linux (x86_64, aarch64).
cargo install --git https://github.com/0xMassi/webclaw.git webclaw-cli
cargo install --git https://github.com/0xMassi/webclaw.git webclaw-mcp
docker run --rm ghcr.io/0xmassi/webclaw https://example.com
cp env.example .env
docker compose up -d
| | webclaw | Firecrawl | Trafilatura | Readability | |---|:---:|:---:|:---:|:---:| | Extraction accuracy | 95.1% | — | 80.6% | 83.5% | | Token efficiency | -67% | — | -55% | -51% | | Speed (100KB page) | 3.2ms | ~500ms | 18.4ms | 8.7ms | | TLS fingerprinting | Yes | No | No | No | | Self-hosted | Yes | No | Yes | Yes | | MCP (Claude/Cursor) | Yes | No | No | No | | No browser required | Yes | No | Yes | Yes | | Cost | Free | $$$$ | Free | Free |
Choose webclaw if you want fast local extraction, LLM-optimized output, and native AI agent integration.
$ webclaw https://stripe.com -f llm
> URL: https://stripe.com
> Title: Stripe | Financial Infrastructure for the Internet
> Language: en
> Word count: 847
# Stripe | Financial Infrastructure for the Internet
Stripe is a suite of APIs powering online payment processing
and commerce solutions for internet businesses of all sizes.
## Products
- Payments — Accept payments online and in person
- Billing — Manage subscriptions and invoicing
- Connect — Build a marketplace or platform
...
$ webclaw https://github.com --brand
{
"name": "GitHub",
"colors": [{"hex": "#59636E", "usage": "Primary"}, ...],
"fonts": ["Mona Sans", "ui-monospace"],
"logos": [{"url": "https://github.githubassets.com/...", "kind": "svg"}]
}
$ webclaw https://docs.rust-lang.org --crawl --depth 2 --max-pages 50
Crawling... 50/50 pages extracted
---
# Page 1: https://docs.rust-lang.org/
...
# Page 2: https://docs.rust-lang.org/book/
...
webclaw ships as an MCP server that plugs into Claude Desktop, Claude Code, Cursor, Windsurf, OpenCode, Antigravity, Codex CLI, and any MCP-compatible client.
npx create-webclaw # auto-detects and configures everything
Or manual setup — add to your Claude Desktop config:
{
"mcpServers": {
"webclaw": {
"command": "~/.webclaw/webclaw-mcp"
}
}
}
Then in Claude: "Scrape the top 5 results for 'web scraping tools' and compare their pricing" — it just works.
| Tool | Description | Requires API key? |
|------|-------------|:-:|
| scrape | Extract content from any URL | No |
| crawl | Recursive site crawl | No |
| map | Discover URLs from sitemaps | No |
| batch | Parallel multi-URL extraction | No |
| extract | LLM-powered structured extraction | No (needs Ollama) |
| summarize | Page summarization | No (needs Ollama) |
| diff | Content change detection | No |
| brand | Brand identity extraction | No |
| search | Web search + scrape results | Yes |
| research | Deep multi-source research | Yes |
8 of 10 tools work locally — no account, no API key, fully private.
webclaw URL --include "article, .content" # CSS selector include
webclaw URL --exclude "nav, footer, .sidebar" # CSS selector exclude
webclaw URL --only-main-content # Auto-detect main content
webclaw URL --crawl --depth 3 --max-pages 100 # BFS same-origin crawl
webclaw URL --crawl --sitemap # Seed from sitemap
webclaw URL --map # Discover URLs only
webclaw URL --summarize # Page summary
webclaw URL --extract-prompt "Get all prices" # Natural language extraction
webclaw URL --extract-json '{"type":"object"}' # Schema-enforced extraction
webclaw URL -f json > snap.json # Take snapshot
webclaw URL --diff-with snap.json # Compare later
webclaw URL --brand # Colors, fonts, logos, OG image
webclaw URL --proxy http://user:pass@host:port # Single proxy
webclaw URLs --proxy-file proxies.txt # Pool rotation
All numbers from real tests on 50 diverse pages. See benchmarks/ for methodology and reproduction instructions.
Accuracy webclaw ███████████████████ 95.1%
readability ████████████████▋ 83.5%
trafilatura ████████████████ 80.6%
newspaper3k █████████████▎ 66.4%
Noise removal webclaw ███████████████████ 96.1%
readability █████████████████▊ 89.4%
trafilatura ██████████████████▏ 91.2%
newspaper3k ███████████████▎ 76.8%
10KB page webclaw ██ 0.8ms
readability █████ 2.1ms
trafilatura ██████████ 4.3ms
100KB page webclaw ██ 3.2ms
readability █████ 8.7ms
trafilatura ██████████ 18.4ms
| Format | Tokens | vs R
No comments yet. Be the first to share your thoughts!