Skip to Content
🚀 {xpay✦} is building the future of x402 payments - Join the developer beta →
xpay✦ ToolsReferenceAPI Overview

API Overview

Technical reference for the xpay✦ Tools MCP API.

Base URL

https://mcp.xpay.sh/mcp

All endpoints use the MCP JSON-RPC protocol over Streamable HTTP.

Authentication

Pass your API key as a query parameter:

https://mcp.xpay.sh/mcp?key=YOUR_API_KEY

API keys start with xpay_sk_ and can be created at xpay.tools  → Account → API Keys.

Protocol

All requests use the MCP protocol  (JSON-RPC 2.0):

curl -X POST "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Standard MCP Methods

MethodDescription
initializeInitialize the MCP session
tools/listList available tools
tools/callCall a tool

Error Codes

CodeErrorDescription
401UNAUTHORIZEDInvalid or missing API key
402INSUFFICIENT_BALANCENot enough credits for this call
403SPENDING_LIMIT_EXCEEDEDAPI key spending limit reached
429RATE_LIMITEDToo many requests
500UPSTREAM_ERRORThe provider’s server returned an error
502UPSTREAM_UNAVAILABLEThe provider’s server is unreachable

Rate Limits

  • Default: 60 requests per minute per API key
  • Burst: Up to 10 concurrent requests
  • Rate limit headers are included in responses

Content Type

All requests and responses use Content-Type: application/json.

Further Reference

  • Connection URLs — URL patterns for master, provider, and collection endpoints
  • Meta-Tools — Detailed docs for xpay_discover, xpay_details, xpay_run, xpay_balance
Last updated on: