Skip to main content
Glama

🍮 crawlbrulee mcp

npm license

EU-native web scraping for AI agents & developers.

plug crawlbrulee into your agent. the official mcp server for crawlbrulee gives mcp-aware agents — Claude Code, Codex, Cursor, Claude Desktop — native tools to scrape pages, map sites, run background jobs, and check usage. one call turns any url into clean markdown, screenshots, metadata and links.

  • everything runs in the EU. the fetch, the render, the cache and your result never leave EU servers. the proxy exit is the one hop you choose: pick an EU exit and nothing leaves at all. gdpr-aligned, with a data processing agreement.

  • output made for models. markdown with ads, popups and cookie banners removed and the links kept, ready for the prompt. full-page screenshots can come back as tiles sized for an image model.

  • the hard parts, handled. headless Chrome when a page needs it, rotating proxies with country selection, automatic retries, ad and cookie-banner removal, caching, background jobs and signed webhooks.

  • start free. 750 credits, no credit card.

get a free api key → dashboard.crawlbrulee.com

the server:

  • npx-runnable — zero install.

  • wraps the @crawlbrulee/sdk under the hood; this mcp is just a thin protocol adapter.

  • stdio transport for terminal-based agents.

  • strict, fully-described tool schemas — agents see what every parameter does without reading docs.

this readme covers the mcp server itself — its tools and how to wire it into a host. for how the api behaves — endpoints, parameters, and error semantics — please see our api docs.


install

1. get a key. if you don't have a crawlbrulee account, sign up. the free plan needs no credit card. then, in the dashboard menu, open tokens and click create token.

2. put it in your environment. add it to your shell profile (for example ~/.zshrc), then open a new terminal and start your agent from it. don't paste the key into your agent's chat: anything in the chat stays in its history.

export CRAWLBRULEE_API_KEY="cwbl_..."

3. add the server, with no key in its config. in Claude Code:

claude mcp add crawlbrulee -- npx -y @crawlbrulee/mcp

other stdio hosts run the same command: npx -y @crawlbrulee/mcp. a few of them (Codex, Cursor, Windsurf, Gemini CLI, Claude Desktop) need the key or the variable named in their config file, and VS Code and the Claude Code plugin can ask for the key in a masked prompt. the file and the entry for each one: mcp setup in the docs.

if a key stops working (invalid_credentials), it's expired, revoked or mistyped: create a new one the same way, replace the old one, and start your agent again.

Related MCP server: snoopscan

configuration

env var

required

description

CRAWLBRULEE_API_KEY

yes

api key sent as Authorization: Bearer …. see install for how to get one.

the mcp reads the env var on first tool invocation — not at startup — so a typo in your config surfaces as a clear tool-error message rather than the server failing to come up. see authentication for how the api consumes keys.


tools

scrape

fetch a single url and return the requested content (markdown, cleaned html, raw html, links, images, screenshot, pdf, page metadata).

input — only url is required; everything else has sane defaults.

{
  "url": "https://example.com",
  "extract": {
    "markdown": true,
    "links": true,
    "screenshot": { "type": "full_page", "device_mode": "desktop" },
  },
  "require_js": false,
  "proxy": "basic",
  "cleanup": { "ads_and_popups": true, "exclude_selectors": ["nav", "footer"] },
  "cache": { "max_age": 3600 },
  "location": { "locale": "en-US", "country": "US" },
  "zero_data_retention": false,
}

zero_data_retention (boolean, default false) keeps 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 your organization. scrape_async takes it too. see zero data retention.

named values with extract.elements. to pull a few values from a page — prices, titles, links — give each one a name and a CSS selector, instead of reading the whole markdown. they come back in elements under the same names. all: true returns every match as a list, and fields reads named values inside each match (:scope reads the match itself). markdown and metadata stay on unless you turn them off, as the example does. it costs no extra credits. scrape_async takes it too.

{
  "url": "https://shop.example.com/books/",
  "extract": {
    "markdown": false,
    "metadata": false,
    "elements": {
      "heading": "h1",
      "books": {
        "selector": "article.book",
        "all": true,
        "fields": {
          "title": { "selector": "h3 a", "output": "attribute", "attribute": "title" },
          "price": ".price",
        },
      },
    },
  },
}
// → "elements": {
//     "heading": "Books",
//     "books": [{ "title": "The Night Garden", "price": "€18.90" }, ...]
//   }

a name with no match is null (or [] with all: true). limits and selector rules: see targeted extraction.

your own headers and cookies with headers and cookies. send your own HTTP headers and cookies to the site, for example an Authorization header or a fixed User-Agent that a site has on its allowlist. headers go only to the origin of url (or its https version, for an http url) and cookies only to its host, never to another site on a redirect. up to 10 headers and 20 cookies. a request with headers or cookies never reads from or writes to the cache, and costs the same as a normal fresh scrape. scrape_async takes them too.

{
  "url": "https://app.example.com/orders",
  "headers": { "Authorization": "Bearer ...", "X-Tenant-Id": "acme" },
  "cookies": [{ "name": "session_id", "value": "a1b2c3" }],
}
WARNING

header and cookie values pass through your chat with the AI, so the AI host may keep them in its history. use short-lived tokens or a test account, and never a password you can't change.

your own User-Agent can lower the success rate, and the response then carries the custom_user_agent warning. never put secrets in the User-Agent. the limits and which headers can't be set: see headers and cookies.

save the page as a pdf with extract.pdf. you get a real document, with text you can select and links that work. {} takes every default: the page on a4 sheets, as it looks on screen. a pdf costs what a screenshot costs, and a pdf and a screenshot in one request are billed once. scrape_async takes it too.

{
  "url": "https://example.com/report",
  "extract": {
    "markdown": false,
    "metadata": false,
    "pdf": { "layout": "pages", "paper": "letter", "landscape": false, "media": "print" },
  },
}
// → "pdf": { "url": "https://...", "bytes": 48213 }

option

values

default

what it does

layout

pages | single_page

pages

pages puts the page on sheets of paper. single_page makes one page as tall as the web page, up to 15,000 px.

paper

a4 | letter

a4

paper size. only with pages.

landscape

true | false

false

turn the paper sideways. only with pages.

media

screen | print

screen

print uses the site's own print style, which on many sites hides menus and images.

the pdf link is a signed link that expires 24 hours after the scrape, like a screenshot link: download the file and keep it, not the link. a cached copy answers only when it has a pdf made with the same settings; cache.max_age: 0 always makes a new one. in rare cases the pdf can't be made: you still get the rest of the scrape, with the pdf_unavailable warning, and the request costs what it costs without the pdf.

dark-theme screenshots with color_scheme. set extract.screenshot.color_scheme to dark to ask the site for its dark theme. a site with no dark theme looks the same as with light, the default. it costs no extra credits. when the request also asks for extract.pdf, the pdf shows the dark theme too; a pdf on its own is made with the light theme.

{
  "url": "https://example.com",
  "extract": { "screenshot": { "type": "viewport", "color_scheme": "dark" } },
}

output — full scrape result. page metadata (title, OG tags, etc.) is returned under metadata. extracted images are returned as absolute urls — query strings are preserved, and relative srcs are resolved against the page url. screenshots and pdfs are returned as signed download urls the agent can fetch separately. in rare cases a screenshot can't be captured: when you requested other outputs too, the screenshot field is left out while the rest is still returned. a screenshot-only call (every other format off: markdown: false and metadata: false, and no cleaned_html, raw_html, links, images or elements) that can't deliver errors instead (unsupported_screenshot_output, HTTP 422, when the content type can't be screenshotted) and isn't billed. a pdf-only call works the same way, with unsupported_pdf_output. when no capture could be made at all, such a call fails with internal_server_error (HTTP 500), also not billed. a scrape_async job that asks only for a screenshot, a pdf or both and gets none ends failed and isn't billed: scrape_result then returns the same unsupported_screenshot_output or unsupported_pdf_output, or job_failed when the capture could not be made. the result also carries page_status_code and a top-level response_meta.usage block:

{
  "url": "https://example.com",
  "requested_url": "https://example.com",
  "page_status_code": 200, // the site's own HTTP status for the final page
  "markdown": "...",
  "metadata": { "title": "Example Domain" },
  "response_meta": {
    "usage": {
      // total_credit_cost = engine_credit_cost × proxy_multiplier + screenshot_slicing_credit_cost + zero_data_retention_credit_cost
      "total_credit_cost": 1,
      "engine_credit_cost": 1, // http 1, browser 3, screenshot 5, cache 0
      "proxy_multiplier": 1, // basic 1, advanced 5
      "screenshot_slicing_credit_cost": 0, // 1 when the screenshot was split into slices, otherwise 0
      "zero_data_retention_credit_cost": 0, // 1 when zero_data_retention added its credit, otherwise 0
      "engine": "http", // "http" | "browser" | "screenshot" | "cache"
      "proxy": "basic", // resolved tier actually used: "basic" | "advanced" (never "auto")
    },
  },
}

a page the site served is a result, not an error. page_status_code is the HTTP status the site answered with for the final page, after redirects. a 404, 410 or 503 page comes back with its content and its status here, so check page_status_code before you trust the content: a 404 means the markdown is the site's "not found" page. 2xx and 4xx pages are billed, except 403, 407, 408, 429, 444 and 451; 5xx pages are never billed. when the site can't be reached at all, the tool returns a target_unreachable error instead (see errors).

alongside response_meta.usage, the result surfaces any non-fatal warnings — stable string codes an agent can switch on. an outsized page is truncated rather than refused, and the code names which part was cut:

code

what it means for the payload

screenshot_truncated

the page was taller than the scrolling-capture height cap; the screenshot covers the top of the page.

links_truncated

the page had more than 30,000 links; the links array is cut at the cap and is incomplete.

inline_images_truncated

the page had more than 10,000 inline images; the images array is cut at the cap and is incomplete.

raw_html_truncated

the page body exceeded 10,000,000 characters; raw_html is cut at a tag boundary, never mid-tag.

elements_truncated

an elements value hit a limit; see targeted extraction.

more codes are not about size. screenshot_unavailable means a screenshot was asked for, but the page came back from the http engine without one; the rest of the result is still there. pdf_unavailable means the same for a pdf. pdf_single_page_overflow means a single_page pdf was taller than 15,000 px, so it goes on over more pages. custom_user_agent means the request set its own User-Agent header; this can lower the success rate.

and if you requested an extract that doesn't apply to the content type (e.g. metadata of a JSON file), the field name comes back in an unsupported_fields list — with the rest of the payload still returned.

every input field, its default, and its constraints are documented under the scrape endpoint — with extraction, screenshots, proxies & location, and caching covering the individual blocks.

scrape_async

submit a scrape job to run asynchronously and get back 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. then poll scrape_status until the job is done and fetch the page with scrape_result.

takes the same input as scrape plus an optional per-job completion webhook:

{
  "url": "https://example.com",
  "extract": { "markdown": true },
  "webhook": {
    // Endpoint that receives one signed `scrape.complete` POST when the job
    // finishes. http/https (HTTPS required in production), max 2048 chars.
    "url": "https://hooks.example.com/cwbl",
    // Opaque correlation object echoed back verbatim in the delivery's
    // `data.metadata`. Serializes to at most 2048 bytes.
    "metadata": { "ref": "order-42" },
  },
}

output — { "job_id": "..." }.

when a webhook is attached, we deliver a single signed scrape.complete POST to your endpoint once the job reaches a terminal state, with your metadata echoed under data.metadata and the job's usage under data.response_meta.usage — so you can react to completion (and track cost) without polling. verify the X-Cwbl-Signature header with the sdk's verifyWebhookSignature (configure the signing secret in the dashboard under account → webhooks).

the job lifecycle is documented under async scrape; the delivery contract and payload shape under webhooks, with the signature scheme in webhook verification.

scrape_status

look up the current lifecycle status of an async job: pending, running, done, or failed (with an error message when failed). once the job is done the response also carries a response_meta.usage block (total_credit_cost and its parts, billed engine, resolved proxy tier). a cache hit is represented by engine: "cache". a job whose page the site served ends done even when that page is a 404 — read page_status_code in the result. a job that asked only for a screenshot, a pdf or both and got none ends failed, not billed; scrape_result names the reason. poll until done, then call scrape_result.

{ "job_id": "..." }

scrape_result

fetch the extracted content of a completed async job — the same result shape as the synchronous scrape tool (including page_status_code, metadata, elements and response_meta.usage). errors if the job is still pending/running, so check scrape_status first. a failed job returns job_failed, or unsupported_screenshot_output / unsupported_pdf_output for a capture-only job on a content type that can't be captured.

{ "job_id": "..." }

map

build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. use this to enumerate a site before scraping selected pages. every link is { url, type, lastmod }: type is page, sitemap or sitemap_index (a sitemap file that lists other sitemap files), and lastmod is the entry's date from the sitemap, in UTC, or null when the sitemap gives none. a link found on the home page is a page with lastmod: null. a sitemap_index is a file the map found to be an index. sitemap is a file that lists pages, or one the map did not open (past depth, or it could not be read). read either kind with sitemap_url in another call.

a plain map ({ "url": "https://example.com" }) returns pages. it reads the site's top sitemap files and two levels of nested ones, and adds the links on the home page.

field

values

default

what it does

sitemap_url

a full http or https address

none

start from this sitemap file. it must be on the same site as url, or on a host the site's robots.txt names, such as a CDN. left out: start from the site's own top sitemap files.

depth

0 to 3

3

how many levels of nested sitemaps to follow (see below).

entries

pages | sitemaps | all

pages

what to return: page addresses, sitemap files (sitemap or sitemap_index), or both.

modified_since

a date, or ISO 8601 with a zone

none

only entries whose lastmod is at or after it (see below).

max_results

1 to 100000

5000

the most entries the map finds, counting only the kind in entries. a discovery budget, not a trim at the end (see below).

limit

1 to 10000

5000

links per page of the answer. it only pages the answer.

sitemap_only

true | false

false

use the sitemaps only: leave out the links found on the home page.

max_results stops discovery as soon as that many entries of the asked kind are found, so a smaller value is a faster, lighter map. a map stopped that way returns exactly that many links with response_capped: false. the signal that the site has more is truncation.discovery_cap_reason.

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 site root is listed only when a sitemap lists it.

the response's response_meta carries pagination, truncation, and a usage block (total_credit_cost = engine_credit_cost × proxy_multiplier + zero_data_retention_credit_cost, billed engine, resolved proxy tier). map has no screenshot slicing and no page_status_code, since 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.

{
  "url": "https://example.com",
  "sitemap_only": false,
  "types": { "internal": true, "external": false, "internal_subdomains": true },
  "max_results": 5000,
  "page": 1,
  "limit": 1000,
  "zero_data_retention": false,
}

zero_data_retention works as it does on scrape (see zero data retention).

{
  "truncation": {
    "storage_capped": false,
    "response_capped": false,
    "total_before_max_results": 5000,
    "total_detected_before_storage_cap": 5000,
    "discovery_capped": true, // discovery stopped before reading every sitemap file
    "sitemaps_skipped": 3, // files skipped or only partly read
    "unread_sitemaps": [], // sitemap files this call did not read whole
    "discovery_cap_reason": "max_results", // retry with a higher max_results
  },
}

discovery_cap_reason is one of these, or null when nothing stopped discovery:

  • max_results: your own max_results was reached. ask again with a higher one to get more.

  • depth: there are sitemap files past the depth you asked for. they are in unread_sitemaps. this is the answer to the depth you chose, not a fault. read each one with sitemap_url, or ask with a higher depth.

  • unread_files: a sitemap file could not be read whole this time. when its download broke off, the links received before the break are returned, and the file is in unread_sitemaps. often temporary, so asking again later can return more.

  • time, file_budget, file_size: the site is big or slow, and a retry will not help. with file_size, a file of pages that turns out too large while it is read gives the links in its first part. a file that says up front that it is over the size limit, or any other file that turns out too large (such as a sitemap index), gives nothing and is in unread_sitemaps.

map a very large site in several calls

a very large or deep site is mapped in several calls. first ask with depth: 1 and entries: "sitemaps": one call lists the site's top sitemap files and every file they list. a listed file shows as sitemap until a map reads it, even when it is an index. then read each link of type sitemap, plus each sitemap_index link that is also in truncation.unread_sitemaps (an index this map read only in part), with sitemap_url, one file per call: the files of an index read whole are already in your list. or ask with a higher depth. the full walk-through is in map a very large or deep site in several calls.

// 1. list the site's top sitemap files and every file they list
{ "url": "https://example.com", "depth": 1, "entries": "sitemaps" }
// 2. read one of them: a `sitemap` link, or a `sitemap_index` link that is also in unread_sitemaps
{ "url": "https://example.com", "sitemap_url": "https://example.com/sitemap-products-1.xml.gz" }

modified_since leaves out every entry with no lastmod, and a map with it is always fresh, so cache.max_age does nothing. every sitemap file is read whatever its own date, and each entry is judged by its own lastmod. with entries: "sitemaps" a file is returned by its own date, not by the dates of the pages in it, so ask with entries: "pages" to find the pages that changed. see find what changed since a date.

if the site answers 429 on the file in sitemap_url, on its robots.txt or on one of its top sitemap files, the tool returns too_many_requests (not billed): wait and try again.

old names

max_urls is the old name of max_results, and total_before_max_urls of total_before_max_results. both still work and mean the same. the api drops them on 2027-02-01. this tool still takes max_urls and sends it as max_results; when you give both, only max_results is used.

see the map endpoint for discovery rules and pagination semantics.

usage

returns the current billing-cycle snapshot: total / used / available credits, used quota percent, max concurrency, and cycle reset timestamp. takes no arguments. what a call costs, and how credits are counted, is documented under credits & pricing.

whoami

returns the organization name, token name, and truncated token preview for the configured api key. useful for confirming which account is in use before credit-consuming operations.


errors

every tool returns an mcp error result (isError: true) when the api call fails. the error text follows a stable format:

[<errorName>] <message> (HTTP <status>)

a few codes add a short next step after that, e.g. target_unreachable and zero_data_retention_not_enabled. branch on the errorName code, not on the rest of the text.

agents can branch on the errorName code. the set comes from the sdk's ApiErrorName union plus two synthetic codes added by this mcp (missing_api_key, internal_error):

code

meaning

missing_api_key

CRAWLBRULEE_API_KEY is not set in the mcp host's env. the message says how to get a key.

invalid_credentials

the api rejected the key: expired, revoked or mistyped. the message says how to get a new one.

service_unavailable

temporary backend failure (HTTP 503). your key is fine — retry with backoff.

too_many_requests

rate limit hit — back off and retry.

usage_allocation_error

plan credit / concurrency cap exceeded. show usage to user.

validation_error

input failed server validation.

invalid_url

target url was rejected before fetching.

blocked_url

target url is on the blocklist.

antibot_blocked

origin's anti-bot defenses blocked the fetch.

too_many_redirects

origin redirected the fetch in a loop (HTTP 422). the target's doing — don't retry blindly.

page_too_large

the page's html was too large to process (HTTP 422). terminal — never retry it.

target_unreachable

we could not reach the site at all (HTTP 502). not billed. retry later or check the url.

zero_data_retention_not_enabled

zero_data_retention is not enabled for your organization (HTTP 403). not billed.

scrape_error

the scrape could not be completed. a page the site served, even a 404, is never this error.

unsupported_screenshot_output

screenshot-only request on a content type that can't be screenshotted (HTTP 422). not billed.

unsupported_pdf_output

pdf-only request on a content type that can't be made into a pdf (HTTP 422). not billed.

job_failed

the async job ended failed, so it has no result (scrape_result, HTTP 400).

not_found

async job ID unknown, or submitted more than 24 hours ago (scrape_status / scrape_result).

request_timeout

network / read timeout. safe to retry.

client_closed_request

caller cancelled before completion.

internal_server_error

unhandled server-side failure.

crawlbrulee_error

sdk error without a typed name.

internal_error

bug in this mcp — please open an issue.

the api docs carry the canonical error reference — every error name, what causes it, and how to recover.


development

pnpm install
pnpm typecheck   # tsc --noEmit
pnpm lint        # eslint
pnpm test        # vitest run
pnpm build       # tsup → dist/index.js with shebang
pnpm verify      # all of the above

run the built mcp locally:

CRAWLBRULEE_API_KEY=cwbl_... node ./dist/index.js

it will block waiting for an mcp client on stdio. combine with the MCP Inspector for interactive debugging.

docs

this readme covers the mcp server itself — installing it, wiring it into a host, and the tools it exposes. for how the api behaves — endpoints, parameters, and error semantics — the api docs are canonical. the mcp guide covers host setup in more depth.

part of the crawlbrulee toolkit

one api, many ways to call it:

docs: crawlbrulee.com/docs · dashboard: dashboard.crawlbrulee.com

license

Apache-2.0

Available Tools

7 tools
mapMap a websiteA

Build (or fetch a cached) link map of a website from its sitemaps, plus the links on its home page. Returns paginated links, each { url, type, lastmod }: type is page, sitemap or sitemap_index (a sitemap file that lists other sitemap files); read either kind of sitemap file with sitemap_url in another call. lastmod is the date from the sitemap (UTC) or null. Filterable by link type (internal / external / subdomain). Use this to enumerate a site before scraping selected pages. By default the map reads the site's top sitemap files and 2 levels of nested ones (depth 3), returns pages (entries) and finds up to 5000 of them (max_results, max 100000). max_results is a discovery budget, not a trim at the end: discovery stops as soon as that many entries of the asked kind are found, so a smaller value is a faster map. A map stopped that way returns exactly max_results links with response_capped false; the signal that the site has more is response_meta.truncation.discovery_cap_reason. "max_results": ask again with a higher max_results. "depth": there are sitemap files past the depth you asked for, listed in unread_sitemaps; that is the answer to your depth, not a fault. "unread_files": a sitemap file could not be read whole this time, often temporary, so asking again later can return more. "time", "file_budget" and "file_size": the site is big or slow, 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. To map a very large site in several calls, first ask with depth: 1 and entries: "sitemaps": one call lists the top sitemap files and every file they list (a listed file shows as sitemap until a map reads it, even when it is an index). Then read each file with sitemap_url (on the same site as url, or on a host the site's robots.txt names, such as a CDN), or ask with a higher depth. truncation.unread_sitemaps names the files a call did not read whole, to read next (except a file that says it is over the size limit: no call reads that one); when that list is full, ask the same with entries: "sitemaps" to get every sitemap file as a link, paged. A sitemap index holds only sitemap files, so reading one at a low depth with entries: "pages" returns no pages: ask with entries: "sitemaps" or a higher depth. modified_since keeps only entries whose lastmod is at or after it: an entry with no lastmod is left out (so no home page link is returned). Every sitemap file is read whatever its own date, and each entry is judged by its own lastmod. With entries: "sitemaps" a file is returned by its own date, so ask with entries: "pages" to find the pages that changed. A request with modified_since is always mapped fresh, never from the cache, and priced as a fresh map. A map with modified_since or sitemap_url adds no home page links. If the site answers 429 on the file in sitemap_url, on its robots.txt or on one of its top sitemap files, the tool returns too_many_requests (not billed): wait and retry. 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. The full walk-through for a very large or deep site: https://crawlbrulee.com/docs/map/sitemaps#map-a-very-large-or-deep-site-in-several-calls.

Inputs: url (required), page, cache, depth, +11 more. Returns: links, response_meta

scrapeScrape a URLA

Fetch a single URL via the crawlbrulee scraping API and return the requested content (markdown, cleaned HTML, raw HTML, links, images, screenshot, PDF, 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. Markdown and metadata stay on unless you set markdown: false and metadata: false, so send both to get only the values. Rules: https://crawlbrulee.com/docs/scrape/targeted-extraction. 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, 444 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. Set extract.pdf: {} to save the page as a PDF (pages or one long page, a4 or letter); it costs what a screenshot costs, and both together are billed once. Set extract.screenshot.color_scheme: "dark" for a screenshot of the site's dark theme, at no extra cost; the PDF then shows it too. Screenshot and PDF URLs in the response are signed download links that expire 24 hours after the scrape: download the file 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. pdf_unavailable means the PDF could not be made; the rest is there. pdf_single_page_overflow means a single_page PDF was too tall for one page and goes on over more pages. custom_user_agent means the request set its own User-Agent header; this can lower the success rate. To send your own headers or cookies to the site, set headers (for example Authorization, or a fixed User-Agent) or cookies. They go only to the site in url, and such a request never uses the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. Tell the user this before they share one. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies.

Inputs: url (required), cache, proxy, cleanup, +6 more. Returns: pdf, url, links, images, +12 more

scrape_asyncScrape a URL asynchronouslyA

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/targeted-extraction. Takes extract.pdf (save the page as a PDF) and extract.screenshot.color_scheme like scrape. 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. To send your own headers or cookies to the site, set headers (for example Authorization, or a fixed User-Agent) or cookies. They go only to the site in url, and such a request never uses the cache. Header and cookie values pass through the chat with the AI, so the AI host may keep them in its history. Use short-lived tokens or a test account, and never a password you can't change. Tell the user this before they share one. See https://crawlbrulee.com/docs/scrape/custom-headers-and-cookies.

Inputs: url (required), cache, proxy, cleanup, +7 more. Returns: job_id

scrape_resultGet an async scrape job resultA

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, PDF, 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. A failed job has no result: this returns job_failed. A job that asked only for a screenshot, a PDF or both, on a content type that cannot be captured (such as JSON or plain text), returns unsupported_screenshot_output or unsupported_pdf_output instead, as scrape does. Either way the job is not billed. 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, 444 and 451; 5xx pages are never billed. A job answers for 24 hours after it was submitted, then returns not_found. Screenshot and PDF URLs are signed download links that expire at the same moment, however late you fetch the result: download the file if you need it later.

Inputs: job_id (required). Returns: pdf, url, links, images, +12 more

scrape_statusCheck an async scrape job statusA

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. A job that asked only for a screenshot, a PDF or both and got no capture also ends failed and is not billed; scrape_result then names the reason. 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.

Inputs: job_id (required). Returns: error, job_id, status, created_at, +1 more

usageGet current usageA

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.

Inputs: no named parameters. Returns: usage_reset, used_credits, total_credits, max_concurrency, +2 more

whoamiIdentify the API tokenA

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.

Inputs: no named parameters. Returns: token_name, token_preview, organization_name

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: `scrape` is a blocking one-shot fetch, `scrape_async` submits a job, `scrape_status` polls it, `scrape_result` retrieves the output, `map` enumerates site links, and `whoami`/`usage` are account introspection. The descriptions explicitly state when to prefer one over the other (sync vs async, map before scrape), so there is no realistic misselection.

    Naming Consistency5/5

    All names are lowercase snake_case, and the async lifecycle forms a coherent `scrape` / `scrape_async` / `scrape_status` / `scrape_result` family. The remaining `map`, `whoami`, and `usage` are terse but follow the same casing style and are idiomatic for their functions.

    Tool Count5/5

    Seven tools is well-scoped for a scraping service: two scraping entry points, two job-lifecycle lookups, site discovery, and two account/credit checks. Nothing appears redundant or missing at the count level.

    Completeness4/5

    The surface covers single-page extraction, site discovery, and the full async job lifecycle plus credit/account checks, which is the core workflow. Minor gaps remain: no multi-page crawl/batch scrape tool and no job-cancel or list-jobs operation, so agents must fan out page-by-page themselves.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP-native web scraping and search API for AI agents. Converts any URL to clean Markdown with 90% success rate, including Cloudflare-protected sites and JS SPAs. Real-time web search via Brave Search API. CAPTCHA solving built-in. 10 free scrapes/day.
      5
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to scrape, crawl, map, search, and extract web pages as clean markdown or structured JSON directly through MCP tools.
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to scrape web pages into Markdown, text, HTML, JSON, PDFs, screenshots, and structured data, while managing batch scraping jobs, persistent browser sessions, usage/request history, and docs lookup through native MCP tools.
      27
      1,039 npm
      4
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP-compatible AI agents to search, scrape, crawl, map, and interact with live web pages, returning clean, structured, agent-ready content. It also supports recurring page monitoring, autonomous deep research, and credit-usage checks.
      26
      1
      MIT