Skip to main content
Glama

CleanRead-402

Universal x402, A2A & Remote MCP Clean Web Reader for AI Agents ($0.05 USDC, Zero API Keys): Converts any URL into token-compressed, LLM-ready Markdown and structured links for Claude, Cursor, LangChain, ElizaOS, and Coinbase AgentKit.

License: MIT Network: Base Mainnet MCP: 2024-11-05 A2A: Agent Card


Why CleanRead-402?

AI agents waste 70–95% of their context window parsing bloated raw HTML (<script>, <style>, trackers, navbars, cookie banners) or hit monthly SaaS paywalls and API key sign-ups.

CleanRead-402 is a stateless, zero-dependency Node.js ES Module micro-node deployed on Vercel Edge/Serverless with direct on-chain Base L2 USDC settlement (x402):

  • $0.05 USDC Per Call (50000 base units) — Zero API Keys, Zero Subscriptions: Pay per request on Base Mainnet (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) to 0x6137ED1A93c8CFF1a6C3112A14bE04883f58E5F7 and pass X-Payment-Tx: <0x_tx_hash>.

  • Stateless Base RPC Verification: Verifies status === "0x1", USDC Transfer log amount >= 50000, and block timestamp within 600 seconds directly against https://mainnet.base.org (fallback https://base.llamarpc.com).

  • Free Schema & Preview Mode (?demo=true): Returns the first 600 characters of clean Markdown + full token-compression telemetry (originalBytes, compressedBytes, estimatedTokensSaved), edge-cached for 60s so agents and MCP registries can test at zero cost.

  • Triple-Protocol Interoperability: Native Remote MCP (2024-11-05), Google A2A (/.well-known/agent.json + /a2a), and x402 REST (/api/v1/extract).


Related MCP server: CleanPage

4-Line Remote MCP Setup (Claude Desktop / Cursor / Windsurf)

Add to claude_desktop_config.json or .cursor/mcp.json (see examples/claude_mcp_config.json):

{
  "mcpServers": {
    "cleanread-402": { "url": "https://cleanread-402.vercel.app/mcp" }
  }
}

Exposed MCP Tools

  1. extract_clean_markdown — Converts any http:// or https:// URL into clean, token-compressed Markdown ({ title, url, cleanMarkdown, originalBytes, compressedBytes, estimatedTokensSaved, links }). Supports demo: true (free) or payment_tx: "0x..." ($0.05 USDC).

  2. batch_extract_links — Extracts deduplicated, absolute structured links ([{ text, url }]) and byte/token compression stats across up to 3 URLs in parallel.


REST & x402 Micro-API Usage

1. Free Demo Preview (HTTP 200, Edge-Cached 60s)

curl "https://cleanread-402.vercel.app/api/v1/extract?url=https://modelcontextprotocol.io/introduction&demo=true"

2. Unpaid Request -> Standard HTTP 402 Payment Required Invoice

curl -i "https://cleanread-402.vercel.app/api/v1/extract?url=https://modelcontextprotocol.io/introduction"

Returns standard x402 JSON:

{
  "x402Version": 1,
  "payTo": "0x6137ED1A93c8CFF1a6C3112A14bE04883f58E5F7",
  "network": "base",
  "chainId": 8453,
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "maxAmountRequired": "50000",
  "priceUsdc": "0.05",
  "paymentHeader": "X-Payment-Tx"
}

3. Paid Full Extraction (X-Payment-Tx)

curl "https://cleanread-402.vercel.app/api/v1/extract?url=https://modelcontextprotocol.io/introduction" \
  -H "X-Payment-Tx: 0xYOUR_BASE_MAINNET_USDC_TX_HASH"

Agent SDK Examples


6-Layer AI Discovery Surface (Access-Control-Allow-Origin: *)

Layer

Endpoint

Purpose

x402 Manifest

/.well-known/x402.json

x402 Bazaar & Coinbase AgentKit discovery

MCP Manifest

/.well-known/mcp.json

Remote MCP 2024-11-05 streamable-http manifest

A2A Agent Card

/.well-known/agent.json

Google A2A skills (url-to-markdown, web-reader)

LLMs Index

/llms.txt

Markdown index for LLM crawlers & RAG

OpenAPI 3.1

/openapi.json

OpenAPI 3.1 spec with x-payment-required: true

Crawler Policy

/robots.txt

Welcomes GPTBot, ClaudeBot, PerplexityBot, Google-Extended


Self-Verification Suite

node test_x402.mjs https://cleanread-402.vercel.app

License

MIT License — see LICENSE. Maintained by @meer9374-a11y.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Converts any URL to clean, token-efficient Markdown for AI agents. Strips ads, navigation, and scripts. Supports CSS selectors, batch processing (10 URLs), token counting, and smart caching.
      3
      3 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to convert any URL into clean, structured, agent-optimized content with a single paid call, paying $0.02 USDC per successful extraction via x402 on Base without API keys or accounts.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to fetch any public web page as clean Markdown, retrieve page metadata (title, description, canonical URL, OpenGraph/Twitter cards, JSON-LD), and crawl a page plus up to four linked same-site pages. Calls are paid per use in USDC via x402/MPP with no API key or account, and invalid inputs or unfetchable pages are never charged.
      3
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and LLM pipelines to fetch and crawl web pages, extract readable content, and convert it into clean Markdown with preserved links while minimizing token usage.
      MIT