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

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

Share Braintree with your team in Claude, ChatGPT and Cursor through Metorial: API keys sign-in, 26 tools (10 read-only).

---

To give your team Braintree in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Braintree integration in a Metorial portal, and each person connects with API keys. Agents can process payments and manage transactions across credit/debit cards, PayPal, Venmo, Apple Pay, Google Pay, and ACH Direct Debit. The integration has 26 tools, 10 read-only, 9 write and 7 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares Braintree in a portal and how each person connects
- What Braintree asks for when you connect, and where to find it
- How to keep the 10 read-only tools and reject the other 16

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- API keys from Braintree for each person, or one set 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 Keys** | Custom credentials | `merchantId`, `publicKey` and `privateKey` |

### API Keys

To connect, a person enters these values:

- `merchantId`: Your Braintree merchant ID
- `publicKey`: Your Braintree public key
- `privateKey`: Your Braintree private key

### Setup settings

Setup also asks for:

- `environment` (optional): Braintree environment to use One of "sandbox", "production".

## Admin: share Braintree 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 Braintree. For how members connect, choose **Each person connects** so everyone enters their own API keys, or **Shared connection** to enter the API keys once for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Braintree. 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 Braintree integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search braintree
```

## Employee: connect Braintree

### In the portal

1. **Open Braintree in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API keys (merchantId, publicKey and privateKey).

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 braintree
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Braintree 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 braintree
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 10 read-only tools, such as `find_dispute` and `find_customer`, and lose the 9 write tools, such as `create_customer` or `update_customer`, and the 7 destructive tools, such as `accept_dispute` or `delete_customer`.

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 braintree
metorial tools <integration-id>
metorial call <integration-id> search_disputes -d '{}'
```

`metorial tools` lists the 26 tools, minus any you rejected. `search_disputes` takes no input. 

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (10)

- `find_subscription`: Retrieves details of a Braintree subscription by its ID, including status, billing info, and payment method. Needs `subscriptionId`.
- `find_dispute`: Retrieves details of a specific Braintree dispute by its ID, including status, reason, amount, and deadline information. Needs `disputeId`.
- `find_payment_method`: Retrieves details of a vaulted payment method by its token from the Braintree vault. Needs `paymentMethodToken`.
- `find_customer`: Retrieves a Braintree customer by ID, including their stored payment methods and associated information. Needs `customerId`.
- `search_transactions`: Searches for transactions in Braintree using various filter criteria.
- `find_transaction`: Retrieves details of a specific Braintree transaction by its ID. Needs `transactionId`.
- `settlement_report`: Generates a settlement batch summary report for a given date. Needs `settlementDate`.
- `search_disputes`: Searches Braintree disputes by ID, status, type, reason, transaction, customer, or deadline dates.
- `search_subscriptions`: Searches Braintree recurring billing subscriptions by ID, plan, status, merchant account, transaction, trial state, and billing dates.
- `search_customers`: Searches Braintree customers by ID, email, name, company, phone, or created date.

### Write tools (9)

- `create_subscription`: Creates a new recurring billing subscription in Braintree. Needs `planId` and `paymentMethodToken`.
- `settle_transaction`: Submits an authorized Braintree transaction for settlement, optionally adjusting the amount. Needs `transactionId`.
- `create_transaction`: Creates a payment transaction in Braintree. Needs `paymentMethodId` and `amount`.
- `create_customer`: Creates a new customer record in the Braintree vault.
- `vault_payment_method`: Stores a payment method in the Braintree vault for future use. Needs `paymentMethodId`.
- `add_dispute_evidence`: Adds text evidence to a Braintree dispute for contestation. Needs `disputeId` and `content`.
- `update_customer`: Updates an existing Braintree customer's information. Needs `customerId`.
- `update_subscription`: Updates an existing Braintree subscription. Needs `subscriptionId`.
- `create_client_token`: Generates a Braintree client token for initializing client-side Braintree SDKs.

### Destructive tools (7)

- `delete_payment_method`: Removes a payment method from the Braintree vault. Needs `paymentMethodToken`.
- `refund_transaction`: Refunds or reverses a Braintree transaction. Needs `transactionId`.
- `void_transaction`: Voids a Braintree transaction that has not yet settled. Needs `transactionId`.
- `cancel_subscription`: Cancels a Braintree subscription. Needs `subscriptionId`.
- `finalize_dispute`: Finalizes a Braintree dispute submission, sending all added evidence to the payment processor. Needs `disputeId`.
- `accept_dispute`: Accepts a Braintree dispute, acknowledging the chargeback. Needs `disputeId`.
- `delete_customer`: Deletes a Braintree customer and all their associated payment methods. Needs `customerId`.

## Triggers

Braintree has 1 trigger, which fire on events in Braintree:

- `webhook_events`: Receives real-time webhook notifications from Braintree for subscriptions, transactions, disputes, disbursements, payment methods, and other gateway events.

## 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 Braintree there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Braintree on metorial.com](https://metorial.com/integrations/braintree): the integration overview