# Firecrawl — how to use (mcp.ai)

Connect your Firecrawl account and use 30 tools for web scraping straight from your AI agent. Connect with your own API key. Firecrawl automates web crawling and data extraction, enabling organizations to gather content, index sites, and gain insights from online sources at scale.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_firecrawl?ms=1787295840000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `firecrawl_agent_cancel`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/firecrawl`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/firecrawl/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/firecrawl/agent/cancel` — Tool to cancel an in-progress agent job by its ID. Use when you need to terminate an active agent operation. The API returns a success boolean upon cancellation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/batch/scrape` — Tool to scrape multiple URLs in batch with concurrent processing. Use when you need to scrape multiple web pages efficiently with customizable formats and content filtering.
  - body: { urls: string[], proxy?: string, maxAge?: integer, mobile?: boolean, actions?: object[], formats?: string[], headers?: object, timeout?: integer, waitFor?: integer, webhook?: object, blockAds?: boolean, location?: object, excludeTags?: string[], includeTags?: string[], storeInCache?: boolean, maxConcurrency?: integer, onlyMainContent?: boolean, ignoreInvalidURLs?: boolean, zeroDataRetention?: boolean, removeBase64Images?: boolean, skipTlsVerification?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/batch/scrape/cancel` — Tool to cancel a running batch scrape job using its unique identifier. Use when you need to terminate an in-progress batch scrape operation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/batch/scrape/get` — Retrieves the current status and results of a batch scrape job using the job ID. Use this to check batch scrape progress and retrieve scraped data.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/batch/scrape/get/errors` — Tool to retrieve error details from a batch scrape job, including failed URLs and URLs blocked by robots.txt. Use when you need to debug or understand why certain pages failed to scrape in a batch ope
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl` — Initiates a Firecrawl web crawl from a given URL, applying various filtering and content extraction rules, and polls until the job is complete; ensure the URL is accessible and any regex patterns for 
  - body: { url: string, delay?: integer, limit?: integer, webhook?: string, maxDepth?: integer, excludePaths?: string[], includePaths?: string[], ignoreSitemap?: boolean, crawlEntireDomain?: boolean, maxDiscoveryDepth?: integer, allowBackwardLinks?: boolean, allowExternalLinks?: boolean, scrapeOptionsProxy?: string, scrapeOptionsMaxAge?: integer, scrapeOptionsMobile?: boolean, scrapeOptionsActions?: object[], scrapeOptionsFormats?: string[], scrapeOptionsHeaders?: object, scrapeOptionsTimeout?: integer, scrapeOptionsWaitFor?: integer, ignoreQueryParameters?: boolean, scrapeOptionsBlockAds?: boolean, scrapeOptionsLocation?: object, scrapeOptionsParsePDF?: boolean, scrapeOptionsExcludeTags?: string[], scrapeOptionsIncludeTags?: string[], scrapeOptionsJsonOptions?: object, scrapeOptionsStoreInCache?: boolean, scrapeOptionsOnlyMainContent?: boolean, scrapeOptionsRemoveBase64Images?: boolean, scrapeOptionsSkipTlsVerification?: boolean, scrapeOptionsChangeTrackingOptions?: object }
- `POST https://api.mcp.ai/api/firecrawl/crawl/cancel` — Cancels an active or queued web crawl job using its ID; attempting to cancel completed, failed, or previously canceled jobs will not change their state.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl/delete` — Tool to cancel a running crawl job by its ID. Use when you need to stop an active crawl operation. The API returns a status of 'cancelled' upon successful cancellation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl/get` — Tool to retrieve the status and results of a Firecrawl crawl job. Use when you need to check the progress or get data from an ongoing or completed crawl operation. Returns crawl status, progress metri
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl/get/errors` — Tool to retrieve errors from a Firecrawl crawl job. Use when you need to understand why certain pages failed to scrape or which URLs were blocked by robots.txt during a crawl operation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl/list/active` — Tool to retrieve all active crawl jobs for the authenticated team. Use when you need to see which crawl operations are currently running.
- `POST https://api.mcp.ai/api/firecrawl/crawl/params/preview` — Preview crawl parameters before starting a crawl by generating optimal configuration from natural language instructions. Use this tool to understand what crawl settings will be applied based on your r
  - body: { url: string, prompt: string }
- `POST https://api.mcp.ai/api/firecrawl/crawl/v2` — [NEW v2 API] Initiates a Firecrawl v2 web crawl with enhanced features over v1: natural language prompts for automatic crawler configuration, crawlEntireDomain for sibling/parent page discovery, bette
  - body: { url: string, delay?: integer, limit?: integer, prompt?: string, sitemap?: string, webhook?: object, excludePaths?: string[], includePaths?: string[], maxConcurrency?: integer, allowSubdomains?: boolean, crawlEntireDomain?: boolean, maxDiscoveryDepth?: integer, zeroDataRetention?: boolean, allowExternalLinks?: boolean, scrapeOptions_proxy?: string, scrapeOptions_maxAge?: integer, scrapeOptions_mobile?: boolean, ignoreQueryParameters?: boolean, scrapeOptions_actions?: object[], scrapeOptions_formats?: string|object[], scrapeOptions_headers?: object, scrapeOptions_parsers?: string[], scrapeOptions_timeout?: integer, scrapeOptions_waitFor?: integer, scrapeOptions_blockAds?: boolean, scrapeOptions_location?: object, scrapeOptions_excludeTags?: string[], scrapeOptions_includeTags?: string[], scrapeOptions_storeInCache?: boolean, scrapeOptions_onlyMainContent?: boolean, scrapeOptions_removeBase64Images?: boolean, scrapeOptions_skipTlsVerification?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/credit/usage/get` — Tool to get current team credit usage information. Use when you need to check remaining credits or billing period details.
- `POST https://api.mcp.ai/api/firecrawl/credit/usage/get/historical` — Tool to retrieve historical team credit usage on a monthly basis. Use when you need to analyze credit consumption patterns over time, optionally segmented by API key.
  - body: { byApiKey?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/deep/research` — Initiates an AI-powered deep research operation that autonomously explores the web to investigate any topic and synthesizes findings from multiple sources. Requires an active Firecrawl connection. The
  - body: { query: string, formats?: string[], maxUrls?: integer, maxDepth?: integer, timeLimit?: integer, jsonOptions?: object, systemPrompt?: string, analysisPrompt?: string }
- `POST https://api.mcp.ai/api/firecrawl/extract` — Extracts structured data from web pages by initiating an extraction job and polling for completion; requires a natural language `prompt` or a JSON `schema` (one must be provided).
  - body: { urls: string[], prompt?: string, schema?: object, showSources?: boolean, ignoreSitemap?: boolean, scrapeOptions?: object, enableWebSearch?: boolean, ignoreInvalidURLs?: boolean, includeSubdomains?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/extract/get` — Tool to retrieve the status and results of a previously submitted extract job. Use when you need to check the progress or get the final results of an extraction operation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/get/agent/status` — Tool to get the status and results of an agent job. Use when you need to check if an agent job has completed and retrieve the collected data. Agent jobs autonomously search, navigate, and extract data
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/get/deep/research/status` — Retrieves the status and results of a deep research job by its ID. Use when you need to check the progress or retrieve the final analysis of a deep research operation.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/get/the/status/of/a/crawl/job` — Retrieves the current status, progress, and details of a web crawl job, using the job ID obtained when the crawl was initiated.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/llms/txt/generate` — Initiates an async job to generate an LLMs.txt file for a website, converting web content into LLM-friendly format. Returns a job ID to check status and retrieve results. Use when you need to create a
  - body: { url: string, maxUrls?: integer, showFullText?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/llms/txt/get` — Tool to get the status and results of an LLMs.txt generation job. Use when you need to check if a job has completed and retrieve the generated content.
  - body: { id: string }
- `POST https://api.mcp.ai/api/firecrawl/map/multiple/urls/based/on/options` — Maps a website by discovering URLs from a starting base URL, with options to customize the crawl via search query, subdomain inclusion, sitemap handling, and result limits; search effectiveness is sit
  - body: { url: string, limit?: integer, search?: string, sitemap?: string, timeout?: integer, location?: object, ignoreCache?: boolean, includeSubdomains?: boolean, ignoreQueryParameters?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/queue/get` — Tool to retrieve metrics about the team's scrape queue. Use when you need to check queue status, job counts, or concurrency limits.
- `POST https://api.mcp.ai/api/firecrawl/scrape` — Scrapes a publicly accessible URL, optionally performing pre-scrape browser actions or extracting structured JSON using an LLM, to retrieve content in specified formats.
  - body: { url: string, actions?: object[], formats?: string[], timeout?: integer, waitFor?: integer, location?: object, excludeTags?: string[], includeTags?: string[], jsonOptions?: object, onlyMainContent?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/search` — Performs a web search for a query, scrapes content from the top search results using Firecrawl, and returns details in specified formats.
  - body: { q: string, lang?: string, limit?: integer, country?: string, formats?: string|object[], timeout?: integer }
- `POST https://api.mcp.ai/api/firecrawl/start/agent` — Tool to start an agent job for agentic web extraction with multi-page navigation and interaction capabilities. Use when you need to autonomously gather data from the web with complex navigation requir
  - body: { urls?: string[], prompt: string, schema?: object, maxCredits?: integer, strictConstrainToURLs?: boolean }
- `POST https://api.mcp.ai/api/firecrawl/token/usage/get` — Tool to retrieve the current team's token usage and balance information for Firecrawl's Extract feature. Use when you need to check remaining token credits, plan allocation, or billing period details.
- `POST https://api.mcp.ai/api/firecrawl/token/usage/get/historical` — Tool to retrieve historical team token usage on a monthly basis. Use when you need to analyze token consumption patterns over time, optionally segmented by API key.
  - body: { byApiKey?: boolean }

## Example prompts
- "What can I do in Firecrawl?"
- "Show me a summary of my Firecrawl account"

## More
- Page: https://mcp.ai/firecrawl
- Agent spec (llms.txt): https://mcp.ai/firecrawl/llms.txt
- Postman collection: https://mcp.ai/firecrawl/postman.json
