Appearance
Firecrawl MCP + Claude Code
Updated Feb 2026Set up Firecrawl's MCP server in Claude Code (Anthropic's CLI) with a single command. Give Claude web scraping, searching, and crawling capabilities directly in your terminal.
Source: docs.firecrawl.dev/developer-guides/mcp-setup-guides/claude-code
Prerequisites
- Claude Code CLI installed
- Node.js 18+ with
npxavailable - A Firecrawl API key
One-Line Setup
Add the Firecrawl MCP server with a single command:
bash
claude mcp add firecrawl -e FIRECRAWL_API_KEY=fc-your-api-key -- npx -y firecrawl-mcpThis registers the Firecrawl MCP server in your Claude Code configuration and makes all Firecrawl tools available immediately.
Manual Configuration
Alternatively, edit your Claude Code MCP configuration file directly. Add the following to ~/.claude/.mcp.json (or your project's .mcp.json):
json
{
"mcpServers": {
"firecrawl": {
"command": "npx",
"args": ["-y", "firecrawl-mcp"],
"env": {
"FIRECRAWL_API_KEY": "fc-your-api-key"
}
}
}
}Remote MCP (Alternative)
Use Firecrawl's remote MCP endpoint instead of running the server locally:
bash
claude mcp add firecrawl --url "https://mcp.firecrawl.dev/YOUR_API_KEY_HERE/v2/mcp"Or in the config file:
json
{
"mcpServers": {
"firecrawl": {
"url": "https://mcp.firecrawl.dev/YOUR_API_KEY_HERE/v2/mcp"
}
}
}Remote URL Contains Your Key
The remote MCP URL embeds your API key directly. Avoid committing this to version control.
Available Tools
Once configured, these tools become available in Claude Code:
| Tool | Description |
|---|---|
firecrawl_scrape | Scrape a single URL and return markdown |
firecrawl_search | Search the web and return results |
firecrawl_crawl | Crawl a website starting from a URL |
firecrawl_map | Discover all URLs on a website |
firecrawl_extract | Extract structured data from pages |
firecrawl_batch_scrape | Scrape multiple URLs in one request |
Verify Setup
After adding the MCP server:
- Start a new Claude Code session (or restart the current one)
- Ask: "Scrape https://firecrawl.dev and summarize it"
- Claude should invoke the
firecrawl_scrapetool and return a summary
You can also verify the server is registered:
bash
claude mcp listManaging the Server
Remove the Firecrawl MCP server:
bash
claude mcp remove firecrawlUpdate the API key:
bash
claude mcp remove firecrawl
claude mcp add firecrawl -e FIRECRAWL_API_KEY=fc-new-key -- npx -y firecrawl-mcpSelf-Hosted Option
If you run a self-hosted Firecrawl instance:
bash
claude mcp add firecrawl \
-e FIRECRAWL_API_KEY=fc-your-api-key \
-e FIRECRAWL_API_URL=http://localhost:3002 \
-- npx -y firecrawl-mcp