obolpay-x402-mcp
obolpay-x402-mcp
📖 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.
Tools
Tool | What it does |
| Machine-readable service manifest (price, token, network, capabilities) |
| Free data sample + price from the 402 challenge (no spend) |
| One-shot on-chain pay-and-fetch |
| Fund a prepaid balance from a USDC deposit (once) |
| Balance, calls remaining, next nonce |
| Instant, gasless pay-per-call from the prepaid balance (no on-chain tx/gas) |
| Third-party verify a proof-of-purchase receipt |
Related MCP server: x402-mcp
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.pyClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"obolpay-x402": {
"command": "python",
"args": ["/absolute/path/to/x402_mcp_server.py"],
"env": { "X402_AGENT_PRIVATE_KEY": "0x..." }
}
}
}Links
Live endpoint: https://x402.obolpay.xyz
Discovery manifest: https://x402.obolpay.xyz/.well-known/x402
Reference client (non-MCP): https://x402.obolpay.xyz/client.py
Built on x402 + Base. USDC micropayments for the AI agent economy.
Maintenance
Tools
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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