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
| Endpoint | What it does | Price per call | MCP tool |
|---|---|---|---|
GET | POST /v1/read | Public URL to clean Markdown | $0.001 | read_url |
GET | POST /v1/extract | HTML to structured JSON | $0.002 | extract_page |
GET | POST /v1/pdf | PDF to text | $0.002 | pdf_text |
GET | POST /v1/feed | RSS and Atom reader | $0.002 | read_feed |
GET | POST /v1/links | Sitemap and link extractor | $0.002 | extract_links |
GET | POST /v1/domain | DNS, RDAP, and TLS lookup | $0.002 | domain_lookup |
GET | POST /v1/image | Image metadata | $0.002 | image_meta |
GET | POST /v1/fx | ECB foreign exchange rates | $0.002 | fx_rate |
GET | POST /v1/weather | Weather forecast | $0.002 | weather_forecast |
GET | POST /v1/qr | QR code (SVG) | $0.002 | make_qr |
POST /v1/csv | CSV to JSON and back | $0.002 | csv_json |
POST /v1/score | Readability scores | $0.002 | readability |
GET | POST /v1/headers | HTTP headers and redirects | $0.002 | http_headers |
POST /v1/cron/next | Cron next runs | $0.001 | cron_next |
POST /v1/diff | Text diff | $0.001 | text_diff |
POST /v1/evm/decode | EVM calldata / event log decoder | $0.001 | evm_decode |
POST /v1/time/convert | Time zone convert, add, diff | $0.001 | time_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
- /llms.txt: plain-text summary with every route and price
- /openapi.json: OpenAPI 3.1 with
x-payment-infoper paid route - /.well-known/x402: x402 resource list
- /.well-known/mcp.json and /mcp/server-card: MCP server card
- /.well-known/ai-catalog.json: AI catalog
- /health: status and live prices