mcp

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

Model Context Protocol (MCP) server for FireScraper.

FireScraper is web scraping built for AI workflows: flat 1-credit-per-page pricing (no multipliers), credits that never expire, structured extraction, scheduled crawls, and webhooks. This package puts all of that one tool-call away inside your agent. 1. Get an API key Create one at firescraper.com → Settings → API Keys. Keys start with fsk_. New accounts include 1,000 free crawl units — no credit card required. The server runs over stdio and is published on npm, so npx is all you need — no global install.

Summary extracted from the README.

@firescraper/mcp

The FireScraper Model Context Protocol server. Give Claude, Cursor, Windsurf, and any MCP-compatible AI agent the ability to crawl websites and turn them into clean, LLM-ready text — directly from the conversation.

FireScraper is web scraping built for AI workflows: flat 1-credit-per-page pricing (no multipliers), credits that never expire, structured extraction, scheduled crawls, and webhooks. This package puts all of that one tool-call away inside your agent.

You:    "Crawl https://docs.stripe.com and summarize their webhooks guide."
Agent:  → firescraper_scrape_and_wait({ urls: ["https://docs.stripe.com"], maxDepth: 1 })
        ← clean markdown for every page, ready to reason over.

Quick start

1. Get an API key

Create one at firescraper.com → Settings → API Keys. Keys start with fsk_. New accounts include 1,000 free crawl units — no credit card required.

2. Add the server to your MCP client

The server runs over stdio and is published on npm, so npx is all you need — no global install.

Claude Code

claude mcp add firescraper --env FIRESCRAPER_API_KEY=fsk_your_key -- npx -y @firescraper/mcp

Claude Desktop / Cursor / Windsurf

Add to your MCP config (claude_desktop_config.json, ~/.cursor/mcp.json, etc.):

{
  "mcpServers": {
    "firescraper": {
      "command": "npx",
      "args": ["-y", "@firescraper/mcp"],
      "env": {
        "FIRESCRAPER_API_KEY": "fsk_your_key"
      }
    }
  }
}

Restart the client. You should now see the FireScraper tools available.


Tools

Tool What it does
firescraper_scrape_and_wait Crawl URLs and return the extracted text in one call. The easiest path — best for small/medium crawls.
firescraper_scrape Start a crawl and return a session ID immediately (for large jobs). Supports structured extraction & webhooks.
firescraper_get_session Poll a crawl's status and page counts.
firescraper_list_results List the export files available for a session.
firescraper_get_results Download a session's output in a chosen format (markdown, json, jsonl, documents, chunks, extracted, …).

firescraper_scrape_and_wait

The one-shot tool most agents will reach for.

Param Type Default Notes
name string — Human-readable crawl name.
urls string[] — One or more seed URLs.
maxDepth number 0 Link-hops to follow. 0 = only the seed URLs.
scraper article | full article Article body vs. full visible text.
format markdown | json | jsonl | documents | chunks markdown Output format.
ignoreUrls string[] — URL patterns to exclude.
respectRobotsTxt boolean false Honour the site's robots.txt.
maxWaitSeconds number 300 Max seconds to wait for completion.

firescraper_scrape

For large crawls. Returns a sessionId immediately. Extra params: minTextLength, contentSelector, extractionSchema (a JSON Schema object for structured extraction), and webhookUrl (HMAC-signed completion callback).

Tip: structured extraction — pass an extractionSchema with a top-level properties key and fetch the extracted format to get typed fields from every page.


Configuration

Env var Required Description
FIRESCRAPER_API_KEY ✅ Your fsk_ API key.
FIRESCRAPER_BASE_URL — Override the API base URL (default https://firescraper.com). For self-hosted/enterprise.

How it works

This server is a thin MCP wrapper around the official @firescraper/sdk. Every tool maps to a FireScraper REST API call authenticated with your key. Crawled text is returned inline (large payloads are truncated with a note — fetch the full file via the API or dashboard for very large crawls).

Pricing

FireScraper charges 1 credit per page, always — no per-feature multipliers, and credits never expire. The free tier includes 1,000 crawl units. See firescraper.com/pricing.

License

MIT © Moloks Technologies