MCP server exposing 7 tools for web-fetch.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/web-fetch/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
fetch_url — Fetch the exact contents of ONE public web URL live from its origin server and return them verbatim with a SHA-256 hash of the bytes received. Use it to read a specific page, raw data file (CSV, TSV, .dat, JSON, XML), API endpoint or PDF whose address you already know. format "auto" (default) returns readable text for HTML and PDF and the raw body for everything else; "raw" returns the body itself (decoded text, or base64 for binary such as zip/xlsx); "text" forces text extraction. A PDF also returns page_count and pages[] ({page, text}, 1-based) so a passage can be cited by page; a page with no extractable text (a scan) is listed with text "" and ocr:false (no OCR is done), and when max_bytes cuts the list pages_truncated is true and next_page names where to resume with page. Large bodies page with max_bytes and offset. Also returns url_final, the redirect chain, status, response headers, charset and how it was chosen. Refusals are explicit: blocked_url (private address, disallowed port or scheme, credentials in the URL), upstream_refused (the site answered 401/403/429 or a bot wall), upstream_down, upstream_status (e.g. 404). A refusal or outage also carries archive_url and archive_timestamp (the newest capture) when the Internet Archive holds one, or no_capture:true when it does not, so you can decide. When the refused page is on an open-data portal (a data.* host with a /dataset or /d/<id> address, or a portal we have measured), the refusal also carries see_also naming the open-data-portals tools that read the same portal's API (portal_detect, portal_search_datasets, portal_dataset, portal_query) with the domain and, when the address shows one, the dataset id filled in; query_table, site_map, site_crawl and extract_archive_member refusals carry it too. Live data is the default. Set archive:"fallback" to get the newest Wayback capture instead when the live fetch is refused or down: the answer has archived:true, archive_timestamp, archive_url and the original refusal in live_refusal, and it is never the page as it is today. Set archive:"only", or as_of (an ISO date), to read the capture nearest that date (or the newest) without asking the live site; as_of with no capture near it is refused as no_capture, never an empty answer. Captures are read raw (Wayback id_ mode), so the bytes are the page, not the Wayback toolbar. The one lookup counts against the web.archive.org site budget. There is no retry and no other route to a site that refused you, with one exception: a public government page (.gov, .mil, state .us, .gov.uk, .gc.ca, .gov.au, .govt.nz, .europa.eu and similar) that answers 403 or a bot-wall page and needs no login is tried once more through Pipeworx's own headless browser; the answer then says unblocked:true and unblocked_via "pipeworx-render", and a page that is still walled stays upstream_refused. A 429 or any stated rate limit is never retried. Static fetch by default. When a page is built by script (a client-routed app shell, or almost no text and many scripts) the tool re-reads it in a headless browser and returns the rendered text with rendered_fully:true and rendered_via:"headless"; if no render is possible it says rendered_fully:false with a rendering_note instead of presenting the shell as the page. Budgets protect the origin: 1,000 fetches a day per site across all callers, and no single caller may use more than 25% of that (250 a day per site; a named service key can be granted a larger share). A refusal budget_exhausted names the limit it hit in budget_scope (caller_share, host_total or internal_sub_budget) and gives retry_after_s. Does not log in, send cookies or search; for a past version of a page use archive_evidence. Keyless.extract_archive_member — List or extract a named member from a ZIP archive at a public URL, without downloading the whole archive when the origin honours HTTP Range (most do, including Internet Archive Wayback Machine captures). Call with just "url" to LIST members: name, compressed/uncompressed size, method (stored/deflate), CRC-32. Add "member" (the exact or case-insensitive name from that list) to EXTRACT it: text members come back as decoded text, binary members as base64, windowed by max_bytes/offset exactly like fetch_url. Reads only the end-of-central-directory record and the central directory (at the tail of the file) to list members, and only the one member's local header + payload to extract it, a multi-GB archive costs the same few requests as a tiny one. Refusals are explicit and named: member_not_found, encrypted_entry, unsupported_compression_method (only stored and deflate), decompressed_too_large (checked BEFORE decompressing against the declared size, and again DURING decompression independent of what was declared, a zip-bomb defence that cannot be defeated by a false declaration), zip64_not_supported (more than 65,535 entries or a 4GB+ central directory), too_large (Range not honoured and the archive exceeds this tool's read cap), invalid_archive (not a ZIP, or corrupt). Keyless; works on any ZIP at any public URL, not just an archived capture.query_table — Filter, select, sort, group and aggregate the rows of a CSV, TSV, XLSX, JSON or JSONL file at a public URL (or one file inside a ZIP) and return only the matching rows, so you stop paging raw bytes with fetch_url. Call with just "url" (plus "member" for a ZIP, "sheet" for a workbook) to DESCRIBE the file: column names with inferred types (integer, number, boolean, date, string), the total row count and the first 10 rows. Then query it: "columns" picks columns; "where" is a list of {column, op, value} that must all hold (ops: eq, ne, gt, gte, lt, lte, contains, in; numbers compare as numbers, "contains" ignores case); "group_by" plus "aggregates" ([{fn: count|sum|min|max|avg, column, as}]) returns one row per group; "order_by" ("Amount desc" or [{column, dir}]); "limit" (default 100, max 5000) and "offset" page the result, and next_offset says where to resume. Reports total_rows_scanned and rows_matched, so a filter that matches nothing is visibly zero rows out of N, never a silent empty answer. A column the file does not have is refused as unknown_column and lists the real columns. Empty cells come back as null and surrounding spaces are trimmed; XLSX dates come back as the serial numbers stored in the sheet. Also returns the SHA-256 of the bytes parsed (sha256_scope says whether that is the whole file or the ZIP member), url_final and a warnings list. Reads the file whole up to 25 MiB (a single JSON document up to 10 MiB) and refuses anything larger with too_large naming the cap, never truncating then querying. Other refusals are named: blocked_url, upstream_refused, upstream_down, upstream_status, budget_exhausted (same per-site budgets as fetch_url), member_required (a ZIP without "member": lists its files), member_not_found, sheet_not_found, not_a_table (the URL served a web page), unsupported_format (.xls, gzip), invalid_table, empty_table, too_many_groups, invalid_argument. format "html" reads the largest <table> of a web page (header row from the page's th cells, or header_row), and a public government PAGE that answers 403 or a bot wall and needs no login is read once through Pipeworx's own headless browser, with the table taken from the rendered page (the answer says unblocked_via "pipeworx-render" and sha256 is of the rendered HTML); a file URL (.csv, .xlsx, .json, .zip), a ZIP member and every other site keep the refusal. Does not log in, send cookies or write anything. Keyless.extract_product — Read what ONE product page states about the product, from the page's own markup: structured product markup the page's own site publishes (JSON-LD or microdata in the shared Product vocabulary) and OpenGraph / product: tags. Returns title, description, canonical_url, price (a number), currency, brand, product_id, sku, gtin, mpn, availability (InStock, OutOfStock, PreOrder...), condition, thumbnail, images, category, rating_value and rating_count, plus every offer the page lists in offers[] and the raw markup in structured_data. When a Shopify-style page (/products/<handle>) carries no Product markup, the shop's own /products/<handle>.json is read instead (formats_found shows shopify-json; price is then the lowest variant price with price_is_range true). A field the page does not state is null; nothing is inferred from the visible page text. field_sources says which markup each value came from. When the offers state different prices or availability, price and availability are null and offers[], price_low and price_high carry what the page says. Fetched live through the same guarded path as fetch_url (own and private hosts refused, per-site budgets). It does not log in, send cookies or get past a bot wall: a refusal or challenge page comes back as upstream_refused with a hint to the bring-your-own-key zyte_extract tool, and a page with no product markup (including a shop built by script) comes back as no_product_data, never an empty success. Other refusals: blocked_url, upstream_down, upstream_status, budget_exhausted, not_a_page. Keyless.website_contacts — Find the contact details a company publishes on its own website, from its domain: role email addresses (info@, sales@, support@, press@), phone and fax numbers, the postal address the site declares, company social profile links (LinkedIn company page, X, Facebook, Instagram, YouTube, GitHub and more), the contact page URL and the contact form URL, each with the page URL it was found on. Reads the site live through the same guarded fetch as fetch_url: the home page (header, body and footer), then the contact, imprint, about and support pages it links, with /contact and /about tried when it links none. A fixed budget of 5 pages per call, home page included, stated in the answer as page_budget, with pages_fetched listing each page read and pages_refused each page a site refused. Published business contacts only: an email is returned only when it is a role address; an address that looks like a named person's is counted in personal_addresses_withheld and never returned, team and people pages are not read, LinkedIn person profiles are not returned, and no email is guessed or built from a pattern. Postal addresses come from the site's own structured markup (schema.org PostalAddress, an address element), never inferred from running text. not_found names each field the pages did not publish and why (including pages built by script, which are not rendered here), and says that a Google Maps place_id is not on a company site. Refusals keep the origin's class: blocked_url (private, own-zone or malformed domain), upstream_refused (401/403/429 or a bot wall; the one exception is a public government page that answers 403 or a bot wall and needs no login, which is read through Pipeworx's own headless browser for at most 3 pages a call, each such page marked unblocked_via "pipeworx-render" in pages_fetched; every other site, and every page past that bound, keeps its refusal), upstream_down, upstream_status, budget_exhausted. A 200 that publishes nothing returns found:false with reason no_contact_details_published. Keyless.site_map — List the URLs a website publishes: read its robots.txt Sitemap lines (or /sitemap.xml when it names none), follow sitemap index files, inflate gzip sitemaps, and add the links on the seed page. Each URL comes back with lastmod where the sitemap published one and discovered_from ("sitemap" or "page") plus found_in, the file or page it came from. limit (default 200, at most 1000) cuts the list and the answer says so: cut_by_limit, urls_found (how many were found before the cut) and cut_note. path_prefix keeps one section of the site ("/news"); include_subdomains adds other subdomains of the same site. A call reads robots.txt, the seed page and at most 12 sitemap files; a larger index lists the files it left in sitemaps_unread, and sitemap_url reads one of them. sitemaps shows every file tried with its kind, status, URL count and any refusal. A site that publishes no sitemap and a seed page without links answers found:false with reason no_urls_discovered and what was read, never an empty success. Every read goes through the same guarded fetch as fetch_url (same per-site budgets, honest user agent, private and own-host addresses refused), so a refusal keeps its class: blocked_url, upstream_refused (401/403/429 or a bot wall), upstream_down, budget_exhausted. The one retry: a public government page (the same hosts as fetch_url) that answers 403 or a bot wall is read once through Pipeworx's own headless browser, so its links are listed (seed.unblocked_via "pipeworx-render"); robots.txt and sitemap files are files and are never rendered, so a walled government site lists the seed page's links only. fetches counts what the call drew on the site budget. Does not log in or run script. Use site_crawl to read the pages themselves. Keyless.site_crawl — Read the pages of one website from a seed URL, breadth first, and return each page as markdown. Follows links to the same host only, never leaves it, and stops at hard ceilings: depth 3 and 25 fetches a call (defaults depth 2, limit 10). Per page: url, depth, status, title, text (markdown, cut to text_chars, default 3000, at most 10000) with text_chars_total and text_truncated, and links_found. Links to PDFs and data files are listed in documents_linked, not fetched; read one with fetch_url or query_table. path_prefix keeps the crawl inside one section ("/news"). Nothing is dropped silently: a page the site refuses, one that fails, a page that is not text, a redirect to another host and a spent site budget each appear in pages_skipped with the reason (upstream_refused with bot_wall or http_403, upstream_down, upstream_status, budget_exhausted with retry_after_s and budget_scope, not_a_text_page). A call returns what it read when it hits the fetch limit, runs out of its time budget or the site budget is spent: stopped_because says which, queued_remaining counts the pages still waiting and next_cursor continues from there (pass it back with the same url). After three refusals the crawl stops (site_refusing) and gives no cursor: the site has said no. A public government page (the same hosts as fetch_url) that answers 403 or a bot wall is read through Pipeworx's own headless browser instead (that page says unblocked_via "pipeworx-render"), at most 3 such pages a call: the call then stops with stopped_because render_limit and a next_cursor for the rest, so a walled site is read 3 pages a call. Every page is read through the same guarded fetch as fetch_url: the same per-site budgets (a crawl draws one fetch per page from the site's budget, and fetches shows how many), honest user agent, and refused private and own-host addresses. Does not log in, send cookies or run script. Use site_map to list a site's URLs without reading them. Keyless.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/web-fetch/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io