qpay-mcp-server
v0.2.1MCP server that lets AI assistants pay x402 endpoints in Qubic (QU) through Q+Pay, with spending limits enforced in the server.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
qpay_check_price Check an endpoint's price
Request a URL without paying and report what it charges in QU, if anything: the price per request, how long one payment gives access, any prepaid-channel offer, and whether this server's limits would let qpay_fetch pay it. Use before qpay_fetch when the user has not said what they will spend. Example: "how much does https://api.example.com/feed cost?" -> url="https://api.example.com/feed".
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute http(s) URL of the endpoint, e.g. https://api.example.com/feed |
headers | object | Extra request headers, e.g. {"Accept": "application/json"} |
method | string | HTTP method |
qpay_fetch Fetch a paid endpoint
Request a URL and, if it answers 402 Payment Required (x402), pay it in QU from this server's wallet and return the response. Spends real money. The price is set by the endpoint. Payment is refused, before anything moves, when it exceeds max_qu or the server's limits. When the endpoint offers a prepaid channel and prefer_prepaid is true, the first call pays one deposit and later calls to that seller draw on it with no transaction. A free endpoint is simply fetched. Returns the status, what was paid (amount, seller, transaction id), and the response body as third-party content (cut at 25,000…
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute http(s) URL of the endpoint, e.g. https://api.example.com/feed |
body | string | Request body for POST/PUT/PATCH, sent as given; set Content-Type in headers |
headers | object | Extra request headers, e.g. {"Accept": "application/json"} |
max_qu | integer | Most this call may pay for the request, in QU. Lower than the server's per-request limit to be stricter; it cannot raise it |
method | string | HTTP method |
prefer_prepaid | boolean | Use the seller's prepaid channel when offered (one deposit, then no transaction per call) |
qpay_wallet_status Wallet status
Show this server's wallet address and QU balance, its spending limits, how much was paid in the last 24 hours and how much is left, and any prepaid credit held with sellers.
qpay_spending_history Spending history
List what this server has paid, newest first: time, amount, URL, seller and transaction id. Use offset to page through older payments.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many payments to return |
offset | integer | How many of the newest to skip, for paging |