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.
| Address | What it does | Sign-in |
|---|---|---|
https://coinspay.app/mcp | searches and reads these docs | none |
https://coinspay.app/mcp/shop | works with your shop, plus the same docs | through 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
| Tool | What it does | Permission |
|---|---|---|
get_shop | the shop, mode and permissions of the connection | — |
list_payment_options | networks, coins and price currencies | — |
create_invoice, list_invoices, get_invoice, cancel_invoice | invoices | Invoices |
pay_test_invoice | pays a test invoice | Invoices, test mode |
create_address, list_addresses, get_address | receiving addresses | Payments |
list_payments, get_payment, get_balances | payments and balances | Payments |
list_payouts, get_payout, quote_payout | payouts and quotes | Payments |
request_payout, get_payout_request | a payout request and its outcome | Payout requests |
search_docs, list_docs, get_doc | these 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".