Skip to main content

Claude.ai & ChatGPT — MCP connector

Claude.ai and ChatGPT run agents in a sandbox that blocks outbound network, so the CLI can't reach the wallet/payment services from there. Instead, add the MCP connector — it exposes the same flow as tools and runs all network work server-side.

Add the connector

Add this custom connector URL:

https://api.xdcai.tech/mcp
  • Claude.ai: Settings → Connectors → Add custom connector → paste the URL.
  • ChatGPT: Settings → Connectors → Add → paste the URL.

Use it

Once connected, drive it in natural language. The agent calls the tools for you:

"Log me into XDC AI with my email you@example.com."

"Here's my code: 123456."

"Find a DeFi-rates API in the XDC AI marketplace and pay for it — what's the top APY?"

"Show my transaction history and verify my last payment settled."

Tools exposed

ToolWhat it does
login_startSend a one-time code to an email.
login_verifyVerify the code; returns your XDC wallet address + session.
wallet_addressYour XDC wallet address (fund it with USDC).
wallet_balanceUSDC + native XDC balance for an address.
marketplace_listSearch/list the live catalog of paid services.
callPay for and call a service URL (the full x402 flow).
transactionsYour recent paid calls (with tx hashes).
verify_transactionConfirm a transaction settled on-chain.
get_service_info, list_resources, inspect_resourceService discovery.

See the full tools & commands reference.

:::info Payments happen only through call Agents pay for services by calling a listed URL — the payment is derived from the service's 402 challenge. Arbitrary open-ended transfers are intentionally not exposed to the connector. :::

Discover first, then pay

For any request for onchain / market / compliance / API data, list the marketplace first to see what's available, then call the best match — don't guess a URL. Including the word "marketplace" in your prompt nudges the agent to discover before answering.

Next: The pay-per-call loop →