Skip to content

Getting started

AI assistants (MCP)

You can connect your shop to an AI assistant: Claude, ChatGPT, Cursor, VS Code and other MCP clients. The assistant creates and checks invoices, looks at payments and balances, and prepares payouts. Only a person can send money, in the dashboard.

AddressWhat it doesSign-in
https://coinspay.app/mcpsearches and reads these docsnone
https://coinspay.app/mcp/shopworks with your shop, plus the same docsthrough the dashboard or with an API key

Connecting

  • Claude (claude.ai and Claude Desktop): "Settings" → "Connectors" → "Add custom connector", address https://coinspay.app/mcp/shop.
  • ChatGPT: add a custom connector with this address in the connector settings.
  • Claude Code: claude mcp add --transport http coinspay https://coinspay.app/mcp/shop
  • Cursor, file ~/.cursor/mcp.json: { "mcpServers": { "coinspay": { "url": "https://coinspay.app/mcp/shop" } } }
  • VS Code, file .vscode/mcp.json: { "servers": { "coinspay": { "type": "http", "url": "https://coinspay.app/mcp/shop" } } }

On the first call the CoinsPay dashboard opens. Sign in, choose the shop, the mode and the permissions, and confirm with your password or two-factor code. The connection appears on the shop's "API" tab, where you can also disconnect it. Every new connection is reported to you in Telegram.

If signing in through a browser does not suit you, pass an API key in the Authorization: Bearer cpk_… header instead. An invoices-only key gives the invoices permission, a full-access key gives all of them. The key's IP allowlist applies here too.

Permissions and mode

  • Invoices: create, find and cancel invoices; in test mode, also pay a test invoice without coins.
  • Payments and balances: receiving addresses, payments, balances, the payout list and payout quotes. The assistant cannot set automatic payout recipients for an address: that is done only in the dashboard.
  • Payout requests: see below.

In test mode only invoices are available, and they are all test ones, as with a cpk_test_… key.

Payouts need your confirmation

The request_payout tool does not send money. It creates a request with fixed amounts: MAX and percentages become exact amounts based on the current balance. You get a message in Telegram.

The payout is created by a person on the request page in the dashboard, after entering a password or two-factor code. The page shows the recipient addresses in full and highlights any address this shop has never paid to. A request is valid for 30 minutes. The assistant learns the outcome with get_payout_request.

This way an instruction slipped to the assistant in the data (for example, in an order title) cannot move the shop's money.

Tools

ToolWhat it doesPermission
get_shopthe shop, mode and permissions of the connection—
list_payment_optionsnetworks, coins and price currencies—
create_invoice, list_invoices, get_invoice, cancel_invoiceinvoicesInvoices
pay_test_invoicepays a test invoiceInvoices, test mode
create_address, list_addresses, get_addressreceiving addressesPayments
list_payments, get_payment, get_balancespayments and balancesPayments
list_payouts, get_payout, quote_payoutpayouts and quotesPayments
request_payout, get_payout_requesta payout request and its outcomePayout requests
search_docs, list_docs, get_docthese docs—

The sign-in token lasts an hour and renews itself. A connection stops working when you disconnect it on the "API" tab, and also when you change your password or two-factor settings or choose "Sign out other sessions".