Fetch MCP Server

v0.8.9
io.github.YawLabs/fetch-mcp Checked 6 hours ago Published 1 day ago

HTTP 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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
bodystringRaw request body as a string
body_jsonRequest body as a JSON value — sets content-type to application/json if none given
content_typestringContent-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded)
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
bodystringRaw request body as a string
body_jsonRequest body as a JSON value — sets content-type to application/json if none given
content_typestringContent-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded)
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
bodystringRaw request body as a string
body_jsonRequest body as a JSON value — sets content-type to application/json if none given
content_typestringContent-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded)
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
bodystringRaw request body as a string
body_jsonRequest body as a JSON value — sets content-type to application/json if none given
content_typestringContent-Type header to send with the body (e.g. application/json, text/plain, application/x-www-form-urlencoded)
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL (http:// or https://)
allow_private_hostsbooleanAllow 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_authobjectHTTP Basic auth credentials
bearer_tokenstringBearer token sent as Authorization: Bearer <token>
decode_textbooleanForce text decoding (true) or binary base64 (false). Defaults to auto — text for text/*, json, xml, etc; binary otherwise.
headersobjectExtra request headers as a key/value object
max_bytesintegerMax response body size in bytes before the body is truncated (default 5MiB, ceiling 100MiB)
max_redirectsintegerMax redirect hops to follow (default 5)
retriesintegerRetries on 408/425/429/500/502/503/504 with exponential backoff (default 0)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringURL to fetch
allow_private_hostsbooleanAllow 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_bytesintegerMax response size in bytes (default 5MiB)
max_redirectsintegerMax redirect hops (default 5)
timeout_msintegerTimeout 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_agentstringUser-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.

ParameterTypeDescription
url *stringURL to fetch
allow_private_hostsbooleanAllow 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_bytesintegerMax response size in bytes (default 5MiB)
max_redirectsintegerMax redirect hops (default 5)
timeout_msintegerTimeout in ms for the request, covering DNS, every redirect hop and the body (default 10000)
user_agentstringUser-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.

ParameterTypeDescription
url *stringTarget URL to check. We derive origin + path automatically.
allow_private_hostsbooleanAllow 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_redirectsinteger
timeout_msinteger
user_agentstringUser-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.

ParameterTypeDescription
url *stringSitemap URL (sitemap.xml, sitemap.xml.gz, or a sitemap index)
allow_private_hostsbooleanAllow 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_bytesintegerMax bytes to read per sitemap response (default 20MiB)
max_depthintegerHow many sitemap-index levels to follow (default 1). 0 keeps the top-level index flat and only returns its childSitemaps list.
max_redirectsinteger
max_sitemapsintegerCap on sitemap documents fetched -- the index plus every child (default 50, max 1000). Children past the cap are listed under childSitemaps, unfetched.
max_urlsintegerCap on total URLs returned (default 5000)
timeout_msinteger
user_agentstring

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…

ParameterTypeDescription
url *stringURL to extract metadata from
allow_private_hostsbooleanAllow 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_bytesintegerDefault 2MiB — metadata lives in <head>
max_redirectsinteger
timeout_msinteger
user_agentstring

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.

ParameterTypeDescription
url *string
allow_private_hostsbooleanAllow 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…
limitintegerMax entries to return (default 50)
max_bytesintegerMax bytes to read (default 10MiB). A feed over 16 MiB is refused whatever max_bytes says.
max_redirectsinteger
timeout_msinteger
user_agentstring

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.

ParameterTypeDescription
url *string
allow_private_hostsbooleanAllow 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_bytesinteger
max_redirectsinteger
timeout_msinteger
user_agentstring