> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up BTCPay Server in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/btcpay-server
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) 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](https://metorial.com/docs/platform/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

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **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.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from BTCPay Server.

4. **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:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "btcpay server"
```

## Employee: connect BTCPay Server

### In the portal

1. **Open BTCPay Server in the catalog**

   Sign in to your portal and open BTCPay Server. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (apiKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "btcpay server"
metorial setup <catalog-item-id>
```

`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.

```bash
metorial list "btcpay server"
metorial client list
metorial install <client-identifier> <integration-id>
```

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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "btcpay server"
metorial tools <integration-id>
metorial call <integration-id> get_server_info -d '{}'
```

`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. Needs `storeId`.

### Write tools (10)

- `manage_lightning`: Manage Lightning Network operations for a store, including checking balance, creating invoices, paying invoices (BOLT11), and viewing channels. Needs `action` and `storeId`.
- `manage_payment_requests`: Create, list, update, or archive shareable payment requests. Needs `action` and `storeId`.
- `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. Needs `storeId`.
- `manage_pull_payments`: Create, list, or archive pull payments. Needs `action` and `storeId`.
- `manage_payouts`: DEPRECATED — use `manage_payout_claims` instead. Needs `action` and `storeId`.
- `manage_wallet`: View on-chain wallet balance, list transactions, generate receive addresses, and create transactions for a store's wallet. Needs `action` and `storeId`.
- `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. Needs `action`.

### Destructive tools (1)

- `refund_invoice`: Issue a full or partial refund for a settled invoice. Needs `storeId` and `invoiceId`.

## 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](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use BTCPay Server there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [BTCPay Server on metorial.com](https://metorial.com/integrations/btcpay-server): the integration overview