Skip to main content
Glama
StealthFetch MCP

StealthFetch MCP

by zone1059123

StealthFetch MCP

A clean web content reader for Cursor, Claude Code, and Codex CLI. StealthFetch runs locally over MCP stdio and turns web pages into token-efficient Markdown and structured data.

Why StealthFetch?

  • Headless JavaScript rendering. StealthFetch starts with a browser-compatible HTTP request and can fall back to Chromium on HTTP 403, HTTP 503, or a short JavaScript shell. Use render_js to render a page directly.

  • Token-efficient Markdown. Remove scripts, navigation, ads, and other surrounding content. Markdown defaults to 15,000 characters, with a caller-controlled cap.

  • JSON-LD and metadata extraction. Extract titles, summaries, JSON-LD, Open Graph and Twitter metadata, normalized links, and prices.

Related MCP server: read-website-fast

Quick start

Requires Python 3.10+ and uv or pip. Run directly from GitHub with uv:

uvx --from git+https://github.com/zone1059123/stealthfetch-mcp stealthfetch-mcp

Or install in your Python environment:

pip install git+https://github.com/zone1059123/stealthfetch-mcp
stealthfetch-mcp

The command waits for an MCP client over stdio. Install the Playwright Chromium browser once for JavaScript rendering and fallback:

uvx --from git+https://github.com/zone1059123/stealthfetch-mcp playwright install chromium

For pip, run python -m playwright install chromium in the same environment. Linux hosts may also need Playwright's browser system libraries. Set STEALTHFETCH_CHROMIUM to the absolute path of an existing compatible Chromium executable to use that browser.

Connect your client

Cursor

Save this as .cursor/mcp.json in your project:

{
  "mcpServers": {
    "stealthfetch": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/zone1059123/stealthfetch-mcp",
        "stealthfetch-mcp"
      ]
    }
  }
}

Claude Code

claude mcp add --transport stdio stealthfetch -- uvx --from git+https://github.com/zone1059123/stealthfetch-mcp stealthfetch-mcp

Codex CLI

codex mcp add stealthfetch -- uvx --from git+https://github.com/zone1059123/stealthfetch-mcp stealthfetch-mcp

Tools

Tool

Output

fetch_clean_markdown

Clean main content and quota status. Pass max_chars to adjust the default 15,000-character cap.

extract_structured_data

Title, summary, JSON-LD, Open Graph, Twitter metadata, up to 50 unique links, and prices.

batch_extract_urls

Pro-only compact results for up to 10 URLs, with at most three fetches in flight per call and an error entry for any failed URL.

All three tools accept render_js. Use URLs you are authorized to access and treat extracted content as untrusted. Prices with ambiguous symbols such as $ include the symbol and leave the currency unset.

Free vs. Pro

Feature

Free

Pro

Price

Free

$19 one-time on Polar.sh

Single-page fetches

20 attempts per day

Unlimited

Clean Markdown and structured data

Included

Included

Batch extraction

—

Up to 10 URLs per call

Buy the Pro license key at Polar Checkout and retrieve it from your Polar customer portal. Set these variables in the MCP server's environment, then reconnect your client:

  • STEALTHFETCH_LICENSE_KEY is your personal license key.

  • POLAR_ORGANIZATION_ID is the issuing organization's UUID, available from the seller's Polar dashboard.

StealthFetch caches valid keys for seven days or until their expiration, whichever comes first. A missing or invalid key uses the Free plan. Free attempts count after input validation even if the site fetch later fails. The allowance resets at midnight UTC. Quota and license cache are stored at ~/.stealthfetch-mcp/state.sqlite3. Set STEALTHFETCH_DB to override the path. Keep license keys out of shared client configuration and source control.

Develop

uv sync --locked --extra test
uv run --locked --extra test pytest
uv build

For a cloud checkout with system Chromium and a read-only home directory, launch the MCP command with a writable database path:

STEALTHFETCH_CHROMIUM=/usr/bin/chromium STEALTHFETCH_DB="$PWD/.venv/usage.sqlite3" \
  .venv/bin/stealthfetch-mcp

MIT licensed.

Available Tools

3 tools
batch_extract_urlsA

Extract titles, summaries, and prices for up to 10 URLs with a Pro license.

Processes up to three URLs concurrently and preserves input order. Set render_js to enable headless rendering for the batch. A failed URL produces an error entry while other URLs continue.

Inputs: urls (required), render_js. Returns: result

extract_structured_dataA

Extract JSON-LD, Open Graph, Twitter metadata, links, and prices from one URL.

Includes the page title and summary. Enable headless rendering with render_js when the source data is populated by JavaScript. Each request uses one daily fetch on the Free plan.

Inputs: url (required), render_js. Returns: object

fetch_clean_markdownA

Read one HTTP(S) page and return its main content as token-efficient Markdown.

Enable headless JavaScript rendering with render_js. Set max_chars to cap the Markdown size. Each request uses one daily fetch on the Free plan.

Inputs: url (required), max_chars, render_js. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation4/5

    fetch_clean_markdown (raw main-content Markdown) is clearly distinct from the two extraction tools. extract_structured_data and batch_extract_urls overlap in purpose (both return titles/summaries/prices), but the single-URL vs. up-to-10-URL batching boundary is stated explicitly enough that an agent can choose correctly.

    Naming Consistency4/5

    All three names use snake_case and contain an action verb with an object, giving a predictable verb_object shape (fetch_clean_markdown, extract_structured_data). batch_extract_urls leads with a modifier rather than the verb, a minor deviation from the pattern.

    Tool Count4/5

    Three tools is on the lean side but each covers a distinct mode (single-page Markdown, single-page metadata, batch metadata) with no filler. It is well-scoped for a focused fetch/extract server, though slightly tight for the domain.

    Completeness4/5

    The core lifecycle of fetch-and-extract is covered: single-page reading, single-page structured metadata, and batch extraction with per-URL error entries. Gaps are minor (no selector/field-targeted extraction, no raw HTML mode), and the Pro-only batch is a licensing limit rather than a surface gap.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and MCP clients to fetch webpages and crawl sites, extract main content, and convert it into clean Markdown with preserved links for fast, token-efficient scraping.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients and AI agents to fetch individual webpages or crawl sites and receive clean, link-preserving Markdown with caching and robots.txt-aware rate limiting, reducing token usage for downstream pipelines.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP clients and AI agents to fetch webpages and crawl sites, strip noise, and convert content into clean, link-preserving Markdown with caching and configurable multi-page depth while minimizing token usage.
      MIT