firecrawl
by firecrawl
API that lets AI agents search, scrape and read web pages and other data sources through one service.
- Stars
- 209,191 stars
- Forks
- 11k forks
- Last push
- today
- Activity
- Active
# Install Firecrawl Local (needs Rust)$ cargo install firecrawl-local# Turn a web page into markdown$ firecrawl-local scrape https://firecrawl.dev --markdown# Add it to your AI tools as an MCP server$ firecrawl-local initCommands from the project's README. Run them after installing (see below).
Overview
Understand firecrawl in 60 seconds
- What it does
- Firecrawl turns websites into clean markdown and structured data that AI agents and language models can read. It can scrape single pages, crawl whole sites, list a site's URLs and, through its cloud service, search the web.
- The problem it solves
- Raw web pages are full of menus, scripts and ads, which waste an AI model's context and tokens. Firecrawl fetches pages (including JavaScript-heavy ones) and returns just the useful content.
- Why choose it
- Choose it if you want one tool that works locally, as a hosted API or self-hosted, with SDKs and an MCP server for AI agents. Some features (search, structured JSON, the Agent) need Firecrawl Cloud.
- Who should use it
- Developers building AI agents that need to read the web
- Teams feeding website content into RAG or search pipelines
- Claude Code, Cursor or Codex users who want a web-reading tool for their agent
- Anyone who wants to self-host a scraping API
- Setup difficulty
You'll need:
- For Firecrawl Local: Rust and a C compiler (on macOS, xcode-select --install)
- Node.js 22 or newer for the MCP server
- Optional: Chrome or Chromium for pages that need JavaScript
- For Firecrawl Cloud features: a firecrawl.dev account and API key
How firecrawl works
Firecrawl can be used three ways, and this repository holds the code for two of them. Firecrawl Local is a single program you install on your own computer that scrapes, crawls and maps websites without needing a database, queue or container. The full self-hosted server lives in apps/api and runs with Docker Compose alongside Redis, PostgreSQL and a browser service.
The third option, Firecrawl Cloud, is the hosted service at firecrawl.dev. It does everything Local does at scale and adds web search, structured JSON extraction, screenshots, browser actions (Interact), an autonomous Agent and Alexandria, a library of data providers. The README says Firecrawl Keyless gives 1,000 free cloud credits a month with no API key or signup.
For AI tools, firecrawl-local init detects Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI and Codex and adds Firecrawl to each as an MCP server. firecrawl-local serve answers the Firecrawl v2 API on port 3002, so existing Firecrawl code can run against your own machine.
Features
Key features
Scrape to markdown
Turn any page into clean markdown, HTML or a list of links that an AI model can use directly.
Crawl and map sites
Crawl a whole site into one markdown file per page, or list every URL on a site.
MCP server for agents
One command adds Firecrawl to Claude Code, Cursor, Windsurf, Gemini CLI and Codex as a tool.
Runs on your machine
Firecrawl Local scrapes without a database or container, and parses PDFs and Office files locally.
Local API server
serve answers the Firecrawl v2 API on localhost:3002, so the official SDKs work unchanged.
Cloud when you need more
Firecrawl Cloud adds search, structured JSON, browser actions and an autonomous Agent.
Strengths
- Same tool works locally, self-hosted or as a hosted API
- Built for AI agents: MCP server, SDKs and LLM-ready output
- Handles JavaScript pages using the Chrome already on your machine
- Official SDKs for Python and Node.js, plus a CLI
Limitations
- Search, structured JSON, Interact and the Agent need Firecrawl Cloud
- Installing Firecrawl Local needs Rust and a C compiler
- The server is AGPL-3.0 licensed, which has obligations if you offer a modified version as a service
- Self-hosting the full server means running Redis, PostgreSQL and a browser service
Practical use cases
Give an agent web access
Run firecrawl-local init so Claude Code or Cursor can scrape and crawl pages as a tool.
Build a RAG knowledge base
Crawl a documentation site into markdown files and load them into your vector database.
Site inventory
Use map to list every URL on a site before an audit or migration.
Drop-in local API
Run serve and point existing Firecrawl SDK code at localhost to avoid cloud calls during development.
Installation
Install firecrawl
Commands come from Firecrawl's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Rust (cargo)
- A C compiler
- Node.js 22+ for the MCP server
Supported systems
- Windows
- macOS
- Linux
- 1
Install the build tools
You need Rust and a C compiler. On macOS the README says to run this for the compiler.
Shellxcode-select --install - 2
Install Firecrawl Local from crates.io
Shellcargo install firecrawl-local - 3
Check it works
Scrape a page and print its markdown.
Shellfirecrawl-local scrape https://firecrawl.dev --markdown
- 1
Run a scrape with npx
If you don't have Rust, the README says Firecrawl Cloud runs the same scrape with nothing to build and no signup.
Shellnpx -y firecrawl-cli@latest scrape https://firecrawl.dev
- 1
Install the SDK
Shellpip install firecrawl - 2
Scrape a page from Python
Use your Firecrawl Cloud key, or pass api_url="http://localhost:3002" to use Firecrawl Local's serve command.
Textfrom firecrawl import Firecrawlapp = Firecrawl(api_key="fc-YOUR_API_KEY")doc = app.scrape("https://firecrawl.dev", formats=["markdown"])print(doc.markdown)
Configuration and API keys
| Setting | What it's for |
|---|---|
FIRECRAWL_API_KEYOptional | Your Firecrawl Cloud key, used by the MCP server config and SDKs. Not needed for local routes. |
First run
- 1
Scrape a page
Shellfirecrawl-local scrape https://firecrawl.dev --markdown - 2
Crawl a site into markdown files
Shellfirecrawl-local crawl https://docs.firecrawl.dev --limit 50 --out ./pages - 3
List every URL on a site
Shellfirecrawl-local map https://firecrawl.dev
firecrawl's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Give your AI coding agent web access with Firecrawl Local
Let Claude Code, Cursor or another AI tool scrape and crawl web pages on your own machine.
Before you start
- Firecrawl Local installed (see Installation)
- Node.js 22 or newer
- An AI tool such as Claude Code, Cursor, Windsurf, Gemini CLI or Codex
- 1
Add Firecrawl to your AI tools
init finds supported tools on your machine, backs up each config file and adds Firecrawl as an MCP server.
Shellfirecrawl-local init - 2
Restart your AI tool
The README says to restart it so it picks up the new MCP server.
- 3
Optional: run the API locally
Serves the Firecrawl v2 API on port 3002 so SDK code can use your machine.
Shellfirecrawl-local serve
What to expect
Your AI tool gains scrape, crawl, map and batch scrape tools that run on your machine. Other Firecrawl tools, like search, go to Firecrawl Cloud.
Next steps
- Crawl a docs site for a knowledge baseShell
firecrawl-local crawl <url> --limit 50 --out ./pages - Read the Firecrawl Local README in apps/local for every command and option
- Try Firecrawl Cloud for search and structured JSON extraction
Costs and requirements
What it costs to run
- License
- Mainly AGPL-3.0; the SDKs and some UI components are MIT.Depends
- Firecrawl Local
- Free to install and run on your own machine.Free
- Firecrawl Cloud
- Paid hosted service. The README mentions 1,000 free credits a month through Firecrawl Keyless.Depends
- Self-hosting
- Free software, but you pay for the servers that run it, Redis and PostgreSQL.Depends
Troubleshooting
Common setup issues
cargo install firecrawl-local fails to build
Firecrawl Local needs Rust and a C compiler. On macOS, run xcode-select --install first.
A page comes back with a warning or missing content
Pages that need JavaScript render in the Chrome or Chromium on your machine. Install a browser, or let the page fall back to Firecrawl Cloud.
Your AI tool doesn't show the Firecrawl tools
Restart the AI tool after running firecrawl-local init, and make sure Node.js 22 or newer is installed for the MCP server.
Search or structured JSON doesn't work locally
Those features run on Firecrawl Cloud. Local handles scrape, crawl, map and batch scrape.
Alternatives
Similar AI repositories
deepseek-harness
deepseek-ai
Plugin-based harness from DeepSeek for running AI agents, where every feature is added as a plugin.
orca
stablyai
App for running and managing several AI coding agents like Claude Code and Codex on desktop, mobile or a remote machine.
TradingAgents
TauricResearch
Multi-agent framework where AI agents work together to research and analyze financial markets.
paperclip
paperclipai
Open-source app for organizing and managing teams of AI agents that do work for your business.