Skip to content

Firecrawl MCP Server

New

The Firecrawl MCP Server exposes Firecrawl's web scraping and search capabilities as MCP tools, making them available to any MCP-compatible AI agent: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, and more.

Overview

Available MCP Tools

ToolDescription
firecrawl_scrapeScrape a single URL, return markdown/HTML/screenshot
firecrawl_mapDiscover all URLs on a domain
firecrawl_searchSearch the web and return scraped results
firecrawl_crawlCrawl a full website asynchronously
firecrawl_check_crawl_statusPoll crawl job status
firecrawl_extractLLM-structured extraction from one or more URLs
firecrawl_agentStart an agent research task
firecrawl_agent_statusCheck agent task status

Installation

The fastest setup — no local process required:

json
{
  "mcpServers": {
    "firecrawl": {
      "url": "https://mcp.firecrawl.dev/YOUR_API_KEY"
    }
  }
}

Replace YOUR_API_KEY with your Firecrawl API key.

Running with npx

bash
npx -y firecrawl-mcp

Set the env var first:

bash
export FIRECRAWL_API_KEY=fc-YOUR-API-KEY
npx -y firecrawl-mcp

Setup per Client

Claude Code

bash
claude mcp add firecrawl -e FIRECRAWL_API_KEY=fc-YOUR-API-KEY -- npx -y firecrawl-mcp

Or add to ~/.claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

Cursor

Open Settings → Cursor Settings → MCP → Add Server:

json
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

Windsurf

Edit Windsurf MCP config:

json
{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json in your workspace:

json
{
  "servers": {
    "firecrawl": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "firecrawl-mcp"],
      "env": {
        "FIRECRAWL_API_KEY": "fc-YOUR-API-KEY"
      }
    }
  }
}

Streamable HTTP Mode

For production deployments or multi-client setups, run the server in HTTP mode:

bash
FIRECRAWL_API_KEY=fc-YOUR-API-KEY firecrawl-mcp --transport streamable-http --port 3000

Then configure clients to connect via HTTP transport.

Environment Variables

Required

VariableDescription
FIRECRAWL_API_KEYYour Firecrawl API key (fc-...)

Optional

VariableDefaultDescription
FIRECRAWL_API_URLhttps://api.firecrawl.devCustom API endpoint (self-hosted)
FIRECRAWL_RETRY_MAX_ATTEMPTS3Max retry attempts on failure
FIRECRAWL_RETRY_INITIAL_DELAY1000Initial retry delay (ms)
FIRECRAWL_RETRY_MAX_DELAY10000Max retry delay (ms)
FIRECRAWL_RETRY_BACKOFF_FACTOR2Exponential backoff multiplier
FIRECRAWL_CREDIT_WARNING_THRESHOLD1000Warn when credits fall below this
FIRECRAWL_CREDIT_CRITICAL_THRESHOLD100Critical alert threshold

Tool Usage Examples

Scrape a URL

Use firecrawl_scrape to get the content of https://firecrawl.dev

With lockdown mode (cache only, no outbound request):

Use firecrawl_scrape on https://firecrawl.dev with lockdown: true

Search the Web

Use firecrawl_search to find "Firecrawl API pricing" and return the top 5 results

Map a Domain

Use firecrawl_map on https://docs.firecrawl.dev to get all page URLs

Extract Structured Data

Use firecrawl_extract on https://firecrawl.dev/pricing to get plan names and prices as JSON

Rate Limiting

The MCP server implements automatic rate limiting and retry logic. Configure via environment variables above. Batch requests are processed with built-in concurrency controls to stay within Firecrawl API rate limits.


See also: MCP Server Feature Page → | MCP Setup Guides →