Firecrawl

by msparihar

224 downloads
Not rated
GitHub

About

Scrape, crawl, and extract data from any website using the Firecrawl API.

Details

Author
msparihar
Downloads
224
Categories
Web Scraping, Automation, Other, Search
Tags
#data-analysis

- Web scraping with mobile emulation, ad blocking, and structured extraction
- Intelligent content search with multi-language and location support
- Site crawling with depth control, path filtering, and rate limiting
- Site mapping including subdomains, search filtering, and link analysis
- Data extraction from multiple URLs with schema validation and batch processing

Install globally or locally with npm (npm install -g @modelcontextprotocol/mcp-server-firecrawl or npm install @modelcontextprotocol/mcp-server-firecrawl). Set the FIRECRAWL_API_KEY environment variable with your Firecrawl API key, then run mcp-server-firecrawl. For integration with Claude Desktop or the VSCode Extension, add a JSON entry to your MCP settings specifying the command and environment variable.

A Model Context Protocol (MCP) server for web scraping, content searching, site crawling, and data extraction using the Firecrawl API.

-

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

# Global installation npm install -g @modelcontextprotocol/mcp-server-firecrawl # Local project installation npm install @modelcontextprotocol/mcp-server-firecrawl

-

Get your Firecrawl API key from thedeveloper portal

$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" > .env
import dotenv from 'dotenv'; dotenv.config();
{ "firecrawl": { "command": "mcp-server-firecrawl", "env": { "FIRECRAWL_API_KEY": "your-api-key" } } }
{ "mcpServers": { "firecrawl": { "command": "mcp-server-firecrawl", "env": { "FIRECRAWL_API_KEY": "your-api-key" } } } }
// 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 } }
// 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 } }
// Generate site map { name: "map", arguments: { url: "https://example.com", includeSubdomains: true, limit: 1000 } }
// 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" } } }

Seeconfiguration guidefor detailed setup options.

SeeAPI documentationfor detailed endpoint specifications.

# Install dependencies npm install # Build npm run build # Run tests npm test # Start in development mode npm run dev

Check theexamplesdirectory for more usage examples:

- Basic scraping:scrape.ts
- Crawling and mapping:
crawl-and-map.ts

The server implements robust error handling:

- Rate limiting with exponential backoff
- Automatic retries
- Detailed error messages
- Debug logging

- API key protection
- Request validation
- Domain allowlisting
- Rate limiting
- Safe error messages

SeeCONTRIBUTING.mdfor contribution guidelines.

Web scraper exposing 5 MCP tools — crawl, markdown extraction, search-and-crawl, sitemap parsing, and LLM JSON-schema structured extraction. AGPL-3.0.

Hosted, Stateless & Multitenant Firecrawl MCP server enables AI assistants to crawl, scrape, and extract structured web data through Firecrawl.

Enable AI agents to get structured data from unstructured web with AgentQL.

Easy web data access. Simplified retrieval of information from websites and online sources.

Adds powerful web scraping and search capabilities to LLM clients like Cursor and Claude.

Official OpenWeb Ninja MCP server connecting any AI agent to 40+ web data APIs for web search, e-commerce, local business, jobs, real estate, and finance data.

Integrate real-time Scrapeless Google SERP(Google Search, Google Flight, Google Map, Google Jobs....) results into your LLM applications. This server enables dynamic context retrieval for AI workflows, chatbots, and research tools.

Turn websites into datasets with Scrapezy

Scrapfly MCP Server gives AI agents a simple, unified way to scrape live web data with built-in anti-bot handling.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.