MetorialDocs

Set up Coinbase in Metorial for Claude, ChatGPT and Cursor

Share Coinbase with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or coinbase commerce API key sign-in, 18 tools (11 read-only).

To give your team Coinbase in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Coinbase integration in a Metorial portal, and each person signs in to Coinbase with their own account. Buy, sell, send, and receive cryptocurrency. The integration has 18 tools, 11 read-only, 3 write and 4 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Coinbase in a portal and how each person connects
  • The 22 OAuth scopes Coinbase can request, and what each one allows
  • How to keep the 11 read-only tools and reject the other 7

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (Sign in with Coinbase) (default)OAuthSigns in to Coinbase
Coinbase Commerce API KeyAPI tokentoken

The portal and metorial setup use OAuth (Sign in with Coinbase) unless someone picks another method.

OAuth (Sign in with Coinbase)

People sign in to Coinbase and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
wallet:user:readRead User ProfileRead the current user's public profile information
wallet:user:emailRead User EmailRead the current user's email address
wallet:accounts:readRead AccountsList and view cryptocurrency accounts and balances
wallet:accounts:createCreate AccountsCreate new cryptocurrency wallets
wallet:accounts:updateUpdate AccountsUpdate account properties such as name
wallet:accounts:deleteDelete AccountsDelete cryptocurrency wallets
wallet:transactions:readRead TransactionsView transaction history including sends, receives, buys, sells
wallet:transactions:sendSend TransactionsSend cryptocurrency to external addresses or Coinbase users
wallet:buys:readRead BuysView buy history
wallet:buys:createCreate BuysBuy cryptocurrency using a linked payment method
wallet:sells:readRead SellsView sell history
wallet:sells:createCreate SellsSell cryptocurrency using a linked payment method
wallet:deposits:readRead DepositsView deposit history
wallet:deposits:createCreate DepositsDeposit fiat from a bank account
wallet:withdrawals:readRead WithdrawalsView withdrawal history
wallet:withdrawals:createCreate WithdrawalsWithdraw fiat to a bank account
wallet:addresses:readRead AddressesList cryptocurrency addresses for an account
wallet:addresses:createCreate AddressesCreate new cryptocurrency receive addresses
wallet:payment-methods:readRead Payment MethodsList linked payment methods for buys, sells, deposits, and withdrawals
wallet:trades:readRead TradesView Coinbase Advanced Trade orders and fills
wallet:trades:createCreate TradesPreview and create Coinbase Advanced Trade orders
offline_accessOffline AccessReceive a refresh token so Coinbase access can be renewed

Coinbase Commerce API Key

To connect, a person enters:

  • token: Coinbase Commerce API key

Use your own Coinbase OAuth app

With your own OAuth app, people see your company's name on the Coinbase consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Coinbase and copy the Redirect URI.

Register the app with Coinbase

Create an OAuth app or client in Coinbase and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Coinbase integration.

Admin: share Coinbase 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 Coinbase. Under Auth Method, keep OAuth (Sign in with Coinbase) or pick another. For how members connect, choose Each person connects, so everyone signs in to Coinbase as themselves.

Limit the tools

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

Choose who gets it

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

metorial-admin portals access list <portal-id> --type provider_template --search coinbase

Employee: connect Coinbase

In the portal

Open Coinbase in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Coinbase sign-in tab opens. Sign in and approve the permissions listed.

Confirm

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

With the CLI

metorial catalog search coinbase
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth (Sign in with Coinbase). To connect with Coinbase Commerce API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Coinbase 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.

metorial list coinbase
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 11 read-only tools, such as get_prices and list_fills, and lose the 3 write tools, such as manage_accounts or manage_addresses, and the 4 destructive tools, such as send_crypto or manage_orders.

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 list coinbase
metorial tools <integration-id>
metorial call <integration-id> manage_portfolios -d '{"action":"list"}'

metorial tools lists the 18 tools, minus any you rejected. manage_portfolios needs action, so replace the placeholders. It lists Coinbase Advanced Trade portfolios or retrieve a portfolio breakdown with balances and spot positions.

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

Tools

Read-only tools (11)

  • get_exchange_rates: Retrieve current exchange rates for a base currency against all other supported currencies.
  • get_prices: Retrieve current or historical cryptocurrency prices. Needs currencyPair.
  • list_products: List available trading pairs (products) on the Advanced Trade platform, or get details for a specific product.
  • get_candles: Retrieve OHLCV (open, high, low, close, volume) candlestick data for a trading pair. Needs productId, start, end and granularity.
  • get_user_profile: Retrieve the authenticated user's profile including name, email, time zone, native currency, and avatar URL.
  • list_transactions: Retrieve transaction history for a Coinbase account. Needs accountId.
  • list_fills: List Advanced Trade fills, filtered by order, trade, product, asset, side, type, or time range.
  • list_payment_methods: List linked Coinbase payment methods, or get one payment method by ID.
  • get_market_data: Get Advanced Trade market data for a product: recent trades and best bid/ask, or order book levels. Needs action and productId.
  • manage_portfolios: List Coinbase Advanced Trade portfolios or retrieve a portfolio breakdown with balances and spot positions. Needs action.
  • get_transaction_summary: Get an Advanced Trade transaction summary, including fee tier, volume, fees, and total balance.

Write tools (3)

  • manage_addresses: List existing receive addresses or create a new one for a Coinbase account. Needs action and accountId.
  • manage_accounts: List, get, create, update, or delete Coinbase cryptocurrency wallets. Needs action.
  • manage_commerce_charges: Create, list, get, cancel, or resolve Coinbase Commerce charges for accepting crypto payments. Needs action.

Destructive tools (4)

  • send_crypto: Send cryptocurrency from a Coinbase account to an external address or another Coinbase user. Needs accountId, to, amount and currency.
  • deposit_withdraw: Deposit fiat currency from a bank account or withdraw fiat to a bank account. Needs action, accountId, amount, currency and paymentMethodId.
  • manage_orders: Preview, create, list, get, or cancel trading orders via the Advanced Trade API. Needs action.
  • buy_sell_crypto: Buy or sell cryptocurrency using a linked payment method. Needs action, accountId and currency.

Triggers

Coinbase has 3 triggers, which fire on events in Coinbase:

  • new_transactions: [Polling fallback] Polls for new transactions (sends, receives, buys, sells, transfers) across Coinbase accounts.
  • account_notifications: Triggered when account-level events occur on Coinbase, such as new transactions (sends, receives, buys, sells), wallet creation, and address-related events.
  • commerce_charge_events: Triggered when Coinbase Commerce charge lifecycle events occur, such as creation, confirmation, pending payment, failure, delayed, or resolution.

Next steps