MCP Firecrawl Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP Firecrawl Server
This is a simple MCP server that provides tools to scrape websites and extract structured data using Firecrawl's APIs.
Setup
- Install dependencies:
- Create a
.env
file in the root directory with the following variables:
FIRECRAWL_API_TOKEN
(required): Your Firecrawl API tokenSENTRY_DSN
(optional): Sentry DSN for error tracking and performance monitoring
- Start the server:
Alternatively, you can set environment variables directly when running the server:
Features
- Website Scraping: Extract content from websites in various formats
- Structured Data Extraction: Extract specific data points based on custom schemas
- Error Tracking: Integrated with Sentry for error tracking and performance monitoring
Usage
The server exposes two tools:
scrape-website
: Basic website scraping with multiple format optionsextract-data
: Structured data extraction based on prompts and schemas
Tool: scrape-website
This tool scrapes a website and returns its content in the requested formats.
Parameters:
url
(string, required): The URL of the website to scrapeformats
(array of strings, optional): Array of desired output formats. Supported formats are:"markdown"
(default)"html"
"text"
Example usage with MCP Inspector:
Tool: extract-data
This tool extracts structured data from websites based on a provided prompt and schema.
Parameters:
urls
(array of strings, required): Array of URLs to extract data fromprompt
(string, required): The prompt describing what data to extractschema
(object, required): Schema definition for the data to extract
The schema definition should be an object where keys are field names and values are types. Supported types are:
"string"
: For text fields"boolean"
: For true/false fields"number"
: For numeric fields- Arrays: Specified as
["type"]
where type is one of the above - Objects: Nested objects with their own type definitions
Example usage with MCP Inspector:
Both tools will return appropriate error messages if the scraping or extraction fails and automatically log errors to Sentry if configured.
Troubleshooting
If you encounter issues:
- Verify your Firecrawl API token is valid
- Check that the URLs you're trying to scrape are accessible
- For complex schemas, ensure they follow the supported format
- Review Sentry logs for detailed error information (if configured)
You must be authenticated.
A 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.