Fetch MCP Server
v0.8.9HTTP fetch MCP server: SSRF protection, HTML-to-markdown, reader mode, metadata extraction
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
http_get
Perform an HTTP GET. Returns status, headers, and body. Automatically parses JSON when the server responds with application/json. Follows redirects (each hop re-validated against SSRF rules). Refuses URLs that resolve to private/loopback/link-local addresses unless the operator enabled FETCH_MCP_ALLOW_PRIVATE_HOSTS and the call sets allow_private_hosts.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_post
Perform an HTTP POST. Body can be given as a raw string (body) or as a JSON value (body_json — auto-sets content-type to application/json). NOT idempotent: calling twice submits twice.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
body | string | Raw request body as a string |
body_json | Request body as a JSON value — sets content-type to application/json if none given | |
content_type | string | Content-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded) |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_put
Perform an HTTP PUT. Use for full-resource replacement. Idempotent: the same PUT applied twice leaves the resource in the same state.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
body | string | Raw request body as a string |
body_json | Request body as a JSON value — sets content-type to application/json if none given | |
content_type | string | Content-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded) |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_patch
Perform an HTTP PATCH. Use for partial updates. Spec-wise NOT guaranteed idempotent — depends on the server's patch semantics.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
body | string | Raw request body as a string |
body_json | Request body as a JSON value — sets content-type to application/json if none given | |
content_type | string | Content-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded) |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_delete
Perform an HTTP DELETE. Idempotent (per spec): a repeated DELETE on an already-deleted resource typically returns 404/410.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
body | string | Raw request body as a string |
body_json | Request body as a JSON value — sets content-type to application/json if none given | |
content_type | string | Content-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded) |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_head
Perform an HTTP HEAD. Returns status + headers with no body. Useful for checking a resource exists, getting its size (Content-Length), or polling for changes cheaply.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
http_options
Perform an HTTP OPTIONS. Returns the server's supported methods and CORS policy for a resource. Helpful for API discovery.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL (http:// or https://) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
basic_auth | object | HTTP Basic auth credentials |
bearer_token | string | Bearer token sent as Authorization: Bearer <token> |
decode_text | boolean | Force text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise. |
headers | object | Extra request headers as a key/value object |
max_bytes | integer | Max response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB) |
max_redirects | integer | Max redirect hops to follow (default 5) |
retries | integer | Retries on 408/425/429/500/502/503/504 with exponential backoff (default 0) |
timeout_ms | integer | Timeout in ms for each attempt, covering DNS, every redirect hop and the body (default 10000, max 120000). Retries get a fresh budget; a whole call is capped at 5 minutes. |
user_agent | string | User-Agent override (default identifies as @yawlabs/fetch-mcp) |
fetch_html_to_markdown
GET a URL, decode the HTML, and convert to clean markdown (headings, lists, links, code fences). Scripts, styles, iframes, nav, footer, and aside elements are stripped. Intended for feeding web pages into an LLM cheaply -- markdown is usually 3-8x smaller than raw HTML. Follows redirects, respects size/timeout limits, and blocks private-host requests by default.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to fetch |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_bytes | integer | Max response size in bytes (default 5MiB) |
max_redirects | integer | Max redirect hops (default 5) |
timeout_ms | integer | Timeout in ms for the request, covering DNS, every redirect hop and the body (default 10000); the HTML-to-markdown step gets its own budget of the same length |
user_agent | string | User-Agent override |
fetch_html_to_text
GET a URL, decode the HTML, and return plain text with block-level structure preserved as newlines. Scripts, styles, and comments stripped; HTML entities decoded. Lighter than markdown when you only need the reading content.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to fetch |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_bytes | integer | Max response size in bytes (default 5MiB) |
max_redirects | integer | Max redirect hops (default 5) |
timeout_ms | integer | Timeout in ms for the request, covering DNS, every redirect hop and the body (default 10000) |
user_agent | string | User-Agent override |
fetch_robots
Fetch and parse the robots.txt for a given origin, then tell the caller whether a target URL is crawlable by a given user-agent. Follows the Google-style longest-match rule with Allow-wins-on-tie. Returns the raw robots.txt, parsed groups, sitemap references, and the allow/deny verdict with the matching rule.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL to check. We derive origin + path automatically. |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_redirects | integer | |
timeout_ms | integer | |
user_agent | string | User-agent string to match against groups (default '*') |
fetch_sitemap
Fetch a sitemap.xml (or sitemap-index) and return the contained URLs with their lastmod / changefreq / priority. Follows sitemap-index chaining up to max_depth levels. Gzipped .xml.gz payloads are auto-decompressed. A single sitemap document over 16 MiB once decoded is refused (a 50,000-URL sitemap is ~11 MiB). Partial failures (one child sitemap 500s while others work) are returned under 'warnings' without aborting the whole request. SSRF-protected by default.
| Parameter | Type | Description |
|---|---|---|
url * | string | Sitemap URL (sitemap.xml, sitemap.xml.gz, or a sitemap index) |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_bytes | integer | Max bytes to read per sitemap response (default 20MiB) |
max_depth | integer | How many sitemap-index levels to follow (default 1). 0 keeps the top-level index flat and only returns its childSitemaps list. |
max_redirects | integer | |
max_sitemaps | integer | Cap on sitemap documents fetched -- the index plus every child (default 50, max 1000). Children past the cap are listed under childSitemaps, unfetched. |
max_urls | integer | Cap on total URLs returned (default 5000) |
timeout_ms | integer | |
user_agent | string |
fetch_meta
GET a URL and extract its head metadata: title, description, canonical, language, robots directive, Open Graph / Twitter Card / article: properties, icon links, RSS/Atom feed links, and any JSON-LD (schema.org) blocks. Keys that appear more than once (e.g. multiple og:image tags) are additionally returned via ogAll/twitterAll/articleAll arrays. Lists are capped: at most 100 icons, feeds, JSON-LD blocks and values per *All key, and 1000 keys per og/twitter/article; a JSON-LD block nested deeper than 64 levels is dropped. When anything is cut, `truncated` names the collections affected. Ideal fo…
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to extract metadata from |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_bytes | integer | Default 2MiB — metadata lives in <head> |
max_redirects | integer | |
timeout_ms | integer | |
user_agent | string |
fetch_links
Extract every outbound link from an HTML page, resolved to absolute URLs. Each entry includes href, anchor text, optional rel/title, and an internal/external classification (bare-domain and www. treated as the same host). Only http and https links are returned: anchors (#) and every other scheme (javascript:, mailto:, tel:, data:, file:, ...) are skipped. Respects <base href>.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
dedupe | boolean | Drop duplicate hrefs (default true) |
filter | string | Filter by type (default 'all') |
limit | integer | Cap on returned links (default 1000) |
max_bytes | integer | |
max_redirects | integer | |
timeout_ms | integer | |
user_agent | string |
fetch_feed
Fetch and parse an RSS 2.0 or Atom 1.0 feed. Returns feed-level metadata (title, description, link, updated) plus a list of entries (title, link, id, published, updated, author, summary, content, contentType, categories). Auto-detects RSS vs Atom.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
limit | integer | Max entries to return (default 50) |
max_bytes | integer | Max bytes to read (default 10MiB). A feed over 16 MiB is refused whatever max_bytes says. |
max_redirects | integer | |
timeout_ms | integer | |
user_agent | string |
fetch_reader
GET a URL, locate the main article body (prefers <article>, <main>, itemprop=articleBody, or known CMS class names; falls back to <body>), strip navigation/footer/aside chrome, and convert to clean markdown. Returns { title, byline, markdown, wordCount }. Optimized for feeding long-form articles into an LLM without header/footer/sidebar noise.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
allow_private_hosts | boolean | Allow loopback / private / link-local targets for this call (default false). Refused unless the server operator launched fetch-mcp with FETCH_MCP_ALLOW_PRIVATE_HOSTS=1 -- SSRF protection stays on by d… |
max_bytes | integer | |
max_redirects | integer | |
timeout_ms | integer | |
user_agent | string |