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 分