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
| Tool | What it does |
|---|---|
login_start | Send a one-time code to an email. |
login_verify | Verify the code; returns your XDC wallet address + session. |
wallet_address | Your XDC wallet address (fund it with USDC). |
wallet_balance | USDC + native XDC balance for an address. |
marketplace_list | Search/list the live catalog of paid services. |
call | Pay for and call a service URL (the full x402 flow). |
transactions | Your recent paid calls (with tx hashes). |
verify_transaction | Confirm a transaction settled on-chain. |
get_service_info, list_resources, inspect_resource | Service 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 →