Open-source LLM-friendly web crawler and scraper, and a hosted scraping, extraction and search API for AI agents
open coreApache-2.0self-hostablefreeMCP
Crawl4AI is an Apache-2.0 Python library, with the crwl CLI and a Docker server that adds a REST API and an MCP endpoint, that drives Chromium, Firefox or WebKit to turn pages into clean Markdown, extract structured JSON with CSS/XPath schemas or any LLM, and deep-crawl sites with breadth-first, depth-first, best-first and adaptive strategies. Crawl4AI Cloud, run by Context4AI in Singapore, hosts the same crawler at api.crawl4ai.com and adds browser-free web search, Google SERP data, answers, extraction without your own LLM key, automatic handling of bot walls, ready-made recipes, page monitors and a hosted MCP server, served from EU, Singapore and US regions. Unlike Firecrawl's AGPL core, the library is permissively licensed, so it can be embedded in closed products.
Problems it solves
- turn web pages into clean markdown for my RAG pipeline with a Python library I run myself
- I need an open source scraper with a permissive licence I can ship inside a closed-source product
- crawl a whole documentation site and stop once I've collected enough to answer a question
- extract structured JSON from product pages with CSS selectors, no LLM calls needed
- describe the data I want once and get a reusable scraping schema generated for me
- use a local Ollama model to pull typed fields out of scraped pages
- scrape sites behind my own login by reusing a saved browser profile with cookies
- find every URL on a domain from its sitemaps and Common Crawl before crawling
- scroll infinite-scroll pages and wait for JavaScript to load before grabbing the content
- resume a long crawl after it crashed instead of starting over
- run a self-hosted scraping server in Docker that my agents can call over REST or MCP
- a cheap hosted scraping API that handles headless browsers and proxies for me
- search the web and get Google results as structured data from the same API key as my scraper
- watch a web page and get told only when something meaningful changes
- scrape 10,000 URLs in one background job and collect the markdown
- pin my scraping requests to EU servers so fetched data stays in Europe
Features
- clean and filtered (fit) Markdown with citations
- CSS, XPath and regex extraction schemas, plus a schema generator
- LLM extraction into JSON schemas with any LiteLLM provider
- deep crawl: BFS, DFS, best-first and adaptive crawling, with crash recovery
- URL discovery from sitemaps and Common Crawl
- persistent browser profiles, sessions, proxies and stealth mode
- Chromium, Firefox and WebKit
- screenshots and PDFs of pages
- crwl CLI
- Docker server with REST API, MCP, dashboard and playground (AMD64 and ARM64)
View 5 more
- Crawl4AI Cloud: scrape, batch (50 URLs) and bulk jobs (10,000 URLs)
- Cloud search, Google SERP and answer endpoints
- Cloud recipes (ready-made scrapers), page monitors, price extraction, lead search and email verification
- hosted MCP server with a report_issue tool for agent feedback
- EU, Singapore and US regions
Limitations
- No SOC 2 report yet: a SOC 2 Type I audit is in progress, targeting January 20271
Ways to run it
Crawl4AI Cloud
Free (1,000 credits/month, no card); Starter $10/month; Builder $99/month; Scale $499/month; Enterprise custom (annual: $100, $990 or $4,990 a year)2
Only in this edition
- web search, Google SERP and answer endpoints
- extraction without your own LLM key
- automatic handling of bot walls and JavaScript-heavy pages
- recipes, monitors, price, lead and email verification endpoints
- hosted MCP server
- SAML or OIDC SSO, region pinning (US, EU or Singapore), SLA and DPA on Enterprise
Library
free3
Not included
- the web search, SERP and answer endpoints, which only Crawl4AI Cloud has3
- automatic handling of bot walls and JavaScript-heavy pages: you tune the settings and proxies yourself3
You arrange
- Python 3.10+ and a Playwright browser (crawl4ai-setup installs it)
- proxies for sites that block you
- an LLM provider key or a local model for LLM extraction
Docker server
Only in this edition
- REST API, MCP endpoint, monitoring dashboard and playground
- AMD64 and ARM64 images
Not included
- the web search, SERP and answer endpoints, which only Crawl4AI Cloud has3
- automatic handling of bot walls and JavaScript-heavy pages: you tune the settings and proxies yourself3
You arrange
- a Docker host (run with --shm-size=1g)
- a CRAWL4AI_API_TOKEN you generate, or the server answers only inside its container
- proxies for sites that block you
- LLM provider keys for LLM extraction
Capabilities
| Agents can report problems | plan not known |
|---|---|
| Has an API | plan not known |
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Crawl4AI does.
- Firecrawl The open-source web data API for AI agents and LLM applications
- Tavily Connect your AI agents to the web
- Jina Reader Convert any URL to an LLM-friendly input with a simple prefix https://r.jina.ai/
- ScrapingBee Web scraping API that handles headless browsers and rotates proxies for you
- Apify A marketplace of ready-to-run tools for AI that automate work on the web
- Exa The world's data for AI agents