MCP
The MCP endpoint is https://api.dexra.dev/mcp, over Streamable HTTP. tools/list returns every tool with its JSON schema and price; tools/call runs one and returns the answer as text and as structuredContent.
- With a key, paid calls use your credits. The answer's
_meta["dexra/subscription"]carries the plan and the credits left. - When a call needs a payment, the result is an error whose
structuredContentholds the x402 requirements and whose text says why (credits used up, Free not covering the call, email not confirmed). Pay one of theacceptsand repeat the call with the payment inparams._meta["x402/payment"]or aPayment-Signatureheader. - Past the per-second limit, the result is an error with
retry-afterin its meta; wait and retry. - A JSON-RPC batch holds at most 20 messages.