Appearance
Firecrawl MCP + Factory AI
Updated Feb 2026Set 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
- Factory AI CLI installed
- A Firecrawl API key
Setup
Step 1: Install Factory CLI
If not already installed, set up the Factory AI CLI:
bash
npm install -g @anthropic-ai/factory-cliOr 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 firecrawlWhen prompted, enter your Firecrawl API key.
Alternatively, provide the key directly:
bash
factory mcp add firecrawl --env FIRECRAWL_API_KEY=fc-your-api-keyStep 3: Verify Setup
Check that the MCP server is registered:
bash
factory mcp listYou 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:
| Tool | Description |
|---|---|
firecrawl_scrape | Scrape a single URL and return markdown |
firecrawl_search | Search the web and return results |
firecrawl_crawl | Crawl a website starting from a URL |
firecrawl_map | Discover all URLs on a website |
firecrawl_extract | Extract structured data from pages |
firecrawl_batch_scrape | Scrape 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 overviewManaging the Server
Remove the Firecrawl MCP server:
bash
factory mcp remove firecrawlUpdate configuration:
bash
factory mcp remove firecrawl
factory mcp add firecrawl --env FIRECRAWL_API_KEY=fc-new-keySelf-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