MCP Server Firecrawl
The MCP Server Firecrawl is an API-powered server providing multiple web data collection capabilities:
Web Scraping: Extract content from URLs with options for mobile emulation, ad blocking, content filtering, and structured data extraction in various formats (markdown, HTML, JSON).
Content Search: Perform intelligent searches with multi-language support, location-based results, and customizable result limits.
Site Crawling: Crawl websites with depth control, path filtering, rate limiting, and sitemap integration.
Site Mapping: Generate structural maps of websites with subdomain support and link analysis.
Data Extraction: Extract structured data from multiple URLs using schema validation, batch processing, and custom extraction prompts.
Supports using .env files to configure the Firecrawl API key for secure development environments.
Supports outputting scraped content in Markdown format for better readability and structure.
Provides TypeScript interfaces for the API, with examples written in TypeScript for better type safety and developer experience.
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., "@MCP Server Firecrawl scrape the latest blog posts from techcrunch.com and extract titles and summaries"
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 MCP Server
A Model Context Protocol (MCP) server for web scraping, content searching, site crawling, and data extraction using the Firecrawl API.
Features
Web Scraping: Extract content from any webpage with customizable options
Mobile device emulation
Ad and popup blocking
Content filtering
Structured data extraction
Multiple output formats
Content Search: Intelligent search capabilities
Multi-language support
Location-based results
Customizable result limits
Structured output formats
Site Crawling: Advanced web crawling functionality
Depth control
Path filtering
Rate limiting
Progress tracking
Sitemap integration
Site Mapping: Generate site structure maps
Subdomain support
Search filtering
Link analysis
Visual hierarchy
Data Extraction: Extract structured data from multiple URLs
Schema validation
Batch processing
Web search enrichment
Custom extraction prompts
Related MCP server: MCP Firecrawl Server
Installation
# Global installation
npm install -g @modelcontextprotocol/mcp-server-firecrawl
# Local project installation
npm install @modelcontextprotocol/mcp-server-firecrawlQuick Start
Get your Firecrawl API key from the developer portal
Set your API key:
Unix/Linux/macOS (bash/zsh):
export FIRECRAWL_API_KEY=your-api-keyWindows (Command Prompt):
set FIRECRAWL_API_KEY=your-api-keyWindows (PowerShell):
$env:FIRECRAWL_API_KEY = "your-api-key"Alternative: Using .env file (recommended for development):
# Install dotenv npm install dotenv # Create .env file echo "FIRECRAWL_API_KEY=your-api-key" > .envThen in your code:
import dotenv from 'dotenv'; dotenv.config();Run the server:
mcp-server-firecrawl
Integration
Claude Desktop App
Add to your MCP settings:
{
"firecrawl": {
"command": "mcp-server-firecrawl",
"env": {
"FIRECRAWL_API_KEY": "your-api-key"
}
}
}Claude VSCode Extension
Add to your MCP configuration:
{
"mcpServers": {
"firecrawl": {
"command": "mcp-server-firecrawl",
"env": {
"FIRECRAWL_API_KEY": "your-api-key"
}
}
}
}Usage Examples
Web Scraping
// Basic scraping
{
name: "scrape_url",
arguments: {
url: "https://example.com",
formats: ["markdown"],
onlyMainContent: true
}
}
// Advanced extraction
{
name: "scrape_url",
arguments: {
url: "https://example.com/blog",
jsonOptions: {
prompt: "Extract article content",
schema: {
title: "string",
content: "string"
}
},
mobile: true,
blockAds: true
}
}Site Crawling
// Basic crawling
{
name: "crawl",
arguments: {
url: "https://example.com",
maxDepth: 2,
limit: 100
}
}
// Advanced crawling
{
name: "crawl",
arguments: {
url: "https://example.com",
maxDepth: 3,
includePaths: ["/blog", "/products"],
excludePaths: ["/admin"],
ignoreQueryParameters: true
}
}Site Mapping
// Generate site map
{
name: "map",
arguments: {
url: "https://example.com",
includeSubdomains: true,
limit: 1000
}
}Data Extraction
// Extract structured data
{
name: "extract",
arguments: {
urls: ["https://example.com/product1", "https://example.com/product2"],
prompt: "Extract product details",
schema: {
name: "string",
price: "number",
description: "string"
}
}
}Configuration
See configuration guide for detailed setup options.
API Documentation
See API documentation for detailed endpoint specifications.
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Start in development mode
npm run devExamples
Check the examples directory for more usage examples:
Basic scraping: scrape.ts
Crawling and mapping: crawl-and-map.ts
Error Handling
The server implements robust error handling:
Rate limiting with exponential backoff
Automatic retries
Detailed error messages
Debug logging
Security
API key protection
Request validation
Domain allowlisting
Rate limiting
Safe error messages
Contributing
See CONTRIBUTING.md for contribution guidelines.
License
MIT License - see LICENSE for details.
Available Tools
2 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one extracts structured data from URLs, the other maps a website's structure. There is no overlap in functionality.
Both tool names are single imperative verbs ('extract' and 'map'), following a consistent and concise naming pattern.
With only 2 tools, the server is on the lower end of acceptable scope. It covers basic functionality but feels minimal for a web crawling service.
The server provides core data extraction and site mapping, but lacks advanced features like recursive crawling or search, which are notable gaps for the domain.
Related MCP Connectors
Firecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.
Web pages, PDFs and search results as LLM-ready Markdown or chunks. Firecrawl-compatible, EU-hosted.
Web scraping, search, crawling, structured extraction and research for AI agents.
Scrape, crawl, and search the web via Firecrawl’s official hosted MCP.
Related MCP Servers
- FlicenseCqualityCmaintenanceBuilt as a Model Context Protocol (MCP) server that provides advanced web search, content extraction, web crawling, and scraping capabilities using the Firecrawl API.41-
- AlicenseDqualityDmaintenanceA server that provides tools to scrape websites and extract structured data from them using Firecrawl's APIs, supporting both basic website scraping in multiple formats and custom schema-based data extraction.23ISC
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to perform advanced web scraping, crawling, searching, and data extraction through the Firecrawl API.9181,541 npmMIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables web scraping, crawling, and content extraction capabilities through integration with Firecrawl.8181,541 npm2MIT