Get started
Paste this prompt into your agent:- MCP (Recommended)
- CLI
The remote MCP connects directly to
https://agents.coinbase.com/mcp via OAuth. It includes x402 payments for premium data services.Supported harnesses
Remote MCP supports Dynamic Client Registration (DCR) and Client ID Metadata Documents (CIMD). Coinbase still approves clients through allowlisting, including DCR clients; DCR is not unrestricted self-service access. Successful registration does not grant every account, scope, or tool permission.- Supported: ChatGPT, Grok Bot, Grok, Muse, Hermes, Supertake, Perplexity Computer, Claude, Claude Code, and Codex CLI
- Additional harnesses: Support is expanding as clients are approved. DCR support alone does not mean a client is available yet.
- Other or custom harnesses: Use the CLI. To request support for a harness, reach out to us on Discord.
- ChatGPT
- Grok Bot & Grok
- Muse
- Hermes
- Supertake
- Perplexity Computer
- Claude
- Claude Code
- Codex CLI
For automated trading workflows without approving each trade individually, use a custom Coinbase MCP connection. The custom Coinbase MCP connection is also the only option that supports x402 and Global Derivatives.Alternatively, choose the official Coinbase plugin for ChatGPT if you want to review and approve every trade yourself. Coinbase’s interactive trade cards let you review order details and confirm trades directly in ChatGPT, on the web or in the mobile app, without leaving the conversation.
- Custom MCP
- Official Coinbase plugin
- Open Plugins in the side navigation.
- Click Add (top right) > Add Custom MCP Server.
- Name it (e.g., “Coinbase custom MCP”) and enter
https://agents.coinbase.com/mcpas the Server URL. - Leave Authentication set to OAuth, check I understand and want to continue, then click Create as a plugin.
- Sign in with your Coinbase account when prompted.
- On the approval screen, select which portfolios to give the agent access to.
If Add Custom MCP Server isn’t available, turn on developer mode in ChatGPT Settings. Availability depends on your plan and workspace policy; see OpenAI’s developer mode requirements.
Custom MCP on desktop & mobile: Set up Custom MCP on ChatGPT web first. Once connected, it is available in ChatGPT desktop and mobile. If it doesn’t appear, restart the app.
Safety and limits
Coinbase enforces these controls on its servers. Your prompt can’t change them, and neither can the agent.At a glance
- Spend limits: you set a maximum per order and a maximum per rolling 24 hours. Coinbase checks every new or edited order against them.
- Cancels always work: a spend limit never blocks cancelling an order.
- Permissions: the agent can use only the tools you approved when you connected it.
- No withdrawals: no tool can send funds outside your Coinbase account.
Set your spend limits at coinbase.com/settings/agents. An agent can read its current limits with the
agent_controls_get tool.
Spend limits
You can set two limits, in USD:- Per order: the most a single order can be worth.
- Rolling 24 hours: the most all orders together can be worth in the last 24 hours.
quote_size. If Coinbase can’t value an order and a limit applies, it refuses the order.
Spend limits don’t apply to closing a position, to take-profit and stop-loss exits attached to an order, or to converts and transfers between your portfolios. x402 payments have their own limits; see x402 payments.
Permissions
When you connect an agent, you approve what it can do and which portfolios it can use. Coinbase checks that approval on every call. Reading balances, orders, and prices needs read access. Anything that places orders or moves funds needs write access. For the CLI, the CDP API key’s permissions do the same job. A key without Trade permission can’t place orders. A key without Transfer permission can’t move funds between portfolios.No withdrawals
No Coinbase MCP or CLI tool can withdraw crypto or cash. Transfers move funds only between your own portfolios. The one exception is an x402 payment, which pays a curated data provider up to 5 USDC per payment. To disconnect an agent, see Disconnect above. To disconnect the CLI, delete its API key in the CDP Portal.What’s supported today
Coinbase for Agents currently supports:- Spot crypto trading: buy and sell 900+ trading pairs on Coinbase
- US Derivatives (Futures): trade CFM dated futures contracts on Coinbase
- Global Derivatives: eligible accounts can trade international perpetuals and Deribit dated futures through a supported Coinbase MCP connection. In ChatGPT, use the custom connection; the official plugin does not support Global Derivatives. See international dated futures.
- Equities: trade eligible US stocks on Coinbase
- Isolated agent portfolios: spot crypto only, scoped to a specific portfolio selected when logging in or creating an API key. US Derivatives (Futures) are available only in your default portfolio.
- Portfolio management: Check balances and positions across your account
- x402 payments (remote MCP and local CLI): pay for premium data services per-request from your USDC balance
- Agent feedback: agents can send the Coinbase team short notes about the integration
Coming soon: prediction markets and additional asset classes.
x402 payments
Your agent can pay per request for trading data and research, including onchain analytics, market intelligence, and stock data, directly from your retail Coinbase USDC balance. You don’t need a separate wallet, provider API key, or data subscription for these resources. The remote MCP uses Coinbase OAuth; the local CLI uses your configured CDP API key. Payments use USDC on Base through the x402 protocol.Discover, pay, and use the data
- Discover: Call
coinbase_x402_resourcesor runcoinbase x402 resources q==<keyword>. Discovery is free and returns resource URLs, input schemas, and advisory pricing. - Set a budget: Tell your agent how much it may spend on research. Research authorization does not authorize a trade.
- Fetch: Call
coinbase_x402_fetchor runcoinbase x402 fetchwith a catalog resource URL and the required inputs. The tool handles the payment challenge and returns the resource response. - Review: Ask the agent to cite the data, report what it spent, and propose a trade only if that is part of your instructions.
Tool availability depends on your account and client. The dedicated ChatGPT trading integration does not expose x402 tools. These instructions use the core remote MCP or the local CLI.
Limits and payment safety
- Payments are capped at 5 USDC per payment. Additional account and spending controls may apply.
max_amountis an optional per-request ceiling for fetch, in atomic USDC units:1000000is 1 USDC. It can lower, not raise, the catalog payment ceiling. It does not set a session or daily budget.- Fetch accepts curated catalog resources and x402 v2 challenges. It is not an unrestricted web-fetch or Bazaar-discovery tool.
- Generate an
idempotency_keyUUID before a payment and retain it. If a request times out or the payment outcome is unknown, reuse that key for the same logical payment; a new key can create another hold. Follow terminal-error instructions rather than retrying blindly. - A successful payment authorization does not guarantee that the provider returned usable data. Report payment and data-delivery outcomes separately.
Data providers
The curated catalog includes Arkham, Dripstack (listed as Drip), Exa, Glassnode, Massive, Nansen, and You.com. Runcoinbase x402 resources or call coinbase_x402_resources for current resources, schemas, and advisory prices. The provider’s payment challenge determines the exact price, subject to your request ceiling and server limits. Catalog inclusion does not guarantee provider availability.
Guiding agents to place orders
Based on order-creation testing across Claude and ChatGPT clients and models connected to the Coinbase for Agents remote MCP server:- Web clients for Claude and ChatGPT reliably create orders from clear, well-specified instructions, across models. The exception is GPT-5.5 Pro, which doesn’t appear to automatically discover the connected MCP.
- Claude previews and requests confirmation in the chat to create the order, whereas ChatGPT creates the order in one turn.
- Claude Desktop refuses most orders that the web client creates; Sonnet 4.6 is the exception, creating orders when the request includes an explicit authorization (e.g.
I authorize you to buy…). - Lower-tier models may create orders with the wrong product, for example,
ETH-USDinstead ofETH-USDC. Prompt for approval to confirm before creating the order.
Buy 1 USDC of ETH in my agent portfolio. Vague or partial requests require the model to infer and resolve additional details.
Best practices
- Scope the agent’s access to the portfolio(s) you want it to use. A focused set gives the agent a clear, unambiguous target.
- Higher-reasoning models translate more complex intent and recover from underspecified orders; use one for multi-step or vague requests, e.g.
check my balance, then put 5% of my USDC into BTC.
Send feedback
You or your agent can send feedback about the Coinbase MCP directly through thecoinbase_feedback_submit tool. Submit a prompt in this form: Tell Coinbase that [your feedback]. The team reads submitted feedback every day.
- Feedback is limited to 2,000 characters or less.
- Each user can send up to 6 submissions per day.
Tools
The tables use short MCP tool names. The core server prefixes these withcoinbase_ (for example, coinbase_portfolios_list); use the exact names returned by your connection’s tools/list.
Market data
Equities: Use
products_get or products_list for a reference price, not a guaranteed executable quote. Do not assume equity ticker, order-book, bid/ask, candle, or preview support from a successful product lookup. See the agent guide’s product-type limitations before building an equity workflow.
Orders
Market order: executes immediately at the best available price.
Market buys use
quote_size (the amount to spend in USD). Market sells use base_size (the amount of the asset to sell). When switching between buy and sell, explicitly clear the other field (e.g., add quote_size= to clear a stale value).Futures: CFM dated futures market orders require
base_size (number of contracts)—quote_size is rejected. Contract codes roll on a schedule (e.g. BIT-28AUG26-CDE); discover the live one with coinbase products list product_type=FUTURE. Preview the order first to check predicted_liquidation_price.Equities: use
TICKER-QUOTE as the product ID (e.g. AAPL-USD or AAPL-USDC). Discover eligible tickers with the product tools. Orders trade regular market hours by default; check the current tool schema for supported sessions, order types, and sizing restrictions.