Crawl4AI

Turn any website into clean, LLM-ready Markdown

What it is

Crawl4AI is an open-source web crawler and scraper built for LLMs and AI agents. Its core job is turning any website into clean Markdown that can go straight into a model’s context window. It works as a Python library or as a Docker service behind an HTTP API, with a managed Crawl4AI Cloud offering its own quota. The engineering detail is thorough: a bundled headless browser executes JavaScript so dynamically rendered pages are handled, structured extraction mixes CSS, XPath and LLM strategies, and output can be Markdown, JSON or cleaned HTML. Screenshots, PDF export, proxy rotation, caching and anti-bot evasion are all covered. The project also ships an MCP integration, so agents can call crawling as a tool directly. As of October 2026 the repository sits at roughly 85,000 stars, is written mainly in Python and is licensed under Apache-2.0.

Highlights

  • Emits clean Markdown, removing the step of writing your own cleaning rules
  • Bundled headless browser means dynamically rendered pages still come through
  • Extraction can mix CSS, XPath and LLM strategies rather than forcing one approach
  • Usable as both a library and a Docker service, covering scripts and production alike
  • An MCP integration means agents can call it as a ready-made crawling tool
  • Apache-2.0 licensed, so commercial use carries no licensing worry

How to use

Install with pip and crawl a single page as a library first, checking that the cleaned output and format match expectations. Then decide whether to keep embedding the library or to run the Docker service behind an API, and tune cache, concurrency limits and proxy rotation for the kinds of sites you target.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.