Skip to main content

Prerequisites

  • Node.js 22 or newer
  • npm and npx, included with Node.js
  • A Firecrawl API key for the cloud API, or a self-hosted Firecrawl API URL
Confirm the installed Node.js version:

Run over stdio

This is the default transport for clients that launch the MCP server as a local process.

Run with Streamable HTTP

Use HTTP transport for clients such as n8n that connect to an already-running MCP server:
Connect the client to:
Confirm the server is ready:
The health check returns ok. The local route is /mcp; /v2/mcp is the hosted Firecrawl route.

Install globally

Then run:

Configuration

Environment Variables

Cloud and self-hosted API

  • FIRECRAWL_API_KEY: Your Firecrawl API key
    • Required when using cloud API (default)
    • Optional when using self-hosted instance with FIRECRAWL_API_URL
  • FIRECRAWL_API_URL (Optional): Custom API endpoint for self-hosted instances
    • Example: https://firecrawl.your-domain.com
    • If not provided, the cloud API will be used (requires API key)

Configuration Examples

For cloud API usage:
For self-hosted instance:

Custom configuration with Claude Desktop

Add this to your claude_desktop_config.json:

Hosted MCP vs local MCP

The hosted MCP server is optimized for safe remote use. Some options that are available when running the MCP server locally are narrowed or unavailable remotely:
  • Hosted keyless mode exposes only Search, Scrape, and Parse and is rate-limited per IP.
  • Local-only file reads are available only when you run the MCP server locally.
  • Webhooks and local file paths should be configured from a local or self-hosted MCP server when the agent needs access to local resources.
Direct local-file parsing with firecrawl_parse requires FIRECRAWL_API_URL pointing to a self-hosted Firecrawl API. A local MCP server configured only with a cloud API key cannot upload a local file through that tool.

Rate Limiting

Rate limits are enforced by Firecrawl. Use an API key for higher limits and access to the full tool set.