Skip to content

Firecrawl MCP + Factory AI

Updated Feb 2026

Set up Firecrawl's MCP server with Factory AI's CLI-based development platform. Add web scraping, searching, and crawling capabilities to Factory AI agents.

Source: docs.firecrawl.dev/developer-guides/mcp-setup-guides/factory-ai

Prerequisites

Setup

Step 1: Install Factory CLI

If not already installed, set up the Factory AI CLI:

bash
npm install -g @anthropic-ai/factory-cli

Or follow the installation instructions at factory.ai.

Step 2: Add the MCP Server

Use the Factory CLI to add Firecrawl as an MCP server:

bash
factory mcp add firecrawl

When prompted, enter your Firecrawl API key.

Alternatively, provide the key directly:

bash
factory mcp add firecrawl --env FIRECRAWL_API_KEY=fc-your-api-key

Step 3: Verify Setup

Check that the MCP server is registered:

bash
factory mcp list

You should see firecrawl in the list of configured MCP servers.

Remote MCP (Alternative)

Use Firecrawl's remote MCP endpoint instead of the local server:

bash
factory mcp add firecrawl --url "https://mcp.firecrawl.dev/YOUR_API_KEY_HERE/v2/mcp"

Replace YOUR_API_KEY_HERE with your Firecrawl API key.

Available Tools

Once configured, these tools become available to Factory AI agents:

ToolDescription
firecrawl_scrapeScrape a single URL and return markdown
firecrawl_searchSearch the web and return results
firecrawl_crawlCrawl a website starting from a URL
firecrawl_mapDiscover all URLs on a website
firecrawl_extractExtract structured data from pages
firecrawl_batch_scrapeScrape multiple URLs in one request

Example Usage

After setup, Factory AI agents can use Firecrawl tools in their workflows:

> Scrape https://firecrawl.dev and summarize the product
> Search for "web scraping API comparison" and analyze the results
> Map https://docs.firecrawl.dev and list all documentation pages
> Crawl https://firecrawl.dev (limit 5 pages) and create a site overview

Managing the Server

Remove the Firecrawl MCP server:

bash
factory mcp remove firecrawl

Update configuration:

bash
factory mcp remove firecrawl
factory mcp add firecrawl --env FIRECRAWL_API_KEY=fc-new-key

Self-Hosted Option

If you run a self-hosted Firecrawl instance:

bash
factory mcp add firecrawl \
  --env FIRECRAWL_API_KEY=fc-your-api-key \
  --env FIRECRAWL_API_URL=http://localhost:3002

Further Reading