Scrape402

io.github.scrape402由 GitHub 账号 scrape402 发布v1.0.0更新于 Oct 27, 2026

Pay-per-call agent tools via x402 (USDC on Base): chat, prices, funding, RNG. No account or keys.

已验证Streamable HTTP可网页运行金融AI 与机器学习

概览

AI 生成的概览

远程 MCP 服务器,提供按次付费工具:聊天补全、加密价格、资金费率和随机数,以 Base 上的 USDC 计费。

可以做什么
  • 查询交易对的加密货币现货价格
  • 获取永续合约资金费率,可按币种筛选
  • 生成加密强度的随机十六进制字节和均匀分布整数
  • 执行 OpenAI 风格的聊天补全(Claude Haiku),按 token 计费
  • 列出全部工具及其价格,并说明支付方式
适用场景
适合助手偶尔需要加密市场数据、随机数或快速聊天补全,又不想分别注册多个 API 账号,且能接受每次调用支付几分钱 USDC 的场景。
运行要求
远程 streamable HTTP 端点;未声明需要账号或 API 密钥。付费工具需要支持 x402 的客户端,并在 Base 上持有 USDC 的钱包,客户端需获得该钱包私钥(README 使用 X402_PRIVATE_KEY);聊天工具需要预付会话。catalog 工具免费。
安装前请注意
付费工具每次调用都会在链上结算真实 USDC,聊天工具按 token 计费,使用越多花费越高。README 要求把钱包私钥导出给客户端,这等于授予该钱包的花费权限,请使用金额很小的专用钱包。预付会话会把资金转到服务方的链下账户。调用会把提示词和查询内容发送给第三方服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Scrape402,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.scrape402%2Fscrape402/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "scrape402": {
      "type": "http",
      "url": "https://x402.shizu.me/mcp/rpc"
    }
  }
}

README

x402 examples — pay-per-call APIs for AI agents

Working examples for calling x402-gated HTTP APIs: your agent pays USDC per request on Base — no signup, no API keys, no subscription.

All examples run against x402.shizu.me (77 live endpoints, prices from $0.001/call): an OpenAI-compatible LLM gateway (/v1/chat/completions, /v1/embeddings, /v1/models), web search, a code sandbox, web scraping, live crypto/market data, verifiable randomness, and a prepaid off-chain metering rail for high-frequency loops (100+ calls/min, no per-call gas).

How x402 works

  1. Call any endpoint → the HTTP 402 response carries signed USDC payment requirements (price, asset, recipient).
  2. Pay — your x402 client signs the payment locally and retries automatically.
  3. Served — settlement is on-chain; you are only charged when the call succeeds. Errors and 4xx never settle.

Fund a wallet with a few dollars of USDC on Base, export its private key, and every example here just works.

JavaScript

bash
npm install x402-fetch viemexport X402_PRIVATE_KEY=0x...   # wallet holding USDC on Basenode js/chat.mjs

Python

bash
pip install x402 eth-account httpxexport X402_PRIVATE_KEY=0x...python python/chat.py

Examples

FileWhat it shows
js/chat.mjsOpenAI-compatible chat completion, paid per call
js/search.mjsLive web search without a search-API account
python/chat.pyChat completion via the Python x402 client
python/embeddings.pyOpenAI-shape embeddings for RAG loops
python/metered_loop.pyPrepay once, then 100+ calls/min off-chain

Just looking?

Every route quotes its price on a free unpaid request:

bash
curl -i https://x402.shizu.me/crypto        # → 402 + payment requirementscurl https://x402.shizu.me/llms.txt          # full catalog, agent-readable

Links

Live service: https://x402.shizu.me · OpenAPI: https://x402.shizu.me/openapi.json · MCP tools: https://x402.shizu.me/.well-known/mcp-tools · Contact: [email protected]

MIT licensed.

来源:README.md,提交 a9098e3

工具

5

random

Cryptographically-strong randomness: hex bytes plus an optional uniform integer in [min, max]. Pay per call via x402 ($0.003, USDC on Base), or 1 credit(s) with a prepaid session.

输入参数maxminbytes

crypto_price

Real-time crypto spot price for a trading pair (e.g. BTC-USD). Pay per call via x402 ($0.003, USDC on Base), or 1 credit(s) with a prepaid session.

输入参数pair

funding_rates

Perpetual-swap funding rates; optional comma-separated coins filter. Pay per call via x402 ($0.003, USDC on Base), or 1 credit(s) with a prepaid session.

输入参数coins

chat

OpenAI-style chat completion (Claude Haiku), billed per token off-chain. Needs a prepaid session.

输入参数messages必填max_tokenstemperature

catalog

List every scrape402 tool and price, and how to pay. Free — no session required.

无需输入参数。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分