xrplme.online MCP Server
xrplme.online menyediakan data ekonomi dan regulasi berbasis sumber untuk agen AI di 30 negara, dibayar per kueri dalam XRP melalui protokol pembayaran mikro x402 di XRP Ledger. Server MCP-nya mengekspos alat untuk mencantumkan negara, memeriksa status negara, membaca harga, dan menjalankan riset regional — tanpa kunci API dan tanpa akun: agen membaca manifes publik dan membayar per panggilan.
Dokumentasi
130 countries · x402 on XRP, Solana and Base · Pay per query in XRP, RLUSD or USDC · Try our new bot — SwapItXBot →
API
130 countries of source-backed economic, policy and regulatory data for AI agents. Pay per query in XRP, RLUSD or USDC on the XRP Ledger, Solana or Base. No API keys. No subscriptions. No sign-up.
The short version: call the endpoint, get a 402 with the price and receiving address, pay that amount, retry the same call with the payment proof, get your data. One payment buys one call.
Quick start
1. Send a request
# Country Brief — $1 (XRPL: pay in XRP or RLUSD)
POST https://xrplme.online/wc/v1/thailand/bot
Content-Type: application/json
{"message": "Tourism numbers for Thailand Q2 2025", "session_id": "demo-001"}
# Same data, USDC on Solana
POST https://xrplme.online/wc/v1/thailand/bot-solana
# Same data, USDC on Base
POST https://xrplme.online/wc/v1/thailand/bot-evm
2. Receive 402 Payment Required
{
"x402Version": 2,
"resource": { "url": "https://xrplme.online/wc/v1/thailand/bot", ... },
"accepts": [{
"scheme": "exact",
"network": "xrpl:0",
"amount": "1000000", // drops = 1 XRP
"asset": "XRP",
"payTo": "",
"extra": { "sourceTag": 804681468, "invoiceId": "7BEE..." }
}]
}
3. Pay and retry with proof
Pay in XRP or RLUSD (Ripple USD, issuer rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De) via Xaman or Joey, or sign programmatically with the xrpl SDK. Pay USDC via any Solana Pay wallet, or any Base wallet. Then retry the identical request with the payment proof attached.
# XRPL — signed transaction hash + the invoice id from the 402
X-PAYMENT-SIGNATURE: <tx_hash>
X-INVOICE-ID: <invoice_hash>
# Solana — base64 payment payload
x_sol_payload: <base64_payment_payload>
# Base — the transaction hash of your own USDC transfer
PAYMENT-SIGNATURE: {"txHash":"0x..."}
Base (USDC) payments
Same country data, same three tiers, same request body and response shape as XRPL and Solana — payable in USDC on Base.
POST https://xrplme.online/wc/v1/{country}/bot-evm 1.00 USDC
POST https://xrplme.online/wc/v1/{country}/bot-evm/ai $7.00 USDC
POST https://xrplme.online/wc/v1/{country}/bot-evm/custom $15.00 USDC
The 402 challenge
HTTP/1.1 402 Payment Required
{
"x402Version": 2,
"accepts": [{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000000",
"payTo": "",
"extra": { "settlement": "onchain-transfer", "decimals": 6 }
}]
}
Paying on Base
- Send at least the tier amount in USDC on Base to the
payToaddress. - Copy the transaction hash from your wallet or a Base explorer.
- Retry the same POST with that hash in the payment header.
curl -X POST https://xrplme.online/wc/v1/thailand/bot-evm \
-H "Content-Type: application/json" \
-H 'PAYMENT-SIGNATURE: {"txHash":"0x..."}' \
-d '{"message":"recent policy changes"}'
A 200 returns the records. One transfer buys one call: a reused hash returns 409, a transfer below the tier price or older than one hour is rejected with 402, and a payment on another chain or to another address is not accepted. The transfer is verified directly against Base — nothing sits between your payment and the data.
Rehearse without real money
A Base Sepolia twin runs the identical verification: POST /wc/v1/{country}/bot-evm-test[/ai|/custom] on eip155:84532, same prices in test USDC. It verifies the payment and returns a receipt, and does not serve records — paid data is only served on the production rails.
Endpoints
Every country this API sells, with the rails it actually answers on and the price it quotes right now, is published as machine-readable JSON: /countries.json. It is regenerated from live calls against each country route, so it cannot drift from what the servers do.
| Endpoint | XRPL | Solana | Base | What you get |
|---|---|---|---|---|
GET /wc/v1/{country}/health | FREE | FREE | FREE | Availability, record count, last refresh |
POST /wc/v1/{c}/bot | 1 XRP | — | — | Country Brief — source-backed records |
POST /wc/v1/{c}/bot/ai | 7 XRP | — | — | Deep Concierge — AI-parsed answer |
POST /wc/v1/{c}/bot/custom | 15 XRP | — | — | Custom Bounded — up to 3 countries, scoped research |
POST /wc/v1/{c}/bot-solana | — | 1 USDC | — | Country Brief |
POST /wc/v1/{c}/bot-solana/ai | — | 7 USDC | — | Deep Concierge |
POST /wc/v1/{c}/bot-solana/custom | — | 15 USDC | — | Custom Bounded — up to 3 countries |
POST /wc/v1/{c}/bot-evm | — | — | 1 USDC | Country Brief |
POST /wc/v1/{c}/bot-evm/ai | — | — | 7 USDC | Deep Concierge |
POST /wc/v1/{c}/bot-evm/custom | — | — | 15 USDC | Custom Bounded — up to 3 countries, scoped research |
POST /mcp | x402 per tool call | MCP protocol for AI agents | ||
Each rail also has /custom at ≈15 XRP / $15.00 USDC, covering up to 3 countries per call — all 130 countries accept it. Slugs are long names: thailand, hong_kong, papua-new-guinea. All 130 are listed on the countries page.
Endpoint tester
Pick a country, rail and tier, then send. You will get the live 402 challenge with the exact price and address. Paying from this page works on Base only — a browser can hand back a Base transaction hash, but XRP and Solana must be signed by a wallet before sending.
Country Brief
Source-backed records
Deep Concierge
AI-parsed answer
POST https://xrplme.online/wc/v1/thailand/bot
Press "Send query" to see the live 402 challenge.
Example queries
Same request format on every endpoint. Paste these into the tester above.
# Country Brief — ≈1.10 XRP / 1.00 USDC
"What are Thailand business registration requirements?"
# Deep Concierge — ≈7.70 XRP / $7.00 USDC
"Compare data residency rules across Vietnam, Singapore and Indonesia"
# Custom Bounded — ≈16.5 XRP / $15.00 USDC (up to 3 countries)
"Full regulatory posture for entering the Japanese payments market"
Request format
{
"message": "your question in plain English",
"session_id": "any string you choose"
}
Both fields are strings. session_id is for your own correlation — the server echoes nothing personal and stores no identity.
cURL examples
# Free health check
curl https://xrplme.online/wc/v1/thailand/health
# See the 402 challenge (XRPL)
curl -X POST https://xrplme.online/wc/v1/thailand/bot \
-H "Content-Type: application/json" \
-d '{"message":"recent policy changes"}'
# Pay on Base with your transaction hash
curl -X POST https://xrplme.online/wc/v1/thailand/bot-evm \
-H "Content-Type: application/json" \
-H 'PAYMENT-SIGNATURE: {"txHash":"0x..."}' \
-d '{"message":"recent policy changes"}'
Data feeds
Four single-purpose feeds sit alongside the country endpoints and are priced the same way: customs (import duty rates by product code), FX (reference rates), weather (conditions and air quality), and tenders (public procurement notices). Each is a POST to /wc/v1/{slug}/bot-evm-<feed>, and each is also an MCP tool: xrplme_customs, xrplme_fx, xrplme_weather, xrplme_tenders. Feed catalogue →
What each product costs
Every price below is the live price. There is no annual contract, no minimum, and no sales call. Call an endpoint without payment and it returns the quote for that call.
| Product | Price | What you get |
|---|---|---|
| Country Brief | ≈1.10 XRP · $1.00 USDC | Any of the 130 countries: structured records with freshness and citation |
| Deep Concierge | ≈7.70 XRP · $7.00 USDC | An answer composed over those records, not a link list |
| Custom Bounded | ≈16.5 XRP · $15.00 USDC | Up to 3 countries in one scoped call |
| Deep record set | 2 XRP · $2.00 USDC | The full record set for one of the 26 deep countries |
| Sanctions screening | 2 XRP · $2.00 USDC | Watchlist check on a person or company name |
| Entity look-up | 1 XRP · $1.00 USDC | Registry match for a company |
| Ownership chain | 5 XRP · $5.00 USDC | Parents, subsidiaries and the path to the ultimate owner |
| Aggregate | $20.00 · 20 XRP | One country group in a single call; $50.00 for the full portfolio |
| Intent search | $1.00 | Match a query against intents other agents posted |
| Intent Pro, 30 days | $19.00 | Post up to 20 intents and read the analytics |
| Feeds: customs, FX, weather, tenders | 1 XRP · $1.00 USDC | Per call, any country |
Which rail settles what
All three rails carry the same products. XRP settles on the XRP Ledger; USDC settles on Solana, or on Base. Base charges $1.00 per standard call. Feeds are flat-priced on every rail, with no country surcharge.
Every tier is priced in dollars. XRP and XLM are converted at request time, so the figure in the 402 quote is the one to pay — XRP figures on this page are indicative conversions, marked ≈.
How far the data reaches
All 130 countries answer Country Brief and Deep Concierge. 26 of them carry a hand-checked deep record set — named on the deep records page, and those same 26 can be compared in one call with aggregate. The country list marks which is which, so a quote never overstates what a country holds.
MCP for AI agents
11 tools. Six are free (discovery, health, pricing, survey); five are paid per query over x402.
| Tool | Returns | Access | Price |
|---|---|---|---|
xrplme_list_countries | All 130 countries with slug, name, live status | Free | — |
xrplme_get_country_status | Health probe: records and last refresh | Free | — |
xrplme_get_pricing | Pricing on all three rails | Free | — |
xrplme_get_country_data | Source-backed economic, policy, regulatory data | Paid | 1 XRP / $1.00 |
xrplme_get_country_schema | Structured record plus freshness | Paid | 1 XRP / $1.00 |
xrplme_screen | Sanctions screening for a person or company | Paid | $2.00 |
xrplme_entity_lookup | Company look-up and permanent entity ID | Paid | $1.00 |
xrplme_entity_ownership | Ownership chain to the ultimate parent | Paid | $5.00 |
xrplme_get_survey_questions | Survey questions for agents | Free | — |
xrplme_submit_survey | Submit agent feedback | Free | — |
xrplme_get_survey_stats | Aggregated survey statistics | Free | — |
Connect
POST https://api.xrplme.online/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "agent", "version": "1.0" }
}
}
# Python (mcp SDK)
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client("https://api.xrplme.online/mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("xrplme_list_countries", {})
print(result)
# Node.js (@modelcontextprotocol/sdk)
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const transport = new StreamableHTTPClientTransport(
new URL("https://api.xrplme.online/mcp")
);
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(transport);
const result = await client.callTool({ name: "xrplme_list_countries", arguments: {} });
console.log(result);
Investigate: screening and company look-up
Two more datasets on the same rails. Check a person or company against official watchlists before you deal with them. Look up a company and walk its ownership to the ultimate parent. Pay per call, no signup, no key.
| Dataset | Price | Endpoints |
|---|---|---|
| Screening | $2.00 / check | /wc/screen/bot · -solana · -evm |
| Company look-up | $1.00 / lookup | /wc/entity/lookup/bot · -solana · -evm |
| Ownership tree | $5.00 / tree | /wc/entity/ownership/bot · -solana · -evm |
curl -X POST https://xrplme.online/wc/screen/bot-evm \
-H "Content-Type: application/json" \
-d '{"name":"Smith Holdings Ltd"}'
More detail on the Investigate page.
No USDC? Fund your wallet with a card
The rails accept XRP on the XRP Ledger, or USDC on Solana or Base. If you hold none, buy USDC with a debit or credit card at Crossmint — Apple Pay and Google Pay work — using your own wallet as the destination, then pay the endpoint from that wallet.
- This site has no card checkout and no account system. We never hold your funds and never ask for a private key or seed phrase.
- The 402 tells your agent the exact amount and receiving address. Your agent pays that amount and retries the same request.
- Agents that already hold USDC or XRP skip this step — they just pay the 402.
SDKs and examples
- Python, Node, LangChain, LlamaIndex
- MCP client repo
- Agent examples directory — REST API, MCP SDK, CrewAI
- MCP server repo (agent-card.json + server.json)
- xrpl.js / xrpl-py
Proof of delivery
Every paid call on the Solana and Base rails returns a signed receipt: it proves these exact bytes came from xrplme.online, for that payment, from that dataset build. Read it at /proof/{receipt_id} — the id is in the X-Receipt-Id response header — and check the signature against the public key at /proof/pubkey. No account, no API key.
Each day’s receipts are fingerprinted at /proof/daily/{date} and chained to the day before, so history cannot be quietly rewritten.
Response schema (v1)
All paid API responses follow the v1 JSON schema at schema/v1/response-schema.json.
meta— country_slug, query_id, retrieved_at, schema_version, payment (rail + TXID + amount + invoice_id), data_freshnesssources[]— primary source URLs with publisher, published date, confidence scorefacts— structured by domain (company_formation, labor, tax, crypto_regulation, trade)synthesis— summary, key_risks, comparison_hooks, confidence_overall, contradictions_foundagent_hints— recommended_followup_tools, related_countries, update_frequency_days
{
"meta": {
"country_slug": "thailand",
"query_id": "q_thailand_...",
"retrieved_at": "2026-11-22T12:00:00Z",
"payment": {"rail": "xrpl", "txid": "E5A...", "amount": "1 XRP", "invoice_id": "..."},
"schema_version": "1.0.0"
},
"sources": [...],
"facts": {...},
"synthesis": {...},
"agent_hints": {...}
}