Set up BTCPay Server in Metorial for Claude, ChatGPT and Cursor
Share BTCPay Server with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 15 tools (4 read-only).
To give your team BTCPay Server in Claude, ChatGPT, Cursor and other AI clients, an admin shares the BTCPay Server integration in a Metorial portal, and each person connects with an API key. Accept cryptocurrency payments with BTCPay Server. The integration has 15 tools, 4 read-only, 10 write and 1 destructive, plus 2 triggers.
What you'll learn
- How an admin shares BTCPay Server in a portal and how each person connects
- What BTCPay Server asks for when you connect, and where to find it
- How to keep the 4 read-only tools and reject the other 11
Before you start
- A portal with at least one access group
- An API key from BTCPay Server for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | apiKey |
API Key
To connect, a person enters:
apiKey: BTCPay Server API key. Generate one under Account → Manage account → API keys in your BTCPay Server instance.
Setup settings
Setup also asks for:
instanceUrl: Base URL of your BTCPay Server instance (e.g., https://btcpay.example.com)
Admin: share BTCPay Server in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose BTCPay Server. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from BTCPay Server.
Choose who gets it
Add the access groups that should see BTCPay Server. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user BTCPay Server integration. Once it exists, check which groups have it:
Employee: connect BTCPay Server
In the portal
Open BTCPay Server in the catalog
Sign in to your portal and open BTCPay Server. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your BTCPay Server connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_invoices and get_server_info, and lose the 10 write tools, such as manage_stores or manage_wallet, and the destructive tool refund_invoice.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 15 tools, minus any you rejected. get_server_info takes no input. It retrieves information about the BTCPay Server instance, including version, supported payment methods, and current user details.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
get_store_payment_methods: Discover payment method IDs and enabled status for a store.get_current_user: Get the authenticated BTCPay Server user profile without requesting server information.get_server_info: Retrieve information about the BTCPay Server instance, including version, supported payment methods, and current user details.get_invoices: Retrieve a single invoice by ID or list invoices for a store with optional filtering by status, order ID, date range, and text search. NeedsstoreId.
Write tools (10)
manage_lightning: Manage Lightning Network operations for a store, including checking balance, creating invoices, paying invoices (BOLT11), and viewing channels. NeedsactionandstoreId.manage_payment_requests: Create, list, update, or archive shareable payment requests. NeedsactionandstoreId.manage_payout_claims: List, retrieve, create, approve, cancel, or mark store payouts as paid.get_notifications: Retrieve in-app notifications for the authenticated user.create_invoice: Create a new payment invoice for a store. NeedsstoreId.manage_pull_payments: Create, list, or archive pull payments. NeedsactionandstoreId.manage_payouts: DEPRECATED — use `manage_payout_claims` instead. NeedsactionandstoreId.manage_wallet: View on-chain wallet balance, list transactions, generate receive addresses, and create transactions for a store's wallet. NeedsactionandstoreId.manage_invoice: Update invoice metadata, archive or unarchive an invoice, or manually mark its status.manage_stores: Create, list, retrieve, update, or delete stores on a BTCPay Server instance. Needsaction.
Destructive tools (1)
refund_invoice: Issue a full or partial refund for a settled invoice. NeedsstoreIdandinvoiceId.
Triggers
BTCPay Server has 2 triggers, which fire on events in BTCPay Server:
payout_events: Triggers when payout status changes occur, including approval, completion, and cancellation.invoice_events: Triggers when invoice status changes occur, including creation, payment, settlement, expiration, and invalidation.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use BTCPay Server there
- Tool permissions: tool filters and what employees see
- BTCPay Server on metorial.com: the integration overview