Skip to main content
Glama

ox402-utils

面向 AI agent 的 49 个微计费工具。 网络搜索、whois、DNS、IP 地理定位、加密货币/股票/外汇价格、天气、OCR、截图、PDF 发票、视频下载链接、agent 临时记忆、网页抓取、CSV/JSON 转换等。无需账户、无需 API 密钥——每次调用均通过链上微支付(x402:Base 链上的 USDC,每次调用 $0.003–$0.05)完成授权。

30 秒快速上手(curl)

免费层:前 5 次调用免费(终身,按网络计算)——无需钱包,无需注册。 之后每次调用走 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}'

402 响应中携带一个 PAYMENT-REQUIRED base64 挑战(challenge),其中包含钱包所需的全部信息:

{"accepts":[{"scheme":"exact","network":"eip155:8453","maxAmountRequired":"0.008",
  "payTo":"0x7869d1fe2d1de863b6fae4594d392343a69ed8e3",
  "asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}...]}

在 Base 上支付精确的 USDC 金额,然后将签名笔支付放入 X-Payment 请求头中重发发起请求(任何 x402 客户端都会自动执行此流程:包括 Coinbase 的 x402 fetch 封装、lnget 风格流程、或你自己的签名器)。验证经由 CDP facilitator 完成,结算发生在链上。

Related MCP server: 2s

MCP 服务器(Claude 或任意 MCP 客户端)

{
  "mcpServers": {
    "ox402-utils": {
      "url": "https://organisation-anticipated-objects-restrictions.trycloudflare.com/mcp402/"
    }
  }
}

tools/list 免费,并给出全部 45 个工具,以及每次调用的价格已写入描述;tools/call 会在未支付时返回支付说明。

Python 客户端(+ LangChain 适配器)

参见 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'})

目录亮点

工具

价格

内容

video-info

$0.006

元数据 + 全部支持格式(YouTube/TikTok/Vimeo/X/1000+ 站)

video-download

$0.015

任意视频 URL 的直接下载链接者

search

$0.008

网页搜索结果(标题/网址/摘要)

screnshot

$0.015

任意 URL 的 headless-chrome PNG 截图

pdf-templates

$0.02

发票/收据 PDF(含项与税费)

ocr

$0.02

图片→文本(tessract,URL 或 base64)

html2md

$0.006

网页 → 干净的 Markdown 与链接

whois

$0.01

注册商/日期/NS/可用性

geoip

$0.004

国家/城市/ISP/代理/主机标志

stock-quote

$0.004

最新价 + 前收盘价

crypto- price

$0.003

现货价 + 24h 涨跌

weather

$0.003

当前天气 + 3 天预报

免费目录接口:GET https://organisation-anticipated-objections-restrictions.trycloudflare.com/x402/ (45 个工具,含价格和示例 payload)。

同时作为 ox402-* 服务收录于 402index.io

备注

  • 端点为 Cloudflare 即时 tunnel;若其地址轮换,可从 /x402/ 的目录页随时取得它是当前主机。永久域名申请中(is-a.dev 的 PR 已开启)。

  • 卖家钱包(收款方):0x7869d1ff...(Base 链)。

10 秒把接入任何 agent

将以下内容复制到系统提示(Claude、GPT、OpenCode,或者你运行的其他 agent):

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 客户端:添加 MCP 配置 "ox402": {"url": "https:// ..."}

工具目录

工具

价格

作用

kv-get

$0.001

从 ox402 临时记忆读取某个键值(通过 kv-put 写入)。返回 found/value/ended/ 期 ttl_seconds_left。只读。

kv-put

$0.002

为无状态 agent 发送临时共享内存中存一个 JSON 值。TTL 1–24h,值 ≤8KB,键带命名空间。为写(改变状态)操作。

crypto-price

0.003

加密货币现货价格 + 24h 幅度(CoinGecko ids)

fx-rates

0.003

法币汇率(ECB 每日)

weather

0.003

按城市/坐标查询当前天气与 3 天预报

geoip

0.004

IP 定位:国家/城市/isp/代理 / 数据中心标记

stock-quote

0.004

股票数据(最新价、收盘价、交易所,Yahoo)

hash

0.005

对 payload 计算 SHA-256/512 / 任意哈希

base64

0.005

base64 编 / 解码

uuid

0.005

生成 UUID v4

jwt-解码

0.005

JWT 解码(不验证)

url-encode

0.005

URL 编 cipher / 解码

regex-提取

0.005

正则 apply 匹配提取结果

csv2json

0.005

将 CSV 转换成 JSON 数组

json-format

0.005

美观化/压缩 JSON

yaml2json

0.005

YAML 转 JSON

timestamp

0.005

Unix 时间戳与 ISO 格式转换

diff

0.005

生成 unified 格式行 diff

html2text

0.005

剥离 HTML 生成纯文本

qrcode

0.005

生成 PNG 格式 data-url 二维码

password

0.005

随机密码生成

json-merge

0.005

深度合并两个 JSON

csv-sum

0.005

对 CSV 列求和

unit-convert

0.005

单位换算(长度/质量/时间)

json2csv

0.005

JSON 数组转 CSV

schema-validate

0.005

用 schema 校验 JSON

json-pointer

0.005

通过 JSON 路径取值

csv-col

0.005

抽出 CSV 列

text-replace

0.005

文本查找替换

sort-json

0.005

按键对 JSON 数组排序

unique

0.005

去重行/值

wayback

0.005

Wayback Machine 历史页面 查询

dns-lookup

0.006

域名查询记录:A/AAAA/MX/NS/ T XT/ CNAME 等

html2md

0.006

HTML/页面 URL 转成干净的 Markdown(含链接)

video-info

0.006

视频元数据 + 全部格式(支持 YouTube、TikTok 、Snack、X、Soundcloud、1000+ 站)

search

0.008

网络搜索(DDG):每个结果返回站名/标题+链接+摘要

whois

$0.010

域名信息:注册商、时间、ns、可用性

text2img

0.010

文本转 PNG(明/亮风格)

pdf-text

$0.010

将纯文本转成 PDF 文档(含格式、字号)

screenshoot

$0.015

无头 Chrome 截取网页任意 URL 的 PNG 图片

video-download

0.015

为视频 URL 解析出直接下载链接(yt-dlp,1000+)平台

web-scrape

0.020

服务器端抓取 URL,提取标题与正文

youtube-info

0.020

YouTube 元数据与转码流

base64-url

0.020

取地址并返回其内容(base64 编码,最大 25M)

ocr

0.020

OCR 扫取图像为文字(tesseract,支持 URL 或 base64)

pdf-invoice

0.020

生成发票/收据 PDF(商品、税额、logo)

pdf-extract

0.030

从 PDF 提取其中的文本

image-resize

0.030

调整图片大小/格式转换

youtube-dl

0.050

下载 YouTube 视频(mp3/mp4,25MB 上限)

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

  • Pay-per-call web scraping for AI agents via x402 on Base USDC. Six tools, no signup.

  • Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hasned-spec/ox402-utils'

If you have feedback or need assistance with the MCP directory API, please join our Discord server