Set up Braintree in Metorial for Claude, ChatGPT and Cursor
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'll 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 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, 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 IDpublicKey: Your Braintree public keyprivateKey: 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
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 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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Braintree.
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:
Employee: connect Braintree
In the portal
Open Braintree in the catalog
Sign in to your portal and open Braintree. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API keys (merchantId, publicKey and privateKey).
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 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.
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.
Check it worked
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. NeedssubscriptionId.find_dispute: Retrieves details of a specific Braintree dispute by its ID, including status, reason, amount, and deadline information. NeedsdisputeId.find_payment_method: Retrieves details of a vaulted payment method by its token from the Braintree vault. NeedspaymentMethodToken.find_customer: Retrieves a Braintree customer by ID, including their stored payment methods and associated information. NeedscustomerId.search_transactions: Searches for transactions in Braintree using various filter criteria.find_transaction: Retrieves details of a specific Braintree transaction by its ID. NeedstransactionId.settlement_report: Generates a settlement batch summary report for a given date. NeedssettlementDate.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. NeedsplanIdandpaymentMethodToken.settle_transaction: Submits an authorized Braintree transaction for settlement, optionally adjusting the amount. NeedstransactionId.create_transaction: Creates a payment transaction in Braintree. NeedspaymentMethodIdandamount.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. NeedspaymentMethodId.add_dispute_evidence: Adds text evidence to a Braintree dispute for contestation. NeedsdisputeIdandcontent.update_customer: Updates an existing Braintree customer's information. NeedscustomerId.update_subscription: Updates an existing Braintree subscription. NeedssubscriptionId.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. NeedspaymentMethodToken.refund_transaction: Refunds or reverses a Braintree transaction. NeedstransactionId.void_transaction: Voids a Braintree transaction that has not yet settled. NeedstransactionId.cancel_subscription: Cancels a Braintree subscription. NeedssubscriptionId.finalize_dispute: Finalizes a Braintree dispute submission, sending all added evidence to the payment processor. NeedsdisputeId.accept_dispute: Accepts a Braintree dispute, acknowledging the chargeback. NeedsdisputeId.delete_customer: Deletes a Braintree customer and all their associated payment methods. NeedscustomerId.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use Braintree there
- Tool permissions: tool filters and what employees see
- Braintree on metorial.com: the integration overview