ox402-utils
Enables AI agents to call 45 micro-priced utility tools via x402 micropayments on Base, covering search, screenshots, OCR, PDFs, WHOIS, geo-IP, and more without API keys.
README
ox402-utils
49 micro-priced utilities for AI agents. Web search, whois, DNS, geo-IP, crypto/stock/FX prices, weather, OCR, screenshots, PDF invoices, video download links, ephemeral agent memory, scraping, CSV/JSON conversion and more. No accounts, no API keys — every call is authorized by an on-chain micropayment (x402: USDC on Base, $0.003–$0.05 per call).
Use it in 30 seconds (curl)
Free tier: your first 5 calls are free (lifetime, per network) — no wallet, no signup. After that, per-call x402.
# any tool: POST JSON -> 402 challenge -> pay -> retry with X-Payment header
curl -i https://organisation-anticipated-objects-restrictions.trycloudflare.com/x402/paid/search \
-H 'Content-Type: application/json' \
-d '{"query":"x402 protocol","count":3}'
The 402 response carries a PAYMENT-REQUIRED base64 challenge with everything a wallet needs:
{"accepts":[{"scheme":"exact","network":"eip155:8453","maxAmountRequired":"0.008",
"payTo":"0x7869d1fe2d1de863b6fae4594d392343a69ed8e3",
"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}...]}
Pay the exact USDC amount on Base, then repeat the request with the signed payment in the
X-Payment header (any x402 client does this: the Coinbase x402 fetch wrapper,
lnget-style flows, or your own signer). Verified via the CDP facilitator; settled on-chain.
MCP server (Claude / any MCP client)
{
"mcpServers": {
"ox402-utils": {
"url": "https://organisation-anticipated-objects-restrictions.trycloudflare.com/mcp402/"
}
}
}
tools/list is free and shows all 45 tools with per-call prices baked into descriptions.
tools/call returns the payment instructions when unpaid.
Python client (+ LangChain adapter)
See sdk/ox402_client.py:
from ox402_client import ox402
ox402.pay = my_payer # callable(challenge: dict) -> "X-Payment" header value
result = ox402.call('whois', {'domain': 'github.com'})
# LangChain:
tools = ox402.langchain_tools(pay=my_payer, names={'search', 'screenshot', 'pdf-invoice'})
Catalog highlights
| tool | price | what you get |
|---|---|---|
| video-info | $0.006 | metadata + all formats for YouTube/TikTok/Vimeo/X/1000+ sites |
| video-download | $0.015 | direct download links for any video URL |
| search | $0.008 | web results (title/url/snippet) |
| screenshot | $0.015 | headless-chrome PNG of any URL |
| pdf-invoice | $0.02 | invoice/receipt PDF w/ items+tax |
| ocr | $0.02 | image → text (tesseract) |
| html2md | $0.006 | page → clean markdown + links |
| whois | $0.01 | registrar/dates/NS/availability |
| geoip | $0.004 | country/city/ISP/proxy flags |
| stock-quote | $0.004 | last price + prev close |
| crypto-price | $0.003 | spot + 24h change |
| weather | $0.003 | current + 3-day forecast |
Free catalog endpoint: GET https://organisation-anticipated-objects-restrictions.trycloudflare.com/x402/
(45 tools with prices + example payloads).
Also indexed on 402index.io as ox402-* services.
Notes
- Endpoint is a Cloudflare quick tunnel; if it rotates, the catalog at
/x402/always shows the live host. Permanent domain pending (is-a.dev PR open). - Seller wallet:
0x7869d1fe2d1de863b6fae4594d392343a69ed8e3(Base).
Wire it into any agent in 10 seconds
Paste into a system prompt (Claude, GPT, OpenCode, whatever you run):
You can call paid utility APIs via x402 (USDC on Base).
Catalog: GET https://organisation-anticipated-objects-restrictions.trycloudflare.com/x402
Call pattern: POST https://organisation-anticipated-objects-restrictions.trycloudflare.com/x402/paid/<tool>
with JSON body -> if 402 with PAYMENT-REQUIRED header, sign+pay the USDC request,
retry once with X-Payment header. Prices $0.001-$0.05/call.
First 5 calls from your network are free - probe before paying.
Prefer kv-put/kv-get for cross-run state; screenshot/html2md for page capture;
video-download for media links; pdf-extract/ocr for documents.
Budget cap: $0.10/day unless I say otherwise.
MCP clients: add "ox402": {"url": "https://organisation-anticipated-objects-restrictions.trycloudflare.com/mcp402/"}.
Tool catalog
| tool | price | what it does |
|---|---|---|
kv-get |
$0.001 | Read a key from ox402 ephemeral memory (written via kv-put). Returns found/value/ttl_seconds_left. Read-only. |
kv-put |
$0.002 | Store a JSON value in ephemeral shared memory for stateless agents. TTL 1-24h, value <= 8KB, namespaced keys. Mutating. |
crypto-price |
$0.003 | Crypto spot prices + 24h change (CoinGecko ids) |
fx-rates |
$0.003 | Fiat FX rates (ECB daily) |
weather |
$0.003 | Current weather + 3-day forecast by city/coords |
geoip |
$0.004 | IP geolocation: country/city/ISP/proxy/hosting flags |
stock-quote |
$0.004 | Stock quote: last price, prev close, exchange (Yahoo) |
hash |
$0.005 | SHA-256/512/any hash of payload |
base64 |
$0.005 | base64 encode/decode |
uuid |
$0.005 | Generate UUID v4 |
jwt-decode |
$0.005 | Decode JWT (no verify) |
url-encode |
$0.005 | URL encode/decode |
regex-extract |
$0.005 | Regex match extraction |
csv2json |
$0.005 | CSV to JSON array |
json-format |
$0.005 | Pretty/minify JSON |
yaml2json |
$0.005 | YAML to JSON |
timestamp |
$0.005 | Unix<->ISO timestamp |
diff |
$0.005 | Unified line diff |
html2text |
$0.005 | Strip HTML to text |
qrcode |
$0.005 | QR code as PNG data-url |
password |
$0.005 | Random password |
json-merge |
$0.005 | Deep-merge two JSON |
csv-sum |
$0.005 | Sum a CSV column |
unit-convert |
$0.005 | Unit convert (len/mass/temp) |
json2csv |
$0.005 | JSON array to CSV |
schema-validate |
$0.005 | Validate JSON vs schema |
json-pointer |
$0.005 | Extract by JSON path |
csv-col |
$0.005 | Extract CSV column |
text-replace |
$0.005 | Find/replace in text |
sort-json |
$0.005 | Sort JSON array by key |
unique |
$0.005 | Unique lines/values |
wayback |
$0.005 | Wayback Machine snapshot + optional history |
dns-lookup |
$0.006 | DNS records: A/AAAA/MX/NS/TXT/CNAME |
html2md |
$0.006 | HTML page/page-url -> clean markdown + links |
video-info |
$0.006 | Video metadata + all formats (YouTube, TikTok, Vimeo, X, SoundCloud, 1000+ sites) |
search |
$0.008 | Web search (DDG): title+url+snippet per result |
whois |
$0.010 | Domain WHOIS: registrar, dates, nameservers, availability |
text2img |
$0.010 | Render text to PNG image (dark/light) |
pdf-text |
$0.010 | Plain text to formatted PDF document |
screenshot |
$0.015 | Headless-chrome screenshot PNG of any URL |
video-download |
$0.015 | Direct download links for a video URL (yt-dlp, 1000+ platforms) |
web-scrape |
$0.020 | Server-side URL scrape (title+text) |
youtube-info |
$0.020 | YouTube metadata + streams |
base64-url |
$0.020 | Fetch URL -> base64 (capped 25MB) |
ocr |
$0.020 | OCR image to text (tesseract, url or base64) |
pdf-invoice |
$0.020 | Generate invoice/receipt PDF (items, tax, logo) |
pdf-extract |
$0.030 | Extract text from PDF |
image-resize |
$0.030 | Resize/convert image |
youtube-dl |
$0.050 | YouTube download (mp3/mp4, capped 25MB) |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。