AjiGhufron9999

x402-agent-data

Community AjiGhufron9999
Updated

Paid on-chain data for AI agents over x402 (USDC on Base). MCP server + HTTP API, no signup, pay per call.

x402-agent-data

Paid on-chain data for AI agents (and humans). Pay per call in USDC on Base over HTTP 402 (x402) —no signup, no API key, no account. The money goes straight to the wallet advertised in the 402response; nothing is held by the service.

  • Landing / discovery: https://x402-agent.majighufron.workers.dev
  • MCP server (remote, streamable HTTP): https://x402-agent.majighufron.workers.dev/mcp
  • Machine-readable catalogue: https://x402-agent.majighufron.workers.dev/api
  • Agent instructions: https://x402-agent.majighufron.workers.dev/llms.txt

x402 flow: 402 challenge, paid call returning data, MCP tools list

Services

Service Price What you get
token_report · GET /api/token-report $0.01 ERC-20 metadata, supply, recent transfer activity, optional pool balance. Chains: Base, Base Sepolia, Robinhood Chain
pool_risk · GET /api/pool-risk $0.02 Pool reserves, implied price, constant-product slippage for a given notional
wallet_profile · GET /api/wallet-profile $0.03 Transfers in/out, distinct counterparties, first and last block seen
contract_dd · GET /api/contract-dd $0.05 Due-diligence signals: risky selectors present in bytecode, owner + renounced status, activity, largest-transfer share

Free endpoints: / discovery · /api catalogue · /llms.txt agent text · /api/sample truncatedreport so you can check the data shape before paying · /mcp MCP server (the service_catalogtool is free).

Use it from an MCP client

Add the remote server to any MCP client (Claude Desktop, Cursor, or your own agent):

{
  "mcpServers": {
    "x402-agent-data": {
      "type": "streamable-http",
      "url": "https://x402-agent.majighufron.workers.dev/mcp"
    }
  }
}

Tools: service_catalog (free), token_report, pool_risk, wallet_profile, contract_dd.Call a paid tool once without payment_signature and it returns the payment requirements; pay,then call again with payment_signature = base64 of {"txHash":"0x…"}.

Use it over plain HTTP

# 1. Ask without paying -> HTTP 402 + payment requirements
curl -s "https://x402-agent.majighufron.workers.dev/api/token-report?chain=base&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

# 2. Send the quoted USDC amount to the payTo address on Base (USDC, 6 decimals)

# 3. Retry with the proof
TX=0x…   # your transfer hash
PROOF=$(printf '{"txHash":"%s"}' "$TX" | base64)
curl -s -H "PAYMENT-SIGNATURE: $PROOF" \
  "https://x402-agent.majighufron.workers.dev/api/token-report?chain=base&token=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

A proof is single-use and must be from the last 15 minutes. If the service itself fails (upstreamRPC throttling), it answers 503 retryable: true and releases your proof, so you can call againwithout paying twice.

See examples/pay_and_fetch.py for a runnable walkthrough.

Why it exists

On-chain data is usually sold as a monthly subscription behind an API key. Agent software cannotfill in signup forms, so this exposes the same data per call: the HTTP 402 response is the pricelist, and the wallet is the identity.

Honest limits

  • Upstream public RPCs throttle shared egress IPs, so a call can occasionally answer 503;proofs are released so retries are free.
  • contract_dd reports signals, not verdicts: selector presence says what is in the bytecode,not how it behaves. Proxies and dead code both hide intent.
  • Payment uses a plain USDC transfer plus a proof header (self-verified). It is not the EIP-3009facilitator flow yet.

License

MIT

MCP Server · Populars

MCP Server · New

    SylphxAI

    anymd

    Any file → clean Markdown for AI agents: PDF, Word, PowerPoint, Excel, EPUB, HTML and web pages, images (OCR), audio and video (metadata, subtitles, transcripts). A fast Rust MCP server and CLI that runs on your machine. No API key.

    Community SylphxAI
    nokia-steward

    Redfish MCP Server

    MCP Server

    Community nokia-steward
    getsentry

    mobilebuildmcp

    A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

    Community getsentry
    feder-cr

    invisible_playwright_mcp

    Your AI agent browses the web without captchas: self-hosted Python MCP server on undetected anti-detect stealth Firefox, for browser automation, scraping, computer use.

    Community feder-cr
    odds-api

    odds-api/odds-api

    OpenAPI sports betting odds API for coding agents with REST examples, SDKs, MCP, mock mode, arbitrage, positive EV, and bookmaker comparison.

    Community odds-api