Give your agent the web with Firecrawl Local
Firecrawl Local is a single binary that scrapes, crawls and maps websites into clean markdown on your own machine, plugs into your AI agent as an MCP server and serves the Firecrawl API on localhost.
TL;DR
The Firecrawl repo describes itself as knowledge infrastructure for agents. Its Firecrawl Local app is one binary that turns websites into markdown, registers itself as an MCP server in your AI tools with init, and serves the Firecrawl v2 API on port 3002. Search and a few other features go through Firecrawl Cloud.
Why this repo matters
Agents need clean, LLM-ready web content, and raw HTML wastes tokens. The README offers three ways to use Firecrawl: Local on your own machine, the hosted Cloud, or the self-hosted server from apps/api. Local needs no database, queue or container, and code written against the Firecrawl API runs against it unchanged.
Best practices
- Start local: the README says scraping, crawling and mapping run on your machine without a database, queue or container.
- Use
init --dry-runfirst; the Local README saysinitbacks up each config file before changing it and--dry-runshows changes without writing them. - If your agent browses sites you do not trust, register the MCP server as
firecrawl-local mcp --public-only; the README warns a page with hidden instructions could steer an agent to an internal URL. - Keep
serveon its defaults: it listens on127.0.0.1, refuses private addresses unless you pass--allow-private, and requires--tokenwhen you bind another host. - Set
FIRECRAWL_CLOUD=offif nothing may leave your machine; it is documented as turning off the cloud hand-off. - Cap crawls with
--limit(default 100) and--max-depth.
How-to
Where do I start?
1. Install it
You asked: what do I need to get started?
The README says Rust and a C compiler (xcode-select --install on macOS, build-essential on Debian or Ubuntu), then cargo install firecrawl-local. Without Rust, npx -y firecrawl-cli@latest scrape https://firecrawl.dev runs the same scrape on Firecrawl Cloud with no signup. Chrome or Chromium is optional and renders JavaScript pages.
Next: Scrape a page
Try it
Run firecrawl-local map https://docs.firecrawl.dev --search crawl, pick one URL, scrape it with --markdown, then crawl the docs with --limit 5 --out ./pages and open the files. Finally set FIRECRAWL_CLOUD=off and scrape a page again to see everything stay local.
Pitfalls
- A page that needs JavaScript and has no Chrome installed comes back with a warning, though static pages still work.
- By default a single-page scrape that will not load locally is fetched by Firecrawl Cloud and marked
"source": "firecrawl-cloud". - Crawl and batch jobs in
servelive in memory and expire an hour after they start; v0 and v1 routes are not served. - The MCP server's Alexandria tools check for a key at startup, so restart your AI tool after
firecrawl-local login.