x402 is a payment protocol for AI agents, built on the XRP Ledger. It enables:
Think of it as “HTTP 402 Payment Required” but for AI agents.
Asia-Pacific: Thailand, Vietnam, Japan, Singapore, Indonesia, Malaysia, Philippines, Australia, New Zealand, Taiwan, Hong Kong, Macau, Brunei, Laos, Myanmar, Timor-Leste, Papua New Guinea
Europe: Germany, France, Italy, UK, Netherlands
Americas: USA, Canada, Mexico, Brazil
Middle East: UAE
AI Agent → xrplme.online MCP Server → x402 Payment → Data Response
https://api.xrplme.online/mcpimport httpx import xrpl # 1. Initialize MCP client async with httpx.AsyncClient() as client: # 2. Send initialize request response = await client.post( "https://api.xrplme.online/mcp", json={ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "my-agent", "version": "1.0"} } } ) # 3. Check for payment required if response.status_code == 402: payment_info = response.json() print(f"Pay {payment_info['amount']} XRP to {payment_info['payTo']}") # 4. Execute XRP payment # ... payment logic here ... # 5. Retry with payment headers response = await client.post( "https://api.xrplme.online/mcp", headers={ "X-Payment-Signature": signature, "X-Inv-Id": invoice_id }, json={...} ) # 6. Get data! data = response.json()
| Data Type | Cost (XRP) | Cost (USD) |
|---|---|---|
| Country list | FREE | $0 |
| Status check | FREE | $0 |
| Tourism data | 1 XRP | ~0.06 |
| AI-parsed insights | 5 XRP | ~0.15 |
Example: A full analysis of Thailand's tourism sector costs 5 XRP (~15 cents)).
We support both:
curl -X POST https://api.xrplme.online/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'
curl https://api.xrplme.online/api/v1/thailand/bot \
-H 'Content-Type: application/json' \
-d '{"message":"Get tourism data"}'
https://api.xrplme.online/mcpWe're building the infrastructure for AI agents to access real-world data autonomously. Our mission: make economic data from 30+ countries accessible to any AI agent with an XRP wallet.
Questions? Reach out via the contact form on xrplme.online.