Firecrawl: Turn Websites Into Clean Markdown for AI Agents

Cover graphic: Firecrawl, turn websites into clean markdown for AI agents

What is Firecrawl?

Firecrawl is an open-source project that describes itself as “knowledge infrastructure to make your agents smarter”. It turns websites into clean markdown that language models can read. The same API also covers search and access to 550+ data providers.

Three ways to use it

  1. Firecrawl Local: one binary that runs on your machine. It scrapes, crawls and maps pages into markdown, can act as an MCP server for your AI agent, and serves the Firecrawl API on localhost.
  2. Firecrawl Cloud: the hosted service at firecrawl.dev. It does everything Local does at scale and adds search and the 550+ data providers.
  3. Self-hosting: deploy the full server from apps/api with its own queues, workers and databases.

Try Firecrawl Local

Local installs from crates.io. You need Rust and a C compiler: on macOS run xcode-select --install, and on Debian or Ubuntu install build-essential.

cargo install firecrawl-local
firecrawl-local scrape https://firecrawl.dev --markdown
firecrawl-local crawl https://docs.firecrawl.dev --limit 50 --out ./pages
firecrawl-local map https://firecrawl.dev
  • scrape: prints one page as markdown.
  • crawl: saves one markdown file per page.
  • map: lists every URL on a site.

Pages that need JavaScript render in the Chrome or Chromium already on your machine, and PDFs and Office documents are parsed locally. Without a browser, static pages still work and a page that needed one comes back with a warning.

Add it to your AI agent

firecrawl-local init finds Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI and Codex on your machine and adds Firecrawl Local to each as an MCP server. It backs up each config file first, and the MCP server needs Node.js 22 or newer. Restart the tool afterwards. Scrape, crawl, map and batch scrape run on your machine; the other tools go to Firecrawl Cloud.

Use it from code

firecrawl-local serve answers the Firecrawl v2 API on port 3002, so code written for Firecrawl works unchanged, and local routes need no API key. In Python:

from firecrawl import Firecrawl
app = Firecrawl(api_url="http://localhost:3002")
print(app.scrape("https://firecrawl.dev").markdown)

SDKs exist for Python (pip install firecrawl) and Node.js (npm install firecrawl); the README also lists Go, Java, Rust, Ruby, .NET, PHP and Elixir.

Local or Cloud?

Feature Local Cloud
Scrape Markdown, HTML, raw HTML, links Adds structured JSON, summaries, screenshots, browser actions
Crawl, Map, Batch Scrape Yes Yes
PDFs and Office documents Yes Yes, plus Parse for uploaded files
Search Through Cloud, no account needed Yes
Alexandria data providers Through Cloud after firecrawl-local login Yes
Interact, Agent, Monitor No Yes

By default, a single-page scrape that will not load locally is fetched by Firecrawl Cloud and marked "source": "firecrawl-cloud" in the result. Check that setting if you need everything to stay on your machine.

Use it responsibly

Scraping is subject to a site’s terms of service, its robots.txt and the law, and you should respect rate limits. This is not legal advice.

FAQ

Is it free? The code is open source and Local runs on your machine. Cloud is a hosted service; pricing and limits were not verified.

Do I need an API key? The README says local routes need none. Cloud uses a key.

Does it work with Claude Code? Yes, the README lists Claude Code among the supported tools.

This article is based on the project’s README; the software was not tested firsthand.

Source: Firecrawl on GitHub

Leave a Reply