# Spicrawl [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/OfficialSpicrawl/mcp  
**GitHub Stars:** 5  
**npm Downloads (last month):** 3249  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/spicrawl

## Description
Web scraping to Markdown and structured data, screenshots, batch jobs and browser sessions.

## Tools
Capabilities this server exposes over MCP:

- **spicrawl_scrape** — Retrieve a web page and return its content as markdown (default), text, HTML, a JSON envelope, or a printed PDF. Handles the fetch vs. browser decision, charset decoding, and PDF-to-text for you. Optionally extract structured data with CSS selectors (`extract`) or `autoparse` (a natural-language `ai_extract` is coming soon), return discovered `links`, take a `screenshot`, or scope the DOM with `include_tags`/`exclude_tags`. Each successful call is billed in credits (a failure costs 0). Results are cached by default, and a cache hit is billed like the fetch that stored it (the cache saves time, not credits); set `cache=false` for time-sensitive pages. With the defaults it only reads the page. A `method` other than GET, HEAD or OPTIONS, and the `actions` that click, fill or run scripts on the page, can change state on the target site: set them only when the user asks for that. For markdown, text and HTML it returns `{ content }`. With `format: "json"`, or when `extract`, `ai_extract`, `autoparse`, `links`, `screenshot` or `network_capture` is set, it returns the JSON envelope: `content`, the site's `status`, `credits`, `engine` (the rendering tier: `fetch`, `js` or `browser`), `warnings` and `data` for extraction. Screenshots come back as image content blocks; each `screenshots` entry in the JSON keeps its metadata and says which block holds it. A PDF comes back as a resource content block, with its size, the rendering tier and the credits in the JSON.
- **spicrawl_batch_submit** — Submit many URLs to be scraped as one asynchronous job, with shared settings applied to every URL. Give EITHER `urls` or `items`, not both (at least one URL, unless `open` is true). Returns the job object (id, status, estimated_credits, progress). Poll with `spicrawl_batch_status`, read with `spicrawl_batch_results` or `spicrawl_batch_task_content`. Use this instead of many `spicrawl_scrape` calls when you have tens or thousands of URLs. Set `open: true` to keep the job accepting more URLs via `spicrawl_batch_add_items`; an open job never finishes until you call `spicrawl_batch_close`.
- **spicrawl_batch_list** — List this API key's project's batch jobs, newest first, with status and progress. Returns `{ batches: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page.
- **spicrawl_batch_status** — Return one batch job with its status and progress (total/completed/succeeded/failed/remaining, credits charged). Poll this after `spicrawl_batch_submit`; once status is `completed`, `failed` or `cancelled`, read `spicrawl_batch_results`.
- **spicrawl_batch_results** — Return a page of FINISHED items of a batch job (one record per item: seq, url, external_id, status, error, and content, or a `result_url` API path (GET /v1/batch/{id}/tasks/{seq}/content, same key) for large bodies). Unfinished items are not listed yet. Returns `{ results: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page. Results expire after the job's retention window (410 Gone).
- **spicrawl_batch_task_content** — Return the full payload one item of a batch job produced, by its `seq` (items are numbered from 0 in submission order). Cheaper than paging results when you need one URL's output. A CONFLICT error means either the item has not finished yet (poll `spicrawl_batch_status` and ask again) or it finished as failed (it will never produce content; the message says which). NOT_FOUND means no such seq.
- **spicrawl_batch_cancel** — Cancel a batch job: items not yet started are cancelled and will never run; items already finished keep their results; items already running finish first, so the job comes back `cancelling` and moves to `cancelled` when they drain. Cannot be undone — resubmit to run the URLs again. Returns the job object.
- **spicrawl_batch_retry** — Re-queue every FAILED item of a batch job so it runs again (succeeded items are untouched; a job with no failures is returned unchanged). Returns `{ job, items_reset, items_dispatched }`.
- **spicrawl_batch_add_items** — Append URLs to a batch job that was submitted with `open: true`. Same item vocabulary as `spicrawl_batch_submit` (EITHER `urls` or `items`, not both, plus shared settings for these new items). Fails with CONFLICT if the job is closed or finished. Not idempotent: calling twice adds the URLs twice. Returns `{ job, items_added, items_dispatched }`.
- **spicrawl_batch_close** — Stop an open batch job accepting items, so it completes once its queued work drains. Idempotent (closing a closed job succeeds). Returns the job object.
- **spicrawl_session_create** — Create a session: a persistent browser identity (cookie jar, localStorage, a fixed rendering tier and, by default, a sticky exit IP) that survives across scrapes. Use it for multi-step flows — log in, then fetch pages behind the login — by passing the returned `id` as `session_id` to every `spicrawl_scrape` call that should share the state. The rendering tier is fixed for the session's lifetime and every scrape on the session runs on it. Leave `engine` out and one is chosen for you. Release the session with `spicrawl_session_release` when done. Returns the session object (id, engine, status, sticky_key, proxy, expires_at).
- **spicrawl_session_list** — List this API key's project's sessions, newest first. Returns `{ sessions: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page. Never includes the stored credentials.
- **spicrawl_session_get** — Return one session's metadata: status, `engine` (its rendering tier), proxy/exit, usage count, expiry, lease holder, and a summary of its stored context. Never returns the credentials themselves (use spicrawl_session_context for that).
- **spicrawl_session_context** — Return the full stored state of a LIVE session — cookies, localStorage and other credentials — plus its fingerprint and domain scores. The `session_context` object can be passed to spicrawl_session_create to clone the session. The result contains secrets (login cookies): do not echo it to the user or logs unless asked.
- **spicrawl_session_release** — End a session when you are done with it: frees its exit IP and browser state; it can no longer be used with spicrawl_scrape. Its stored cookies and storage are purged and cannot be recovered; start a new session and log in again to continue. The record stays visible (status `released`) so its history can still be inspected. Refused while a scrape holds the session's lease unless `force` is true. Returns the session object.
- **spicrawl_session_delete** — Permanently delete a session and its stored state, including the record itself (prefer spicrawl_session_release if you only want to stop using it). Idempotent: deleting an already-deleted session succeeds. Refused while a scrape holds the session's lease unless `force` is true.
- **spicrawl_usage** — Billing-grade usage for your org over a date window, from the daily rollup (usage_daily), grouped by day, project, engine, feature or key. group_by=key returns per API key (key_id, name, prefix, project_id) counters per metric per day, from usage_key_daily; keyless (dashboard) usage is not in it, and a project-scoped key sees only its own project's keys. Use it to answer 'how many requests/credits did I use, and where'. The window defaults to the last 30 days including today; `to` is EXCLUSIVE (a single day 2026-08-01 is from=2026-08-01, to=2026-08-02) and the window may not exceed 400 days. The response carries stale_seconds (age of the newest rollup row; null when the window is empty). Requires the key to have the `read` scope.
- **spicrawl_usage_summary** — A compact current-period summary of your org's usage (totals as of now, from the daily rollup). No parameters. Use for a quick 'how much have I used so far'; use spicrawl_usage for a windowed breakdown. Requires the `read` scope.
- **spicrawl_usage_reconciliation** — Drift report for ONE day: re-derives usage from that day's request log and compares it with the billed daily rollup, so you can see whether the rollup missed or double-counted anything. Defaults to yesterday (UTC); today is still accumulating and would always show drift. Requires the `read` scope.
- **spicrawl_requests_list** — Recent API calls in your key's project, newest first, each with project_id, status, engine, http_status, error_code/error_detail, attempts, URL, proxy used, latency spans (queue/engine/upstream/total ms), block detection and credits. Use it to find failing calls (only_errors=true) or to spot patterns across a target. all_projects=true lists every project in your organization instead (needs a key with the `read` scope; 403 ERR::AUTH::INSUFFICIENT_SCOPE otherwise). Records only exist within the retention window reported in page.retention_hours / page.retained_since; an empty page means nothing in that window. Paginate by passing page.next_before and page.next_before_id back as before and before_id while page.has_more is true, keeping all_projects the same. Not billing-grade: use spicrawl_usage for totals.
- **spicrawl_request_get** — The full log record of one past API call by its request id. Every response carries its id in the X-Request-Id header (and error bodies carry it too), so this is the tool for debugging a failed or slow scrape: it shows status, error_code/error_detail, attempts, the engine and proxy (tier, country, provider, sticky) actually used, whether and how the target blocked it (vendor/signal/rule), per-stage latency spans and credits charged. Returns not_found both for unknown ids and for ones older than your retention window, and for another project's request unless your key has the `read` scope.
- **spicrawl_browser_connect_url** — Coming soon: remote browsers are not available yet, so minting fails; do not rely on this tool. For scripted page interaction today use `actions` on spicrawl_scrape. Mints a single-use connect URL for Spicrawl's remote browser (GET /v1/browser, a DevTools Protocol (CDP) WebSocket) so YOUR code can drive it with any CDP client, using the URL as the browser WebSocket endpoint. It calls POST /v1/browser/token and returns a ws:// or wss:// URL carrying a short-lived token, never the API key: the URL works ONCE, within 60 seconds, and only with the options given here (editing them in the URL is refused), so call this right before connecting and again for every new session. Prefer sending the key as an Authorization header when the client supports headers on the WebSocket upgrade: then connect to the plain /v1/browser URL with 'Authorization: Bearer <key>' and no token is needed. The endpoint exists only when the deployment was installed with --with-cdp, and the key must carry the `browser` scope; otherwise minting fails (404 or 403). Parameter errors are reported when minting.
- **spicrawl_docs_search** — Full-text search over the Spicrawl documentation (guides, API reference, errors, limits). Use it to look up a parameter name, value or combination for a spicrawl_* tool, or to explain an error a spicrawl_* tool returned: search the error code itself (e.g. `ERR::UPSTREAM::CHALLENGE`) and the result also carries a direct link to that code's entry on the errors page. Returns the best-matching pages, each with its title, the matching sections (heading, a short snippet, URL) and md_url; then call spicrawl_docs_read with a page's md_url or url to read it in full.
- **spicrawl_docs_read** — Fetches one Spicrawl documentation page as Markdown. `path` may be a page path (`guides/anti-bot`), a docs URL from spicrawl_docs_search (url or md_url), or either with a `#anchor` (the whole page is returned; the anchor names the section to look at). Only pages on the Spicrawl docs (https://docs.spicrawl.com) can be read. Pages over 60000 characters are truncated, and the text says so. Don't know the path? Use spicrawl_docs_search, or spicrawl_docs_index (llms.txt) for the list of every page.
- **spicrawl_docs_index** — The docs' llms.txt: every Spicrawl documentation page with its title, a one-line description and its Markdown URL. Use it to find the right page when a search does not, or to get an overview of what is documented; read a page with spicrawl_docs_read. No parameters.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "spicrawl": {
    "command": "npx",
    "args": ["-y","@spicrawl/mcp"],
    "env": {
      "SPICRAWL_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `SPICRAWL_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Spicrawl does

Spicrawl turns web pages into content that an MCP-compatible agent can inspect. The main `spicrawl_scrape` tool can return cleaned Markdown, plain text, HTML, a JSON response envelope, or a printed PDF. It can also return links, screenshots, page metadata, and structured fields selected with CSS selectors or inferred from published JSON-LD, OpenGraph, Twitter Card, and microdata.

The scraper handles the choice between a direct fetch, JavaScript rendering, and a full browser flow. Browser actions can click, fill forms, wait, scroll, select options, evaluate scripts, wait for navigation, and capture screenshots. Requests are read-only by default, but non-GET methods and state-changing actions can modify a target site, so they should be used only when the workflow requires them.

## How it works

Each request runs under the configured Spicrawl API key and consumes credits when successful. Results are cached by default; cached responses still consume credits at the rate of the request that created them, while `cache: false` forces a fresh read. The response can report the rendering tier used, status, credits, warnings, and extraction data. Screenshots are returned as MCP image blocks and PDFs as resource blocks.

For larger workloads, `spicrawl_batch_submit` creates an asynchronous job for many URLs. Poll with `spicrawl_batch_status`, then page through completed output with `spicrawl_batch_results` or fetch one item with `spicrawl_batch_task_content`. Jobs can be listed, cancelled, retried, extended while open, and closed after URL discovery. Batch results expire after the job's retention period.

Sessions preserve a browser identity across calls, including cookies and local storage. Create one with `spicrawl_session_create`, pass its ID to subsequent scrape calls, and release or delete it when finished. Session context can be inspected or cloned, but it contains login credentials and should not be exposed in logs or agent responses.

## Setup and configuration

Create a Spicrawl API key, then use the hosted MCP endpoint:

```text
https://mcp.spicrawl.com/mcp
```

Authenticate requests with `Authorization: Bearer <key>`. The hosted service uses MCP Streamable HTTP and requires no local installation. For clients that launch local processes, run the package over stdio with Node.js 20 or newer:

```bash
npx -y @spicrawl/mcp
```

Set `SPICRAWL_API_KEY` in the local process environment. Both transports expose the same `spicrawl_*` tools and apply the key's scopes, limits, and credit usage.

## Tools and capabilities

- Scrape one URL as Markdown, text, HTML, JSON, or PDF.
- Render JavaScript pages and perform typed browser actions.
- Extract structured values with selector maps or automatic metadata parsing.
- Capture screenshots and discover page links.
- Submit, monitor, page, retry, cancel, extend, and close asynchronous batch jobs.
- Create, inspect, clone, release, and delete persistent browser sessions.
- Review usage totals, daily breakdowns, reconciliation data, recent request logs, and individual request details.
- Search and read Spicrawl documentation from within an agent.

## Limitations and notes

A plain scrape reads the target by default, while methods other than GET, HEAD, or OPTIONS and interactive actions may change site state. Check a site's terms and `robots.txt` before scraping. Large batch result bodies may be returned through a separate content path, and unfinished items are not included in paged results. The remote browser connection tool is not available yet; scripted interaction should use scrape actions instead. Usage reporting requires the `read` scope, and browser connection minting requires the `browser` scope where that deployment capability exists.

_Full upstream README: https://allmcps.com/mcp/spicrawl/readme_

