Firecrawl Agent MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Firecrawl Agent MCP Server find the latest AI research papers from top universities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Firecrawl Agent MCP Server
A Model Context Protocol (MCP) server that provides AI-powered web data extraction and research capabilities through Firecrawl's Agent API.
Features
š¤ AI Agent Mode: Let the agent autonomously search, navigate, and gather data from complex websites š Web Search: Search and scrape multiple results at once š Single Page Scraping: Extract content from specific URLs š Structured Data: Define JSON schemas for type-safe data extraction š° Cost Control: Set maximum credit limits per request ā” Async Jobs: Start long-running tasks and poll for results
What is Firecrawl Agent?
Firecrawl Agent is a magic API that:
No URLs Required: Just describe what you need via prompt
Autonomous Navigation: Searches and navigates deep into sites to find your data
Parallel Processing: Processes multiple sources simultaneously for faster results
Structured Output: Returns data in your specified JSON schema format
Perfect for:
Research tasks across multiple websites
Extracting structured data (company info, pricing, contacts)
Finding hard-to-reach information
Competitive analysis and market research
Installation
1. Clone or Copy Files
cd firecrawl-agent-mcp2. Install Dependencies
npm install3. Configure API Key
Copy the example environment file and add your Firecrawl API key:
cp .env.example .envEdit .env and add your API key:
FIRECRAWL_API_KEY=fc-YOUR_API_KEY_HEREGet your API key from: https://www.firecrawl.dev/
4. Build the Server
npm run buildConfiguration in Claude Code
Add the Firecrawl Agent MCP server to your Claude Code configuration:
Option 1: Edit .claude/settings.json
{
"mcpServers": {
"firecrawl-agent": {
"command": "node",
"args": ["/absolute/path/to/firecrawl-agent-mcp/dist/server.js"],
"env": {
"FIRECRAWL_API_KEY": "fc-YOUR_API_KEY_HERE"
}
}
}
}Option 2: Use .mcp.json in Project Root
{
"mcpServers": {
"firecrawl-agent": {
"command": "node",
"args": ["./firecrawl-agent-mcp/dist/server.js"],
"env": {
"FIRECRAWL_API_KEY": "fc-YOUR_API_KEY_HERE"
}
}
}
}Available Tools
agent_execute
Execute the AI agent synchronously (waits for completion).
Use when: You need immediate results for research tasks.
Parameters:
prompt(required): Describe what data you want to extracturls(optional): Specific URLs to search (otherwise searches web)schema(optional): JSON schema for structured outputmaxCredits(optional): Maximum credits to spend
Example:
{
"prompt": "Find the founders and founding year of Anthropic",
"schema": {
"type": "object",
"properties": {
"founders": { "type": "array", "items": { "type": "string" } },
"founded": { "type": "number" }
}
}
}agent_start
Start an agent job asynchronously (returns job ID immediately).
Use when: You have long-running research tasks and want to poll for results.
Parameters: Same as agent_execute
Returns: Job ID to use with agent_status
agent_status
Check the status of an asynchronous agent job.
Parameters:
jobId(required): Job ID fromagent_start
Returns: Current status, progress, and results if completed
scrape
Scrape a single URL without AI agent capabilities.
Use when: You just need to extract content from one specific page.
Parameters:
url(required): URL to scrapeformats(optional): Output formats (markdown,html,rawHtml,links,screenshot)onlyMainContent(optional): Extract only main content (default: true)includeTags(optional): HTML tags to includeexcludeTags(optional): HTML tags to excludewaitFor(optional): Wait time for JS rendering (ms)timeout(optional): Request timeout (ms)
search
Search the web and scrape multiple results.
Use when: You want to find and extract data from multiple sources at once.
Parameters:
query(required): Search querylimit(optional): Maximum number of results (default: 5)formats(optional): Output formats for each result
Usage Examples
Example 1: Research Company Information
// Ask Claude Code:
"Use Firecrawl Agent to find information about Anthropic's founding team"
// Claude will call:
agent_execute({
prompt: "Find the founders of Anthropic and when the company was founded",
schema: {
type: "object",
properties: {
founders: {
type: "array",
items: { type: "string" }
},
founded: { type: "number" },
description: { type: "string" }
}
}
})Example 2: Extract Pricing Information
// Ask Claude Code:
"Get pricing information for Claude API"
// Claude will call:
agent_execute({
prompt: "Extract all pricing tiers and costs for Claude API",
urls: ["https://www.anthropic.com/pricing"]
})Example 3: Competitive Analysis
// Ask Claude Code:
"Compare the features of the top 5 AI coding assistants"
// Claude will call:
agent_execute({
prompt: "Find and compare features of top AI coding assistants: GitHub Copilot, Cursor, Claude Code, Tabnine, and Codeium",
schema: {
type: "object",
properties: {
tools: {
type: "array",
items: {
type: "object",
properties: {
name: { type: "string" },
features: { type: "array", items: { type: "string" } },
pricing: { type: "string" }
}
}
}
}
}
})Example 4: Long-Running Research
// Ask Claude Code:
"Start a deep research job on quantum computing breakthroughs in 2024"
// Claude will call:
const job = await agent_start({
prompt: "Research all major quantum computing breakthroughs and papers published in 2024"
})
// Then poll for status:
const status = await agent_status({ jobId: job.jobId })Cost Management
Firecrawl Agent uses dynamic billing based on task complexity:
Simple extractions: Fewer credits
Complex research: More credits
Control costs using:
{
prompt: "Your task",
maxCredits: 100 // Limit spending to 100 credits
}Development
Watch Mode
npm run devRun Directly
npm startSSE Transport Mode
For HTTP-based communication:
npm run start:sseTroubleshooting
"FIRECRAWL_API_KEY environment variable is required"
Make sure you've:
Created a
.envfile with your API keyOr configured the env variable in your Claude Code settings
"HTTP 401: Unauthorized"
Your API key is invalid. Get a new one from https://www.firecrawl.dev/
"HTTP 429: Too Many Requests"
You've hit rate limits. Wait a moment and try again, or upgrade your Firecrawl plan.
Tools not showing up in Claude Code
Make sure you've built the server:
npm run buildCheck that the path in your MCP configuration is correct
Restart Claude Code after configuration changes
Learn More
License
MIT
Support
For issues with:
This MCP server: Open an issue in this repository
Firecrawl API: Contact Firecrawl support
Claude Code: Visit https://github.com/anthropics/claude-code
Built with ā¤ļø using the Model Context Protocol
Available Tools
5 toolsagent_executeB
Execute Firecrawl Agent to search, navigate, and gather data from the web. The agent autonomously finds and extracts information based on your prompt. Waits for completion and returns results. Use this for immediate results.
Inputs: prompt (required), urls, schema, maxCredits.
agent_startA
Start a Firecrawl Agent job asynchronously. Returns a job ID immediately without waiting for completion. Use this for long-running research tasks. Poll with agent_status to check progress.
Inputs: prompt (required), urls, schema, maxCredits.
agent_statusA
Check the status of an asynchronous Firecrawl Agent job. Returns current status, progress, and results if completed. Job results are available for 24 hours after completion.
Inputs: jobId (required).
scrapeA
Scrape a single URL and extract content in various formats (markdown, html, links, screenshot). Use this for simple single-page scraping without AI agent capabilities.
Inputs: url (required), formats, onlyMainContent, includeTags, +3 more.
searchA
Search the web and scrape the results. Returns scraped content from multiple search results. Use this for finding and extracting data from multiple sources at once.
Inputs: query (required), limit, formats.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no ambiguity: agent_execute for immediate agent tasks, agent_start for async jobs, agent_status for job monitoring, scrape for single URLs, and search for web searches. The descriptions explicitly differentiate use cases, preventing misselection.
All tool names follow a consistent snake_case pattern with clear verb_noun or noun_verb structures (e.g., agent_execute, agent_start, scrape, search). There are no deviations in naming conventions, making the set predictable and readable.
With 5 tools, the server is well-scoped for web data extraction and agent tasks. Each tool earns its place by covering distinct aspects: synchronous and asynchronous agent execution, job monitoring, single-page scraping, and multi-source search. This count is neither too sparse nor bloated.
The tool surface covers core workflows for web scraping and agent-based data gathering, including start, execute, status, scrape, and search operations. A minor gap exists in lacking explicit tools for managing or canceling async jobs, but agents can work around this by using the provided tools effectively.
Related MCP Connectors
Web scraping, search, crawling, structured extraction and research for AI agents.
Scrape any website, extract structured data, and collect web content at scale with AI agents
Search, scrape, and crawl the web, plus Firecrawl Alexandria, our library of everything else.
Web search, scraping, crawling, research, a browser agent, and company and people data.