mcp

v0.1.0
@firescraper/mcp Checked 2 days ago Published 5 months ago

Model 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.

ParameterTypeDescription
name *stringA human-readable name for this crawl, e.g. "Acme docs".
urls *arrayOne or more seed URLs to crawl.
formatstringOutput format to return. Default "markdown" (best for LLM consumption).
ignoreUrlsarrayURL patterns to exclude from the crawl.
maxDepthintegerHow many link-hops to follow from the seed URLs. 0 = only the seed URLs. Default 0.
maxWaitSecondsintegerMaximum seconds to wait for the crawl to finish before returning. Default 300.
respectRobotsTxtbooleanHonour the target site's robots.txt. Default false.
scraperstring"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.

ParameterTypeDescription
name *stringA human-readable name for this crawl.
urls *arrayOne or more seed URLs to crawl.
contentSelectorstringCSS selector to restrict text extraction.
extractionSchemaobjectA JSON Schema object (with a top-level "properties" key) to extract structured fields from every page.
ignoreUrlsarrayURL patterns to exclude.
maxDepthintegerLink-hops to follow. 0 = seed URLs only. Default 0.
minTextLengthintegerDrop pages with fewer than this many words.
respectRobotsTxtbooleanHonour robots.txt. Default false.
scraperstring"article" (default) or "full" page text.
webhookUrlstringURL 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.

ParameterTypeDescription
sessionId *stringThe 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.

ParameterTypeDescription
sessionId *stringThe 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.

ParameterTypeDescription
sessionId *stringThe session ID to download results for.
formatstringResult format. Default "markdown".