ClearMD

面向 AI 智能体的按次付费网页工具:将任意 URL 转换为整洁的 Markdown,还支持 PDF 文本、RSS、链接、QR、CSV 转 JSON、外汇、天气等。通过 x402 在 Base 上使用 USDC 支付,每次调用 $0.001 至 $0.002,并提供免费预览。远程 MCP 端点:https://clearmd.clearmd.workers.dev/mcp

托管 MCP 服务器

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

可安装到 Claude Code、Codex、Cursor 等客户端

文档

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