mcp
v0.1.0Model Context Protocol (MCP) server for FireScraper.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
firescraper_scrape_and_wait
Crawl one or more URLs and return the extracted text once the crawl finishes. This is the easiest way to get clean, LLM-ready content from a website in a single call. Best for small-to-medium crawls; for large jobs use firescraper_scrape and poll with firescraper_get_session.
| Parameter | Type | Description |
|---|---|---|
name * | string | A human-readable name for this crawl, e.g. "Acme docs". |
urls * | array | One or more seed URLs to crawl. |
format | string | Output format to return. Default "markdown" (best for LLM consumption). |
ignoreUrls | array | URL patterns to exclude from the crawl. |
maxDepth | integer | How many link-hops to follow from the seed URLs. 0 = only the seed URLs. Default 0. |
maxWaitSeconds | integer | Maximum seconds to wait for the crawl to finish before returning. Default 300. |
respectRobotsTxt | boolean | Honour the target site's robots.txt. Default false. |
scraper | string | "article" extracts the main article body (default); "full" extracts all visible page text. |
firescraper_scrape
Start a new crawl session and return its session ID immediately (does not wait for completion). Use this for large crawls, then poll with firescraper_get_session and fetch output with firescraper_get_results. Supports scheduled-style options like structured extraction and webhooks.
| Parameter | Type | Description |
|---|---|---|
name * | string | A human-readable name for this crawl. |
urls * | array | One or more seed URLs to crawl. |
contentSelector | string | CSS selector to restrict text extraction. |
extractionSchema | object | A JSON Schema object (with a top-level "properties" key) to extract structured fields from every page. |
ignoreUrls | array | URL patterns to exclude. |
maxDepth | integer | Link-hops to follow. 0 = seed URLs only. Default 0. |
minTextLength | integer | Drop pages with fewer than this many words. |
respectRobotsTxt | boolean | Honour robots.txt. Default false. |
scraper | string | "article" (default) or "full" page text. |
webhookUrl | string | URL to receive an HMAC-signed POST callback when the crawl finishes. |
firescraper_get_session
Get the current status and page counts of a crawl session by ID. Use to poll progress for a crawl started with firescraper_scrape.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session ID returned by firescraper_scrape. |
firescraper_list_results
List the export files available for a crawl session (each with a format and filename). Use after a crawl reaches a terminal status.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session ID to list results for. |
firescraper_get_results
Download a crawl session's output in a given format and return it as text. Use "markdown" for LLM-ready text, "documents"/"chunks" for JSONL artifacts, "extracted" for structured-schema output. Large payloads are truncated.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session ID to download results for. |
format | string | Result format. Default "markdown". |