ClearMD

Pay-per-call web tools for AI agents: turn any URL into clean Markdown, plus PDF text, RSS, links, QR, CSV to JSON, FX, weather and more. $0.001 to $0.002 per call in USDC on Base via x402, with a free preview. Remote MCP endpoint at https://clearmd.clearmd.workers.dev/mcp

Hosted MCP Server

npx add-mcp 'https://clearmd.clearmd.workers.dev/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

ClearMD

Pay-per-call tools for AI agents. Read any public web page as clean Markdown, plus small helper tools. Pay a fraction of a cent per call in USDC on Base with x402.

from $0.001 per callno account, no API keyfailed calls are freeMCP serverOpenAPIv1.1.0

Try it free

The free preview returns the first 2000 characters and is rate-limited. The full read costs $0.001.

Tools and prices

EndpointWhat it doesPrice per callMCP tool
GET | POST /v1/readPublic URL to clean Markdown$0.001read_url
GET | POST /v1/extractHTML to structured JSON$0.002extract_page
GET | POST /v1/pdfPDF to text$0.002pdf_text
GET | POST /v1/feedRSS and Atom reader$0.002read_feed
GET | POST /v1/linksSitemap and link extractor$0.002extract_links
GET | POST /v1/domainDNS, RDAP, and TLS lookup$0.002domain_lookup
GET | POST /v1/imageImage metadata$0.002image_meta
GET | POST /v1/fxECB foreign exchange rates$0.002fx_rate
GET | POST /v1/weatherWeather forecast$0.002weather_forecast
GET | POST /v1/qrQR code (SVG)$0.002make_qr
POST /v1/csvCSV to JSON and back$0.002csv_json
POST /v1/scoreReadability scores$0.002readability
GET | POST /v1/headersHTTP headers and redirects$0.002http_headers
POST /v1/cron/nextCron next runs$0.001cron_next
POST /v1/diffText diff$0.001text_diff
POST /v1/evm/decodeEVM calldata / event log decoder$0.001evm_decode
POST /v1/time/convertTime zone convert, add, diff$0.001time_convert

Prices are in USDC. Invalid input, blocked URLs, and failed fetches return 4xx or 5xx and are not charged. URL fetches do not run JavaScript and respect robots.txt.

Call it with curl

# free preview
curl "https://clearmd.clearmd.workers.dev/v1/read/preview?url=https://example.com/"

# paid read: without payment you get HTTP 402 and a PAYMENT-REQUIRED header with the exact terms
curl -i "https://clearmd.clearmd.workers.dev/v1/read?url=https://example.com/"

Pay automatically with an x402 client (Node)

import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.BUYER_KEY); // a buyer wallet with a little USDC on Base
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://clearmd.clearmd.workers.dev/v1/read?url=https://example.com/");
console.log((await res.json()).markdown);

npm i @x402/fetch @x402/evm viem. The buyer wallet needs a little USDC on Base. The client reads the 402, signs the payment, and retries.

Connect over MCP

Streamable HTTP endpoint: https://clearmd.clearmd.workers.dev/mcp. Every paid route is also an MCP tool. Your MCP client must support x402 payments for paid tools.

{
  "mcpServers": {
    "clearmd": {
      "url": "https://clearmd.clearmd.workers.dev/mcp"
    }
  }
}

For agents and crawlers