# Coinbase — how to use (mcp.ai)

Connect your Coinbase account and use 28 tools for developer tools straight from your AI agent. Connect with your own API key. Coinbase is a platform for buying, selling, transferring, and storing cryptocurrency.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_coinbase?ms=1787293440000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `coinbase_get_asset_details`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/coinbase`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/coinbase/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/coinbase/get/asset/details` — Retrieve detailed information about a specific asset from Coinbase International Exchange. Use to get asset status, collateral weights, and borrowing limits.
  - body: { asset: string }
- `POST https://api.mcp.ai/api/coinbase/get/exchange/currency` — Tool to retrieve detailed information about a specific currency from Coinbase Exchange API. Use when you need to get currency details like min/max precision, status, type (crypto/fiat), payment method
  - body: { currency_id: string }
- `POST https://api.mcp.ai/api/coinbase/get/instrument/details` — Tool to get complete details for a specific trading instrument on Coinbase International Exchange. Use when you need instrument configuration, trading parameters, margin requirements, or 24-hour stati
  - body: { instrument: string }
- `POST https://api.mcp.ai/api/coinbase/get/instruments/funding` — Get historical funding rates for a specific instrument from Coinbase International Exchange. Use this to retrieve funding rate history with mark price and event time data.
  - body: { instrument: string, result_limit?: integer, result_offset?: integer }
- `POST https://api.mcp.ai/api/coinbase/get/instruments/quote` — Tool to get the current quote for a specific trading instrument on Coinbase International Exchange. Use when you need current bid/ask prices, recent trade information, or mark prices for a trading pai
  - body: { instrument: string }
- `POST https://api.mcp.ai/api/coinbase/get/instruments/volumes/daily` — Tool to retrieve daily trading volume data for specified instruments on Coinbase International Exchange. Use when you need historical volume metrics for perpetual futures or spot instruments.
  - body: { time_from?: string, show_other?: boolean, instruments: string, result_limit?: integer, result_offset?: integer }
- `POST https://api.mcp.ai/api/coinbase/get/market/product/book` — Get the current order book (market depth) for a specific product. Returns bids, asks, last price, mid-market price, and spread information. Use when you need to analyze market depth or liquidity for a
  - body: { limit?: integer, product_id: string, aggregation_price_increment?: string }
- `POST https://api.mcp.ai/api/coinbase/get/product` — Tool to retrieve detailed information about a specific product (trading pair) from Coinbase Exchange. Use when you need to get configuration details, trading limits, or status for a specific cryptocur
  - body: { product_id: string }
- `POST https://api.mcp.ai/api/coinbase/get/product/book` — Retrieves the order book for a specific product on Coinbase Exchange. The order book shows current bids (buy orders) and asks (sell orders) with their prices and sizes. Use this to analyze market dept
  - body: { level?: integer, product_id: string }
- `POST https://api.mcp.ai/api/coinbase/get/products/ticker` — Tool to get real-time ticker information for a specific product on Coinbase Exchange. Use when you need current price, bid/ask, volume, or last trade data for a trading pair.
  - body: { product_id: string }
- `POST https://api.mcp.ai/api/coinbase/get/products/volume/summary` — Tool to retrieve volume summaries for all trading products on Coinbase Exchange. Use when you need to get trading volume data across all products for 24-hour and 30-day periods.
- `POST https://api.mcp.ai/api/coinbase/get/public/market/trades` — Tool to get public market trades for a specific product (trading pair). Returns recent trades along with current best bid and ask prices. Use when you need to view recent trading activity for a crypto
  - body: { end?: string, limit: integer, start?: string, product_id: string }
- `POST https://api.mcp.ai/api/coinbase/get/server/time` — Tool to retrieve the current server time from Coinbase Advanced Trade API. Use when you need to synchronize timestamps for request signing or time-sensitive operations.
- `POST https://api.mcp.ai/api/coinbase/get/supported/networks` — Tool to retrieve supported blockchain networks for a specific cryptocurrency asset on Coinbase International Exchange. Use when you need to understand which networks (e.g., Bitcoin, Ethereum) support 
  - body: { asset: string }
- `POST https://api.mcp.ai/api/coinbase/get/wrapped/asset/conversion/rate` — Tool to get the current conversion rate for a wrapped asset on Coinbase Exchange. Use when you need to check the exchange ratio between a wrapped asset and its underlying asset (e.g., cbETH to ETH2). 
  - body: { wrapped_asset_id: string }
- `POST https://api.mcp.ai/api/coinbase/list/assets` — Tool to retrieve all supported assets from the Coinbase International Exchange. Use when you need information about available trading assets, their status, or collateral properties.
- `POST https://api.mcp.ai/api/coinbase/list/currencies` — Tool to get all known currencies from Coinbase Exchange API. Use when you need to retrieve the complete list of available currencies for trading, including both fiat and cryptocurrencies with their de
- `POST https://api.mcp.ai/api/coinbase/list/exchange/products` — Tool to retrieve all known trading pairs from Coinbase Exchange. Returns comprehensive information about each trading pair including trading limits, status, and configuration. Use when you need to dis
  - body: { type?: string }
- `POST https://api.mcp.ai/api/coinbase/list/instruments` — Tool to list all instruments available for trading on Coinbase International Exchange. Use when you need to retrieve information about tradable instruments including spot and perpetual futures markets
- `POST https://api.mcp.ai/api/coinbase/list/instruments/candles` — Tool to retrieve aggregated candle (OHLCV) data for instruments on Coinbase International Exchange. Use when you need historical price and volume data for trading pairs like BTC-PERP or ETH-PERP.
  - body: { end?: string, start: string, instrument: string, granularity: string }
- `POST https://api.mcp.ai/api/coinbase/list/loans/assets` — Tool to retrieve all assets available for loans from the Coinbase Exchange. Use when you need information about which assets can be borrowed or used as collateral for loans.
- `POST https://api.mcp.ai/api/coinbase/list/market/products` — Tool to list market products from Coinbase Advanced Trade API. Returns available trading pairs with detailed information including prices, volumes, trading limits, and status. Use when you need to dis
  - body: { limit?: integer, cursor?: string, offset?: integer, product_ids?: string[], product_type?: string, get_all_products?: boolean, products_sort_order?: string, contract_expiry_type?: string, expiring_contract_status?: string }
- `POST https://api.mcp.ai/api/coinbase/list/product/candles` — Tool to retrieve historical candlestick (OHLCV) data for a specific trading product on Coinbase Advanced Trade. Use when you need price history, charting data, or market analysis over time intervals. 
  - body: { end?: string, start?: string, product_id: string, granularity: string }
- `POST https://api.mcp.ai/api/coinbase/list/products/candles` — Tool to retrieve historical candlestick (OHLCV) data for a trading pair. Use when you need price history, chart data, or market analysis for a specific product over time.
  - body: { end?: string, start?: string, product_id: string, granularity?: integer }
- `POST https://api.mcp.ai/api/coinbase/list/products/stats` — Tool to get 24-hour statistics for a product on Coinbase Exchange. Use when you need current price data, trading volume, or price ranges for a specific trading pair.
  - body: { product_id: string }
- `POST https://api.mcp.ai/api/coinbase/list/products/trades` — Tool to retrieve recent trades for a specific product from Coinbase Exchange API. Use when you need to see trade history for a trading pair.
  - body: { after?: integer, limit?: integer, before?: integer, product_id: string }
- `POST https://api.mcp.ai/api/coinbase/list/wallets` — Retrieve all wallets from Coinbase via the CDP SDK.
  - body: { limit?: integer, order?: string, ending_before?: string, starting_after?: string }
- `POST https://api.mcp.ai/api/coinbase/list/wrapped/assets` — Tool to retrieve all wrapped assets from Coinbase Exchange. Use when you need to get information about wrapped cryptocurrency assets, their supply, conversion rates, and APY.

## Example prompts
- "What can I do in Coinbase?"
- "Show me a summary of my Coinbase account"

## More
- Page: https://mcp.ai/coinbase
- Agent spec (llms.txt): https://mcp.ai/coinbase/llms.txt
- Postman collection: https://mcp.ai/coinbase/postman.json
