MCP Servers
Each creator gets an MCP server at https://api.usexpay.xyz/mcp/:username. xPay turns your registered endpoints into MCP tools agents can call directly.
How it works
On initialize, xPay creates (or resumes) a per-user MCP server session
Tools are generated from endpoints; descriptions include method and cost
Input schemas are derived from your
sampleBodyandhttpMethodPayment is bypassed for protocol list/initialize methods, enforced for tool calls
Session management
POST /mcp/:usernamewith MCP payloadsGET /mcp/:usernameandDELETE /mcp/:usernamefor session operationsUse
mcp-session-idheader to persist and reuse sessions
Best practices
Provide realistic
sampleBodyandsampleResponseKeep names clear and descriptive for agent discovery
Use fair, simple pricing to encourage agent adoption
Learn more about the MCP protocol
Read the official MCP protocol documentation
Last updated