# crawlbrulee/crawlbrulee-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/crawlbrulee/crawlbrulee-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1448  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/crawlbrulee-crawlbrulee-mcp

## Description
EU-native web scraping for AI agents. scrape pages, map sites, run background jobs, check usage.

## Tools
Capabilities this server exposes over MCP:

- **scrape** — Fetch a single URL via the crawlbrulee scraping API and return the requested content (markdown, cleaned HTML, raw HTML, links, images, screenshot, page metadata in `metadata`). Use this for one-shot page extraction. For full-site discovery use the `map` tool first. To pull named values such as prices, titles or links, set `extract.elements` (name → CSS selector) instead of reading the whole markdown: they come back in `elements`, for no extra credits. Rules: https://crawlbrulee.com/docs/scrape/elements. Check `page_status_code` before you trust the content: it is the HTTP status the site answered with for the final page. A page the site served is a successful result whatever its status, so a 404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the site's "not found" page, not the page you asked for. 2xx and 4xx pages are billed, except 403, 407, 408, 429 and 451; 5xx pages are never billed. If the site cannot be reached at all the tool returns a `target_unreachable` error (HTTP 502, not billed): retry later or check the URL. Screenshot URLs in the response are signed download links that expire 24 hours after the scrape: download the image if you need it later; do not keep the link. The response also carries `response_meta.usage`: `total_credit_cost` = `engine_credit_cost` × `proxy_multiplier` + `screenshot_slicing_credit_cost` + `zero_data_retention_credit_cost`, plus `engine` and `proxy` (the resolved tier — never `auto`). `engine` is the billed engine (`http`, `browser`, `screenshot`, `cache`); a cache hit is represented by `engine: "cache"`. Set `zero_data_retention: true` to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a `zero_data_retention_not_enabled` error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. Extraction is capped per page: 30,000 links, 10,000 inline images and 10,000,000 characters of HTML. A page past a cap is truncated rather than refused, and the response `warnings` array names which one (`links_truncated`, `inline_images_truncated`, `raw_html_truncated`) — so treat that output as incomplete. `elements_truncated` means an `elements` value hit a limit. Use `cleanup` to control what is removed before any output is built: `ads_and_popups` (on by default) drops ads, cookie banners and chat widgets, and `exclude_selectors` removes anything else. It shapes markdown, cleaned_html, links, images and the screenshot, and NEVER `raw_html` — so request `raw_html` when you need the page exactly as it arrived. `warnings` also reports a section whose extraction failed outright (`links_unavailable`, `inline_images_unavailable`, `metadata_unavailable`): that field comes back omitted or empty while the rest of the scrape succeeded, so do NOT conclude the page had no links/images/metadata — re-run the scrape instead. An empty field with no such warning does mean the page had none. `screenshot_unavailable` means a screenshot was asked for, but the page came back from the http engine without one.
- **scrape_async** — Submit a scrape job to run ASYNCHRONOUSLY and return a `job_id` immediately, instead of holding the connection open. Use this for long-running scrapes (heavy JS rendering, full-page screenshots of long pages) — for a quick one-shot fetch prefer the synchronous `scrape` tool, which blocks and returns the page directly. Poll the job with `scrape_status` and fetch the page with `scrape_result` once done. Takes `extract.elements` like `scrape` (named values by CSS selector, no extra credits); the result carries them in `elements`. Rules: https://crawlbrulee.com/docs/scrape/elements. Optionally attach a per-job completion `webhook`: we deliver a single signed `scrape.complete` POST to your endpoint when the job finishes (HTTPS required in production), and echoes your opaque `webhook.metadata` back in the delivery (under `data.metadata`, alongside `data.page_status_code` (on success) and `data.response_meta.usage`). Set `zero_data_retention: true` to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a `zero_data_retention_not_enabled` error, not billed). See https://crawlbrulee.com/docs/zero-data-retention.
- **scrape_status** — Look up the current lifecycle status of an async scrape job submitted via `scrape_async`. Returns the job state (`pending`, `running`, `done`, `failed`), with an `error` message when it failed and a `response_meta.usage` block (total_credit_cost and its parts, billed engine, resolved proxy tier) once it is `done`. A job whose page the site served ends `done` even when that page is a 404 or 503 — read `page_status_code` in the result. A job that could not reach the site at all ends `failed` (the `error` text is a general message, not the reason) and is not billed; retry later or check the url. Poll this until the status is `done`, then call `scrape_result` to fetch the page. If you registered a completion webhook on submit you can skip polling and react to the delivery instead. A job answers for 24 hours after it was submitted; after that this returns `not_found`, the same as for an unknown job id.
- **scrape_result** — Fetch the extracted content of a completed async scrape job (the same result shape as the synchronous `scrape` tool: markdown, cleaned HTML, raw HTML, links, images, screenshot, page metadata in `metadata`, values from `extract.elements` in `elements`, and `response_meta.usage`). Errors if the job is still `pending`/`running` — check `scrape_status` first (status `done`) before calling this. Check `page_status_code` before you trust the content: it is the HTTP status the site answered with for the final page. A page the site served is a successful result whatever its status, so a 404 or 503 page comes back with its content, not as an error. A 404 means the markdown is the site's "not found" page, not the page you asked for. 2xx and 4xx pages are billed, except 403, 407, 408, 429 and 451; 5xx pages are never billed. A job answers for 24 hours after it was submitted, then returns `not_found`. Screenshot URLs are signed download links that expire at the same moment, however late you fetch the result: download the image if you need it later.
- **map** — Build (or fetch a cached) link-map for a website by combining sitemap discovery with homepage link extraction. Returns paginated lists of discovered URLs, each item just { url }. Filterable by link type (internal / external / subdomain). Use this to enumerate a site before scraping selected pages. `max_urls` (default 5000, max 100000) is a discovery budget, not a trim at the end: discovery stops as soon as that many URLs are found, so a smaller value is a faster, cheaper crawl. A map stopped that way returns exactly `max_urls` links with `response_capped` false — the signal that the site has more is `response_meta.truncation.discovery_cap_reason`. When that is "max_urls", ask again with a higher `max_urls` to get more; "unread_files" means a sitemap file could not be read this time and is often temporary, so asking again later can return more; "time", "file_budget", "depth" and "file_size" mean the site itself is big, slow or deep and a retry will not help. `discovery_capped` says discovery stopped early, `sitemaps_skipped` how many sitemap files were skipped or only partly read. `limit` (default 5000, max 10000) only pages the answer. Set `zero_data_retention: true` to keep the result out of the shared cache; anything stored to deliver it is kept for 24 hours, then deleted. It adds 1 credit and must be enabled for the organization (else a `zero_data_retention_not_enabled` error, not billed). See https://crawlbrulee.com/docs/zero-data-retention. Returned URLs are normalized the same way `scrape` normalizes its returned `url`, so map-then-scrape stays on one host. Results are ordered with the most useful links first. The response carries `response_meta.usage`: `total_credit_cost` = `engine_credit_cost` × `proxy_multiplier` + `zero_data_retention_credit_cost`, plus `engine` and `proxy` (the resolved tier, never `auto`). Map has no screenshot slicing and no `page_status_code`: it reads many files, not one page. A map that found nothing because the site answered only with statuses we don't bill (a 5xx, for example), or not at all, is empty and free. If the site cannot be reached, the tool can return a `target_unreachable` error (HTTP 502, not billed): retry later or check the URL.
- **usage** — Return the current billing-cycle usage for the authenticated organization: total / used / available credits, used quota percent, max concurrency, and cycle reset time. Call this before launching large scrape jobs to confirm available credit.
- **whoami** — Return the organization name, token name, and truncated token preview for the API key currently configured on the MCP server. Useful for confirming which account is in use before performing credit-consuming operations.

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

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

**Requires environment variables:** `CRAWLBRULEE_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 crawlbrulee/crawlbrulee-mcp does

crawlbrulee/crawlbrulee-mcp exposes Crawlbrulee's web scraping functions as MCP tools for agents and developer workflows. A synchronous scrape can return markdown, cleaned HTML, raw HTML, links, images, screenshots, and page metadata. The server also supports named extraction: provide a CSS selector for values such as headings, prices, or links, and receive them under matching names without an additional credit charge.

For broader discovery, `map` combines sitemap reading with homepage-link extraction and returns normalized URLs in pages. The result can be filtered for internal, external, or subdomain links. `usage` reports the authenticated organization's credit balance and concurrency information, while `whoami` identifies the organization and token associated with the configured API key.

## How it works

The server runs over stdio and uses the Crawlbrulee SDK behind the MCP adapter. `scrape` is intended for immediate fetches. Longer operations, including heavy JavaScript rendering or large full-page screenshots, can be submitted with `scrape_async`; poll with `scrape_status`, then retrieve the completed payload with `scrape_result`. A completion webhook can replace polling for asynchronous jobs.

Scrape responses expose the final page's HTTP status separately from tool-level failures. A served 404 or 503 is returned as content with its status, whereas a target that cannot be reached produces a `target_unreachable` error. Responses also include the resolved engine, proxy tier, and credit calculation. The service can clean ads, cookie banners, chat widgets, and selected CSS regions before building most outputs; raw HTML remains unmodified by that cleanup.

## Setup and configuration

Create a Crawlbrulee API token, place it in the environment, and launch the package with an MCP host:

```bash
export CRAWLBRULEE_API_KEY="cwbl_..."
npx -y @crawlbrulee/mcp
```

The sole required environment variable is `CRAWLBRULEE_API_KEY`. The server reads it when the first tool is called, so authentication errors appear as tool errors rather than preventing startup. Claude Code can register the command directly with `claude mcp add crawlbrulee -- npx -y @crawlbrulee/mcp`; other stdio hosts use the same executable and may place the variable in their configuration.

## Tools and capabilities

- `scrape`: Fetch one URL and select output types, rendering, proxy, location, caching, cleanup, screenshots, or named CSS-selector extraction.
- `scrape_async`: Start a long-running scrape and optionally register a signed completion webhook.
- `scrape_status`: Check whether an asynchronous job is pending, running, complete, or failed.
- `scrape_result`: Retrieve the output of a completed asynchronous job.
- `map`: Discover and paginate site URLs with discovery budgets and link-type filters.
- `usage`: Inspect cycle credits, quota percentage, concurrency, and reset timing.
- `whoami`: Confirm the organization, token name, and shortened token preview for the configured key.

## Limitations and notes

Large responses can be truncated: limits include 30,000 links, 10,000 inline images, and 10,000,000 HTML characters. Check `warnings` for truncation or unavailable sections before treating output as complete. Screenshot links are signed and expire after 24 hours. Asynchronous jobs and their results are also available for 24 hours.

Zero-data-retention mode excludes results from the shared cache, keeps delivery data for 24 hours, and adds one credit; the organization must enable it first. Map discovery and scrape operations report credit usage, and page billing depends on the returned status and selected engine. Use `page_status_code` to distinguish requested content from a site's error page.

_Full upstream README: https://allmcps.com/mcp/crawlbrulee-crawlbrulee-mcp/readme_

