AI Card Bao API.AICARDBAO.COM
Home / 开源 / Firecrawl
AI TOOL / #12817

Firecrawl

An open-source web crawler and data extraction infrastructure that converts any website into clean, structured data, which can be used as an MCP to integrate with Claude.

Introduction


Knowledge infrastructure to make your agents smarter.

Firecrawl connects your agents to the web, and to Alexandria, our library of everything else. On the web, your agent can search, read any page and act on it. In Alexandria, it calls data providers for company filings, court records, research papers and more, and gets the answer from the source. It's one key, and it works in the tools your agents already use.

You can use Firecrawl three ways. This repo holds the code for Firecrawl Local and the self-hosted server, along with SDKs that work with all three.

  • Firecrawl Local. One binary on your own machine. Clean Markdown, an MCP server for your agent, and the Firecrawl API on localhost.
  • Firecrawl Cloud. Everything Local does, at scale, with nothing to run. Cloud adds search and Alexandria.
  • Self-hosting. Deploy the full Firecrawl server from apps/api on your own infrastructure.

Try it now, with no signup or API key:

npx -y firecrawl-cli@latest scrape https://firecrawl.dev

_Pst. Hey, you, join our stargazers :)_


Firecrawl Cloud

Firecrawl Cloud runs everything Firecrawl Local does at scale, with no browser or machine of your own to look after. It also adds search, Alexandria, Interact and Agent, all through a single API.

  • Works on the real web. Handles JavaScript-heavy pages and dynamic apps.
  • Fast. Built for real-time AI agents.
  • From the source. With Alexandria, your agent calls data providers for company filings, court records, research papers and more.
  • Clean Markdown or structured data. Plus screenshots and more, so your AI agents spend fewer tokens.

Firecrawl Keyless gives you 1,000 free credits a month with no API key or signup across MCP, the CLI and the API. For an API key, sign up at firecrawl.dev and try it in the playground.

Search

Search the web and get full content from results.

from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

search_result = app.search("firecrawl", limit=5)

Node.js / cURL / CLI

Node.js

import { Firecrawl } from 'firecrawl';

const app = new Firecrawl({apiKey: "fc-YOUR_API_KEY"});

app.search("firecrawl", { limit: 5 })

cURL

curl -X POST 'https://api.firecrawl.dev/v2/search' \
-H 'Authorization: Bearer fc-YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
  "query": "firecrawl",
  "limit": 5
}'

CLI

firecrawl search "firecrawl" --limit 5
[
  {
    "url": "https://firecrawl.dev",
    "title": "Firecrawl",
    "markdown": "Turn websites into..."
  },
  {
    "url": "https://docs.firecrawl.dev",
    "title": "Firecrawl Docs",
    "markdown": "# Getting Started..."
  }
]

Scrape

Get clean Markdown, structured JSON, screenshots and more from any page.

from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

result = app.scrape('firecrawl.dev')

Node.js / cURL / CLI

Node.js

import { Firecrawl } from 'firecrawl';

const app = new Firecrawl({ apiKey: "fc-YOUR_API_KEY" });

app.scrape('firecrawl.dev')

cURL

curl -X POST 'https://api.firecrawl.dev/v2/scrape' \
-H 'Authorization: Bearer fc-YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
  "url": "firecrawl.dev"
}'

CLI

firecrawl scrape https://firecrawl.dev
firecrawl https://firecrawl.dev --only-main-content
# Firecrawl

Firecrawl helps AI agents search, scrape, and interact with the web.

## Features
- Search: Find information across the web
- Scrape: Clean data from any page
- Interact: Click, navigate, and operate pages
- Agent: Autonomous data gathering

Interact

Scrape a page, then interact with it using AI prompts or code.

from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

result = app.scrape("https://amazon.com")
scrape_id = result.metadata.scrape_id

app.interact(scrape_id, prompt="Search for 'mechanical keyboard'")
app.interact(scrape_id, prompt="Click the first result")

Node.js / cURL / CLI

Node.js

import { Firecrawl } from 'firecrawl';

const app = new Firecrawl({apiKey: "fc-YOUR_API_KEY"});

const result = await app.scrape("https://amazon.com");

await app.interact(result.metadata.scrapeId, {
  prompt: "Search for 'mechanical keyboard'"
});
await app.interact(result.metadata.scrapeId, {
  prompt: "Click the first result"
});

cURL

# 1. Scrape the page
curl -X POST 'https://api.firecrawl.dev/v2/scrape' \
-H 'Authorization: Bearer fc-YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"url": "https://amazon.com"}'

# 2. Interact with the page (use scrapeId from step 1)
curl -X POST 'https://api.firecrawl.dev/v2/scrape/SCRAPE_ID/interact' \
-H 'Authorization: Bearer fc-YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"prompt": "Search for mechanical keyboard"}'

CLI

firecrawl scrape https://amazon.com
firecrawl interact exec --prompt "Search for 'mechanical keyboard'"
firecrawl interact exec --prompt "Click the first result"
{
  "success": true,
  "output": "Keyboard available at $100",
  "liveViewUrl": "https://liveview.firecrawl.dev/..."
}

Agent

Describe what you need, and our AI agent searches, navigates and retrieves it with no URLs required.

curl -X POST 'https://api.firecrawl.dev/v2/agent' \
  -H 'Authorization: Bearer fc-YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "Find the pricing plans for Notion"
  }'
{
  "success": true,
  "data": {
    "result": "Notion offers the following pricing plans:\n\n1. Free - $0/month...\n2. Plus - $10/seat/month...\n3. Business - $18/seat/month...",
    "sources": ["https://www.notion.so/pricing"]
  }
}

Pass a schema to get structured data back.

from firecrawl import Firecrawl
from pydantic import BaseModel, Field
from typing import List, Optional

app = Firecrawl(api_key="fc-YOUR_API_KEY")

class Founder(BaseModel):
    name: str = Field(description="Full name of the founder")
    role: Optional[str] = Field(None, description="Role or position")

class FoundersSchema(BaseModel):
    founders: List[Founder] = Field(description="List of founders")

result = app.agent(
    prompt="Find the founders of Firecrawl",
    schema=FoundersSchema
)

print(result.data)

The Agent documentation covers starting URLs, effort levels and the spark-2 model.

Crawl

Crawl an entire website and get content from all pages.

curl -X POST 'https://api.firecrawl.dev/v2/crawl' \
  -H 'Authorization: Bearer fc-YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://docs.firecrawl.dev",
    "limit": 100,
    "scrapeOptions": {
      "formats": ["markdown"]
    }
  }'

It returns a job ID, and the SDKs poll it for you until the crawl finishes.

{
  "success": true,
  "id": "123-456-789",
  "url": "https://api.firecrawl.dev/v2/crawl/123-456-789"
}

Map

Discover all URLs on a website instantly.

from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

result = app.map("https://firecrawl.dev", search="pricing")
# Returns URLs ordered by relevance to "pricing"

Batch Scrape

Scrape many URLs at once.

from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

job = app.batch_scrape([
    "https://firecrawl.dev",
    "https://docs.firecrawl.dev",
    "https://firecrawl.dev/pricing"
], formats=["markdown"])

for doc in job.data:
    print(doc.metadata.source_url)

Alexandria

Firecrawl Alexandria is a library of data providers your agents can call. Available on Firecrawl Cloud. The best answer usually lives at the source, like a company's filings, a court's opinion, a research paper or a flight's live status. So your agent goes to the source instead of a page about it, and every answer shows where it came from. Data providers get paid when agents use their data. It all runs on the Firecrawl account, key and credits you already have. Already using the Firecrawl plugin or MCP? You already have Alexandria.

Your agent discovers a data tool, checks its inputs and price, then runs it. Discovery is free, and running a tool uses the credits listed on it. Install it in your AI agent from alexandria.firecrawl.dev, or see the Alexandria documentation for CLI, MCP, SDK and API usage. Firecrawl Local can use it once you sign in with firecrawl-local login.

Connect your AI agent

The Firecrawl CLI gives your AI agent every Cloud tool with one command. It works with Claude Code, Antigravity, OpenCode and more, so restart your agent after installing.

npx -y firecrawl-cli@latest init --all --browser

Any MCP client can connect with this config.

{
  "mcpServers": {
    "firecrawl-mcp": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR_API_KEY"
      }
    }
  }
}

An AI agent can sign up its user and get an API key by fetching the onboarding skill.

curl -s https://firecrawl.dev/agent-onboarding/SKILL.md

See the Skill and CLI documentation for every command, and firecrawl-mcp-server for MCP.

SDKs

The SDKs cover every Firecrawl feature and poll async jobs for you. They work with Firecrawl Cloud, and with Firecrawl Local once you set the API URL to http://localhost:3002.

Python

pip install firecrawl
from firecrawl import Firecrawl

app = Firecrawl(api_key="fc-YOUR_API_KEY")

# Scrape a single URL
doc = app.scrape("https://firecrawl.dev", formats=["markdown"])
print(doc.markdown)

# Use the Agent for autonomous data gathering
result = app.agent(prompt="Find the founders of Stripe")
print(result.data)

# Crawl a website (automatically waits for completion)
docs = app.crawl("https://docs.firecrawl.dev", limit=50)
for doc in docs.data:
    print(doc.metadata.source_url, doc.markdown[:100])

# Search the web
results = app.search("best AI data tools 2024", limit=10)
print(results)

Node.js

npm install firecrawl
import { Firecrawl } from 'firecrawl';

const app = new Firecrawl({ apiKey: 'fc-YOUR_API_KEY' });

// Scrape a single URL
const doc = await app.scrape('https://firecrawl.dev', { formats: ['markdown'] });
console.log(doc.markdown);

// Use the Agent for autonomous data gathering
const result = await app.agent({ prompt: 'Find the founders of Stripe' });
console.log(result.data);

// Crawl a website (automatically waits for completion)
const docs = await app.crawl('https://docs.firecrawl.dev', { limit: 50 });
docs.data.forEach(doc => {
    console.log(doc.metadata.sourceURL, doc.markdown.substring(0, 100));
});

// Search the web
const results = await app.search('best AI data tools 2024', { limit: 10 });
results.data.web.forEach(result => {
    console.log(`${result.title}: ${result.url}`);
});

More languages

LanguageInstallGuide
Gogo get github.com/firecrawl/firecrawl/apps/go-sdkGo SDK
Javacom.firecrawl:firecrawl-java from Maven CentralJava SDK
Rustcargo add firecrawlRust SDK
Rubygem install firecrawl-sdkRuby SDK
.NETdotnet add package firecrawl-sdk.NET SDK
PHPcomposer require firecrawl/firecrawl-sdkPHP SDK
Elixir{:firecrawl, "~> 1.0"} in mix.exsElixir SDK

Integrations

AI agents and tools

The build skills for integrating Firecrawl into product code live in this repo under skills/, and CI mirrors them into the catalog. To contribute a skill, send CLI skills (including the research and developer index skills) to firecrawl/cli, build and SDK skills to this repo's skills/ folder, and workflow skills to firecrawl/firecrawl-workflows. The catalog at firecrawl/skills is read-only, so never open a PR against it directly.

Platforms

View all integrations →

Missing your favorite tool? Open an issue and let us know!

Resources


Firecrawl Local

Firecrawl Local scrapes, crawls and maps from your own machine without a database, queue or container, and it reaches Firecrawl Cloud when your AI agents need search or Alexandria. It installs from crates.io. You need Rust and a C compiler, which on macOS means xcode-select --install and on Debian or Ubuntu means build-essential.

cargo install firecrawl-local

If you don't have Rust, Firecrawl Cloud runs the same scrape with nothing to build and no signup.

npx -y firecrawl-cli@latest scrape https://firecrawl.dev

Scrape a page and print its markdown.

firecrawl-local scrape https://firecrawl.dev --markdown

Crawl a site and save one markdown file per page.

firecrawl-local crawl https://docs.firecrawl.dev --limit 50 --out ./pages

List every URL on a site.

firecrawl-local map https://firecrawl.dev

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

Add it to your AI agent

init finds Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI and Codex on your machine and adds Firecrawl Local to each one as an MCP server. It backs up every config file first, and the MCP server itself needs Node.js 22 or newer.

firecrawl-local init

Restart your AI tool afterwards. Its scrape, crawl, map and batch scrape tools run on your machine, and the other Firecrawl tools go to Firecrawl Cloud.

Run the Firecrawl API on localhost

serve answers the Firecrawl v2 API on port 3002, so code written for Firecrawl runs against it unchanged and local routes need no API key.

firecrawl-local serve

Point any Firecrawl SDK at it by setting the API URL.

from firecrawl import Firecrawl

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

The Firecrawl Local README covers every command and option, the security defaults for serve and running it in Docker. Move to Firecrawl Cloud when you need structured JSON, Interact, the Agent or scale beyond one machine.


What runs where

FeatureFirecrawl LocalFirecrawl Cloud
ScrapeMarkdown, HTML, raw HTML and linksAdds structured JSON, summaries, screenshots and browser actions
Crawl, Map and Batch Scrape✅✅
PDFs and Office documents✅✅, plus Parse for uploaded files
SearchThrough Firecrawl Cloud, no account needed✅
AlexandriaThrough Firecrawl Cloud after firecrawl-local login✅
Interact, Agent and Monitor✅

Scraping, crawling and mapping run on your machine. By default a single-page scrape that won't load there is fetched by Firecrawl Cloud instead and marked "source": "firecrawl-cloud" in the result. Those Cloud calls work without an account at a limited rate, and firecrawl-local login puts them on your Firecrawl account. Set FIRECRAWL_CLOUD=off to keep everything on your machine.


Self-hosting

<
Visits:7 Updated:2026-12-03 AI tools

Related

PC2.8 Programmers use tools for navigation, integrating resources such as code hosting platforms, API interfaces, and technical communities. Global Nature Watch Satellites enable us to observe how forests are gradually being cut down and disappearing across the Earth, providing a clear glimpse of the extent of global vegetation destruction. Local-first tools and creative platforms The second aspect involves original articles that document the decisions made while developing these tools: which compression settings are suitable for web pages, which ones work better for Xiaohongshu, what steps need to be checked before exporting PDF files, and why some tool platforms opt for pre-rendering. The purpose of writing these articles is not to provide instruction, but rather to record the mistakes and challenges that were encountered along the way. question bank We offer a vast collection of technical interview questions, covering topics such as algorithms, data structures, and system design—with over 1,000 questions in total. These resources will help you efficiently improve your programming skills and enable you to easily secure offers from top global IT companies. Course Homepage for Li Dongfeng, School of Mathematical Sciences, Peking University, Spring 2026 Semester Note: I have retired. This website contains some lecture notes, programs, and reference materials from previous years. Please feel free to offer your comments and suggestions. Financial Time Series Analysis (Spring 2026): Textbook: Use Ruey S. Tsay’s “Introduction to Financial Data Analysis: Using R Language”. Koala New Media Navigation Koala New Media Navigation includes over 100 essential tools for new media professionals, such as public account layout tools, royalty-free image libraries, strategies for rapid growth, community management tools, Douyin data analysis tools, and creative H5 design resources. It also features more than 200 valuable articles on various topics related to new media, including user acquisition strategies, event management, ways to increase followers on Douyin, data analysis techniques, and recommended reading lists for new media workers.