Firecrawl Agent MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Firecrawl Agent MCP Server
An MCP (Model Context Protocol) server that exposes Firecrawl's autonomous agent endpoint for web research and data extraction.
Features
Autonomous Web Research: Just provide a natural language prompt - no URLs required
Structured Data Extraction: Define JSON schemas to get structured output
Flexible Scope: Research the entire web or constrain to specific URLs
Async Support: Run long-running jobs asynchronously with status polling
Credit Control: Set spending limits to control API costs
Related MCP server: ScrapeGraph MCP Server
Installation
Prerequisites
Python 3.10 or higher
Firecrawl API key (get one at firecrawl.dev)
Setup
Clone this repository:
git clone https://github.com/markusleucht/firecrawl-agent-mcp.git
cd firecrawl-agent-mcpInstall dependencies:
pip install -r requirements.txtSet your Firecrawl API key:
export FIRECRAWL_API_KEY="your-api-key-here"Configure in Claude Code
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"firecrawl-agent": {
"type": "stdio",
"command": "python",
"args": ["/path/to/firecrawl-agent-mcp/mcp_server.py"],
"env": {
"FIRECRAWL_API_KEY": "your-api-key-here"
}
}
}
}Usage
Tool 1: firecrawl_agent_run
Run autonomous web research with a natural language prompt.
Basic Example:
firecrawl_agent_run("Find the founders of Firecrawl and their backgrounds")With Schema for Structured Output:
firecrawl_agent_run(
prompt="Compare pricing of Snowflake vs Databricks vs BigQuery",
schema={
"type": "array",
"items": {
"type": "object",
"properties": {
"company": {"type": "string"},
"pricing_model": {"type": "string"},
"starting_price": {"type": "string"}
}
}
}
)Constrained to Specific URLs:
firecrawl_agent_run(
prompt="Extract all product features",
urls=["https://example.com/products"],
strict_urls=True
)Async Mode:
firecrawl_agent_run(
prompt="Research top 50 AI companies",
wait_for_completion=False # Returns job_id immediately
)Tool 2: firecrawl_agent_status
Check the status of an async job or retrieve completed results.
firecrawl_agent_status(job_id="your-job-id")Parameters
firecrawl_agent_run
Parameter | Type | Required | Default | Description |
| string | Yes | - | Natural language description of what data to extract (max 10,000 chars) |
| object | No | - | JSON schema to structure the output |
| list[string] | No | - | URLs to constrain the agent's search scope |
| integer | No | 50 | Maximum credits to spend on this task |
| boolean | No | false | Only visit provided URLs (requires |
| boolean | No | true | Wait for job to complete or return job_id immediately |
firecrawl_agent_status
Parameter | Type | Required | Description |
| string | Yes | Job ID returned from |
Pricing
5 free agent runs per day on Firecrawl
Credits vary by complexity (simple extractions use fewer credits)
Use
max_creditsparameter to control spendingResults are cached for 24 hours
How It Works
You provide a natural language prompt describing what data you need
Firecrawl's agent searches the web, navigates pages, and extracts information
Results are returned as raw text or structured JSON (if schema provided)
The agent autonomously decides which pages to visit and what data to extract
Examples
Research Task
Prompt: "Find the CEO, founding year, and latest funding round for Anthropic, OpenAI, and Google DeepMind"Competitive Analysis
Prompt: "Compare the pricing plans, key features, and target customers for the top 3 CRM platforms"
Schema: Define a structured format with company, plans[], features[], target_marketData Collection
Prompt: "Extract all job postings for 'Machine Learning Engineer' from YC companies"
URLs: ["https://www.ycombinator.com/companies"]Troubleshooting
Error: "FIRECRAWL_API_KEY not configured"
Make sure you've set the environment variable or added it to your MCP server config.
Error: "Payment required"
Your Firecrawl account needs billing configured or you've exceeded free tier limits.
Error: "Rate limit exceeded"
Wait a few moments and try again, or upgrade your Firecrawl plan.
Job times out
Increase the polling timeout in the code, or use wait_for_completion=False and check status manually.
License
MIT
Credits
Built on Firecrawl and the Model Context Protocol.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, search, crawling, structured extraction and research for AI agents.
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Structured web research tool for AI agents: search, fetch and shape web data into the JSON schema…
Unblocking and fresh web data for agents: URL to Markdown, YouTube, Maps, Amazon, jobs. Pay per call
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI agents to search, scrape, crawl, map, and interact with live web pages, returning clean, structured, agent-ready content. It also supports recurring page monitoring, autonomous deep research, and credit-usage checks.261MIT
- FlicenseNot gradedqualityAmaintenanceEnables language models to perform AI-powered web scraping, structured extraction, search, crawling, schema generation, and scheduled monitoring through an integrated web-scraping API.-
- FlicenseNot gradedqualityAmaintenanceEnables language models to scrape and extract web content, run searches, crawl multiple pages, generate JSON schemas, schedule monitors, and manage account history through a unified protocol interface.-
- FlicenseNot gradedqualityAmaintenanceEnables language models to perform AI-powered web scraping, structured data extraction, search, crawling, schema generation, and scheduled monitoring through a unified API.-