Skip to main content
Glama
DaisukeHori

Firecrawl MCP Server

by DaisukeHori

🔥 Firecrawl MCP Server

Operate a self-hosted Firecrawl instance from Claude via MCP.

Deploy with Vercel License: MIT Tools

LP: daisukehori.github.io/firecrawl-mcp

You can directly operate a self-hosted Firecrawl instance from Claude.ai / Claude Desktop / Claude Code via MCP (Model Context Protocol).

Equipped with 11 tools for web search, single/batch scraping, site crawling, sitemap retrieval, and LLM-structured extraction.

Architecture

Claude.ai ──MCP──▶ Vercel (firecrawl-mcp)
                        │
                        ▼
               Firecrawl (self-hosted)
               your-firecrawl.example.com

A Next.js app on Vercel handles the MCP protocol and relays requests to the self-hosted Firecrawl API. The server is stateless and does not store data or output logs.

Related MCP server: Firecrawl MCP Server

Tool List (11 Tools)

Scraping

Tool

Description

firecrawl_scrape

Scrape a single URL. Supports Markdown/HTML/links/screenshots

firecrawl_batch_scrape

Parallel scraping for multiple URLs (start/status)

firecrawl_batch_cancel

Cancel a running batch job

firecrawl_batch_errors

Get error details for a batch job

Crawling

Tool

Description

firecrawl_crawl

Start a full-site crawl job

firecrawl_crawl_status

Get crawl progress/results / Cancel crawl

firecrawl_crawl_errors

Get error details for a crawl job

firecrawl_crawl_active

List active crawl jobs

Search, Mapping, and Extraction

Tool

Description

firecrawl_search

Web search. Can also retrieve results in Markdown

firecrawl_map

Get a list of all URLs on a site (sitemap + link discovery)

firecrawl_extract

Extract structured data (JSON) from a page using an LLM

Quick Start (3 Steps)

Step 1: Prepare a self-hosted Firecrawl

Launch Firecrawl by following the Firecrawl Self-Host Guide.

git clone https://github.com/mendableai/firecrawl.git
cd firecrawl
docker compose up -d

It starts at http://localhost:3002 by default.

Step 2: Deploy the MCP Server

Deploy with Vercel

Manual Deployment

git clone https://github.com/DaisukeHori/firecrawl-mcp.git
cd firecrawl-mcp
cp .env.example .env.local
# .env.local を編集
npm install
npm run dev

Step 3: Connect from Claude

Claude.ai (Web): Settings → MCP → Add:

  • URL: https://your-firecrawl-mcp.vercel.app/api/mcp

  • Header Name: x-api-key Value: Your MCP_API_KEY

Claude Desktop / Cursor / VS Code / Windsurf:

{
  "mcpServers": {
    "firecrawl": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your-firecrawl-mcp.vercel.app/api/mcp"],
      "env": {
        "HEADER_x-api-key": "あなたのMCP_API_KEY"
      }
    }
  }
}

Claude Code:

claude mcp add --transport http firecrawl https://your-firecrawl-mcp.vercel.app/api/mcp \
  --header "x-api-key: あなたのMCP_API_KEY"

Environment Variables

Variable

Required

Description

FIRECRAWL_API_URL

URL of the self-hosted Firecrawl (e.g., https://firecrawl.example.com)

FIRECRAWL_API_KEY

Firecrawl API Key (can be empty if authentication is disabled in self-host)

MCP_API_KEY

Authentication key to restrict access to the MCP server

Usage Examples

ユーザー: 「docs.firecrawl.dev の全ページをMarkdownで取得して」

AI: まずサイトマップを確認します。
    [firecrawl_map] → 47ページ検出
    
    クロールジョブを開始します。
    [firecrawl_crawl] → ジョブID: abc-123
    
    ... ステータス確認中 ...
    
    ✅ 47ページ全て取得完了しました。
ユーザー: 「この3つのURLから商品名と価格を抽出して」

AI: [firecrawl_extract]
    ✅ 構造化データ:
    {"name": "Product A", "price": 2980}
    {"name": "Product B", "price": 4980}
    {"name": "Product C", "price": 7980}

🔒 Security

  • All communication is protected by HTTPS (TLS encryption)

  • The server is stateless. Firecrawl URL and API keys are stored in Vercel environment variables and used only during requests

  • No database on the server. It acts solely as a proxy to the Firecrawl API

  • Source code is fully open

  • Unauthorized access is prevented via MCP_API_KEY

FAQ

Q: Can I use it with the Firecrawl cloud version? → Yes. Set FIRECRAWL_API_URL=https://api.firecrawl.dev and enter your cloud API key in FIRECRAWL_API_KEY.

Q: The extract tool is not working → The self-hosted version requires LLM settings such as OPENAI_API_KEY on the Firecrawl side. Please check the Self-Host Guide.

Q: Batch scrape/crawl status remains as scraping → There is a few-second lag in status transitions in the self-hosted version. It will change to completed after polling 2-3 times. This is known behavior.

Q: Which version of Firecrawl is required? → A version that supports the v1 API (/v1/ endpoint). Using the latest version with Docker Compose will work fine.

Q: How is this different from the HubSpot MA MCP? → The HubSpot MA MCP is for HubSpot CRM/MA operations (128 tools). The Firecrawl MCP is for web scraping/crawling (11 tools). They serve different purposes and can be used together.

Tech Stack

Next.js 15 / TypeScript / MCP SDK / Vercel / Zod

License

MIT License


A collection of MCP servers published by Hori. All are available for use from MCP clients such as Claude.ai / Cursor / ChatGPT, etc.

Server

Tool Count

Description

b2cloud-api

14

Yamato B2 Cloud Shipping Label API/MCP

cloudflare-mcp

69

Cloudflare Integration (Tunnel/DNS/Workers/Pages/R2/KV/SSL/Access)

hubspot-ma-mcp

128

HubSpot MA (CRM/Marketing/Knowledge Store)

msgraph-mcp-server

48

Microsoft Graph API (Exchange/Teams/OneDrive/SharePoint)

playwright-devtools-mcp

57

Playwright + Chrome DevTools (Browser Automation)

proxmox-mcp-server

35

Proxmox VE Virtualization Infrastructure Operation

printer-mcp-server

CUPS Network Printer Control (Kyocera TASKalfa)

yamato-printer-mcp-server

Yamato Shipping Label Thermal Printer (Raspberry Pi + WS-420B)

ssh-mcp-server

10

SSH Client (Session Management/Asynchronous Commands)

mac-remote-mcp

34

macOS Remote Control (Shell/GUI/Files/Apps)

gemini-image-mcp

4

Gemini/Imagen Image Generation

runpod-mcp

36

RunPod GPU FaaS (Pods/Endpoints/Jobs)

firecrawl-mcp ← You are here

Firecrawl Self-Hosted Web Scraping

ad-ops-mcp

62

Ad Operations Automation (Google Ads/Meta/GBP/X)

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Integrates Firecrawl web scraping capabilities including scraping, crawling, searching, extracting structured data, deep research, and batch processing with support for both cloud and self-hosted instances.
    10
    22,552 npm
    2
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Integrates Firecrawl web scraping capabilities to extract, crawl, search, and analyze web content with support for batch operations, structured data extraction, and deep research across websites.
    8
    22,552 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Integrates Firecrawl for web scraping, crawling, search, and content extraction capabilities. Supports single/batch scraping, URL discovery, structured data extraction, deep research, and AI-powered web analysis with automatic retries and rate limiting.
    8
    22,552 npm
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Integrates Firecrawl web scraping capabilities, enabling web content extraction, crawling, site mapping, search, and structured data extraction with automatic rate limiting and retry handling.
    6
    22,552 npm
    2
    MIT