Catalog npm
PACKAGE EXPLORERView in registry

402scrape-mcp

npm

MCP server for 402scrape — fetch a URL and get back clean, agent-ready Markdown, paid per call via x402 (USDC on Base) using your own wallet.

Versions collected3
Direct dependencies5From release 0.1.1
Last observed20 Oct, 19:58 UTC

README

Current package documentation

402scrape MCP server

Fetch any public webpage and get back clean, agent-ready Markdown, plain text, or structured JSON — stripped of navigation, ads, and boilerplate. Paid per call via the x402 protocol (USDC on Base), from your own wallet. No API key, no signup.

Setup

  1. Use a dedicated wallet, not your main one. Create a new wallet set aside only for this tool and fund it with a small amount of USDC on Base mainnet — never your primary wallet. Every call is a real, immediate payment with no confirmation step; treat this wallet's balance as the maximum you're willing to lose if something goes wrong.
  2. Set its private key as the X402SCRAPE_WALLET_KEY environment variable, or — if installed as a Claude plugin — enter it when prompted (stored in Claude's secure credential storage, never written to a config file in plaintext).
  3. Run it directly with npx -y 402scrape-mcp, or add it to your MCP client's config:
{
  "mcpServers": {
    "402scrape": {
      "command": "npx",
      "args": ["-y", "402scrape-mcp"],
      "env": {
        "X402SCRAPE_WALLET_KEY": "0x...",
        "X402SCRAPE_MAX_SPEND_USDC": "1.00"
      }
    }
  }
}

Current price per call is shown live in the tool's response — check https://402scrape.vercel.app/api/v1/extract for the current rate before relying on any number here.

Tool

extract_markdown — { url: string, format?: "markdown" | "text" | "json", renderJs?: boolean }. Set renderJs: true for JavaScript-heavy pages that need a headless browser to render (priced higher).

Cost and the spending cap

Every call is a real, non-refundable x402 payment from the configured wallet, with no confirmation step — an agent that gets stuck in a tool-call loop will keep paying until it stops. X402SCRAPE_MAX_SPEND_USDC (default $1.00) caps total spend for the lifetime of the running server process; once reached, further calls are refused with a clear error until the process restarts (which resets the counter). This is a last-resort circuit breaker, not a precise budget — fund the wallet with only what you're comfortable losing regardless of where the cap is set.

Environment variables

  • X402SCRAPE_WALLET_KEY (required) — private key of the paying wallet.
  • X402SCRAPE_MAX_SPEND_USDC (optional) — session spending cap in USDC, default 1.00.
  • X402SCRAPE_BASE_URL (optional) — defaults to https://402scrape.vercel.app. Override to point at a self-hosted or testnet deployment.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.1Registry latest14 Oct 20265
0.1.014 Oct 20265
0.0.0-stage14 Oct 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
redsoukas/402scrape

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7bb40a59164a17b02a5ae5f45fefd5ba6f71aae388a7912bd884dc4acf1ec3cf