Skip to main content
Glama

obolpay-x402-mcp

Listed on Glama

📖 Tutorial: Let your AI agent autonomously buy data — x402 + gasless prepaid + MCP on Base

MCP server for the live Obolpay x402 gateway — pay-per-call premium data for AI agents, settled in USDC on Base mainnet via HTTP 402.

Give any MCP-compatible agent (Claude Desktop, etc.) the ability to discover → evaluate (free preview) → pay once → then call GASLESS forever → verify a signed receipt — autonomously.

🚀 Copy-paste examples (start here) → examples/

No MCP needed to try it. Zero setup, no wallet, stdlib only:

python3 examples/quickstart_preview.py   # evaluate the data QUALITY for free (trustless preview)

Then buy today's verifiable openunit value with one signed USDC micropayment (buy_openunit.py), or drop it into a LangChain/any-LLM agent as a tool (agent_tool.py). Full walkthrough: examples/README.md.

Related MCP server: @true402.dev/mcp-server

Tools

Tool

What it does

discover()

Machine-readable service manifest (price, token, network, capabilities)

preview()

Free data sample + price from the 402 challenge (no spend)

purchase()

One-shot on-chain pay-and-fetch

topup(tx_hash)

Fund a prepaid balance from a USDC deposit (once)

balance(address)

Balance, calls remaining, next nonce

spend_gasless()

Instant, gasless pay-per-call from the prepaid balance (no on-chain tx/gas)

verify_receipt(message, signature)

Third-party verify a proof-of-purchase receipt

Why it's different

  • Free preview before paying — evaluate the data, no blind spend.

  • Prepaid GASLESS balance — deposit USDC once, then unlimited cheap calls via off-chain signed vouchers.

  • Signed receipts — EIP-191 proof-of-purchase, verifiable at /verify-receipt.

  • Freshness SLA + auto-refund — stale data is auto-refunded to your balance.

  • Delta delivery (X-Since-Seq) — only new items, saves your context tokens.

Run

pip install -r requirements.txt          # mcp[cli], web3, eth-account, requests
export X402_AGENT_PRIVATE_KEY=0x...       # a Base wallet with USDC + a little ETH for gas
# optional: export X402_BASE_URL=https://x402.obolpay.xyz   (default)
python x402_mcp_server.py

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "obolpay-x402": {
      "command": "python",
      "args": ["/absolute/path/to/x402_mcp_server.py"],
      "env": { "X402_AGENT_PRIVATE_KEY": "0x..." }
    }
  }
}

Built on x402 + Base. USDC micropayments for the AI agent economy.

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

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

Tools

Related MCP Servers

  • A
    license
    C
    quality
    C
    maintenance
    MCP server bringing 100+ x402-paid APIs to AI agents (Claude, Cursor, MCP-aware clients). Auto-discovers tools from CDP Bazaar; handles USDC micropayments on Base.
    100
    54
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    MCP server for the x402 protocol that lets AI agents discover and call payment-gated HTTP APIs automatically.
    185
    Apache 2.0
  • A
    license
    -
    quality
    B
    maintenance
    MCP server that allows AI agents to discover and pay for thousands of APIs (x402 on Solana/Base) using a single key, with automatic payment handling and a federated catalog of machine-payable endpoints.
    236
    MIT

View all related MCP servers

Related MCP Connectors

  • Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.

  • MCP marketplace: agents pay per call in USDC via x402. Plus Base chain data and a USDC<->bank ramp.

  • Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call

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/Hiroshi-Ichiyanagi/obolpay-x402-mcp'

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