Scrape402

io.github.scrape402Published by GitHub account scrape402v1.0.0Updated Oct 27, 2026

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

VerifiedStreamable HTTPWeb executableFinanceAI & ML

Overview

AI-generated overview

Remote MCP server offering pay-per-call tools — chat completions, crypto prices, funding rates and randomness — billed in USDC on Base.

What you can do
  • Get a crypto spot price for a trading pair
  • Fetch perpetual-swap funding rates, optionally filtered by coin
  • Generate cryptographically strong random hex bytes and uniform integers
  • Run an OpenAI-style chat completion (Claude Haiku), billed per token
  • List every tool and its price, and see how to pay
When to use it
Useful when an assistant needs occasional crypto market data, randomness or a quick chat completion without signing up for separate API accounts, and when paying a few cents per call in USDC is acceptable.
Requirements
Remote streamable HTTP endpoint; no account or API key declared. Paid tools require an x402 client with a wallet holding USDC on Base and its private key supplied to the client (the README uses X402_PRIVATE_KEY); the chat tool needs a prepaid session. The catalog tool is free.
Before you install
Paid tools settle real USDC payments on-chain per call, and the chat tool is billed per token, so costs accrue with use. The README asks you to export a wallet private key to the client, which grants spending authority over that wallet; use a small, dedicated wallet. Prepaid sessions move funds off-chain to the provider. Calls send your prompts and queries to a third-party service.

Installation

In SourceWeft

  1. Open Scrape402 in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.scrape402%2Fscrape402/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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.

Source: README.md at commit a9098e3

Tools

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.

Parametersmaxminbytes

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.

Parameterspair

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.

Parameterscoins

chat

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

Parametersmessagesrequiredmax_tokenstemperature

catalog

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

Takes no parameters.

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts