fetchmcp

v0.1.1
io.github.labtools-studio/fetchmcp Checked 4 days ago Published 3 months ago

Drop-in fetch MCP: clean Markdown from any URL, with JS rendering and anti-bot.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_url Read URL as Markdown

Fetch a web page and return its content as clean, LLM-ready Markdown. Full content by default (no truncation). Handles HTML, plain text, Markdown, and JSON responses. JavaScript-heavy pages are rendered automatically in a real browser when the static HTML is an empty SPA shell. Returns an honest typed error when the site blocks access or the content cannot be read — it never silently returns partial or fake content.

ParameterTypeDescription
url *stringThe URL to fetch (http or https).
headersobjectExtra HTTP headers to send, e.g. an Authorization bearer token or a Cookie for pages behind a login. Example: {"Authorization": "Bearer ...", "Cookie": "session=..."}.
max_lengthintegerMaximum number of characters to return. Default 0 = unlimited (full page). If output is truncated, the response says so and tells you how to continue.
rawbooleanIf true, return the raw page HTML instead of extracted Markdown. Default: false.
renderbooleanJS rendering in a real browser: true = always render, false = never render. Default: automatic — renders only when the static HTML turns out to be an empty SPA shell.
start_indexintegerCharacter offset to start from, for paging through a long page. Default: 0.

read_docs Read Documentation Page as Markdown

Fetch a documentation or reference page and return only its main content as clean Markdown, stripping navigation sidebars, headers, footers, and other page chrome. Use this for API docs, guides, and reference pages. For general web pages use read_url. Same JS-rendering, anti-bot, and honest-error behavior as read_url.

ParameterTypeDescription
url *stringThe documentation URL to fetch (http or https).
headersobjectExtra HTTP headers, e.g. an Authorization token or Cookie for docs behind a login.
max_lengthintegerMaximum characters to return. Default 0 = unlimited.
renderbooleanJS rendering: true = always, false = never, default = automatic (only for empty SPA shells).
start_indexintegerCharacter offset to start from. Default: 0.