# How to connect Coinbase Agents to Grok Bot

```json
{
  "title": "How to connect Coinbase Agents to Grok Bot",
  "toolkit": "Coinbase Agents MCP",
  "toolkit_slug": "coinbase_agents_mcp",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/coinbase_agents_mcp/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/coinbase_agents_mcp/framework/grok-bot.md",
  "updated_at": "2026-11-09T06:01:24.318Z"
}
```

## Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.
This guide explains how to connect Coinbase Agents to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with Coinbase Agents in plain language.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/coinbase_agents_mcp).

## Also integrate Coinbase Agents MCP with

- [ChatGPT](https://composio.dev/toolkits/coinbase_agents_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/coinbase_agents_mcp/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/coinbase_agents_mcp/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/coinbase_agents_mcp/framework/atomic-agent)

## TL;DR

Composio exposes 2,000+ apps to your Grok bot through a single connection, so you get:
- Connect to 2,000+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
- Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
- Handle large tool responses outside the model context to keep conversations lean.

## Connect Coinbase Agents MCP to Grok Bot

### Connecting Coinbase Agents to Grok Bot
Once Grok Bot is set up, you connect Coinbase Agents entirely from its interface, and the whole flow takes under a minute.
### Set up Grok Bot
Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from [x.ai/bot](https://x.ai/bot) and sign in. An iPhone companion app is also available, and your bots sync across devices.
Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.
### Connect Coinbase Agents
### 1. Add the Composio plugin
Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.
[Add to Grok Bot](https://x.ai/bot/plugin/32661537)
Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.
### 2. Authenticate
Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.
Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.
### 3. Connect your Coinbase Agents account
Back in the chat, ask your bot to connect to Coinbase Agents or give it any Coinbase Agents task.
For example, ask it to:
- "List open orders in your portfolio"
- "Convert USD to BTC at market price"
- "Summarize yesterday's trades and fees"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your Coinbase Agents account is ready to use.

## What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.
With Composio Connect, your Grok bot can securely access apps like Coinbase Agents through MCP without you sharing account credentials directly with the agent.

## What is the Coinbase Agents MCP server, and what's possible with it?

The Coinbase Agents MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Coinbase account. It provides structured and secure access to your portfolios, balances, orders, trades, fees, market data, transfers, conversions, and x402 payments, so your agent can monitor holdings, research markets, manage orders, move funds, and make permitted payments on your behalf.
- Portfolio and balance tracking: Have your agent list portfolios, review their balances and positions, create or rename portfolios, and delete portfolios you no longer need.
- Market research: Let the agent inspect available products, recent trades, current bids and asks, order books, and historical price candles.
- Order and trade management: Direct your agent to estimate fees and slippage, place or edit supported orders, cancel open orders, close positions, and review order status and fills.
- Conversions and fund transfers: Instruct your agent to quote and execute supported currency conversions, check conversion status, and transfer funds between portfolios.
- Fees and x402 payments: Have your agent review trading fee rates, discover paid x402 resources, prepare permitted Base USDC payments, and fetch purchased resources.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `COINBASE_AGENTS_MCP_COINBASE_BALANCE` | Coinbase balance | Returns account balances for exactly one portfolio. If portfolio_id is omitted, only the default portfolio is returned. Results are not aggregated across portfolios; use coinbase_portfolios_list and query each portfolio for a complete multi-portfolio view. The response portfolio_id identifies the effective portfolio queried. Balances show available funds and amounts on hold; available_balance excludes funds held by open orders. Use before trading or transferring to confirm available funds. (4 fields, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_CONVERT_EXECUTE` | Coinbase convert execute | Executes a previously quoted conversion using the quote_id from convert_quote. This moves funds at the quoted rate — get a fresh quote first since quotes expire. The from/to currencies must match the original quote. (3 fields, 3 required) |
| `COINBASE_AGENTS_MCP_COINBASE_CONVERT_GET` | Coinbase convert get | Check status of a conversion by quote ID. (3 fields, 3 required) |
| `COINBASE_AGENTS_MCP_COINBASE_CONVERT_QUOTE` | Coinbase convert quote | Quotes stablecoin↔fiat and stablecoin↔stablecoin conversions, returning rate, fees, and a quote ID. It does not support BTC, ETH, or other non-stablecoin assets; use an order to trade those assets. Pass the ID to convert_execute promptly because quotes expire. (3 fields, 3 required) |
| `COINBASE_AGENTS_MCP_COINBASE_FEES` | Coinbase fees | Fee tier, maker/taker rates, and 30-day volume. (1 field, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_CANCEL` | Coinbase orders cancel | Cancels one or more open orders by ID. Removes resting orders from the book so reserved funds are released; already-filled portions are unaffected. Returns per-order success so a partial batch can fail. (1 field, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_CLOSE_POSITION` | Coinbase orders close position | Places a market order to flatten an open position for a product, moving funds immediately. Omit size for a full close or set it for a partial close. Preview the equivalent order first if fee or slippage impact matters. (3 fields, 2 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_CREATE` | Coinbase orders create | Place a market, limit, stop_limit, bracket, twap, or scaled order, subject to venue eligibility. Equities: use market or limit. Spot brackets require SELL; for entry, use market/limit BUY with attached exits. Futures brackets support BUY/SELL. Bracket stops become aggressive limit exits; fills and loss limits are not guaranteed. TWAP requires base_size, start_time, end_time, and a positive limit_price; slice count is automatic. Use orders_preview for optional fee, fill, and execution-plan estimates. Set exactly one size: limit and market SELL convert quote_size to base_size; market BUY spends quote_size; stop_limit/bracket/twap/scaled require base_size. Attached exits require market/limit parents and activate as the parent fills, including partial fills. If a FUTURE order is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (24 fields, 3 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_EDIT` | Coinbase orders edit | Atomically update an open order's price or size without cancelling. Omit attached fields to keep existing exits. Attach or change exits only on eligible unfilled limit orders: spot BUY or futures BUY/SELL, not equities. Exits activate as the parent fills, including partial fills. Stops become aggressive limit exits; fills and loss limits are not guaranteed. Attached updates replace both legs: send attached_take_profit_price and attached_stop_loss_price to keep both, even when changing one. Read orders_get first: attached_order_configuration.trigger_bracket_gtc.limit_price maps to attached_take_profit_price; stop_trigger_price maps to attached_stop_loss_price. cancel_attached_order removes both legs, but may be rejected after an exit activates. (6 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_EDIT_PREVIEW` | Coinbase orders edit preview | Estimate the result, fees, fill price, and slippage of changing an open order's size or limit price without editing it. Hosted OAuth requires mcp:orders:create. CDP API-key callers may use rat#view where supported. Unsupported replacements return errors. (3 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_FILLS` | Coinbase orders fills | Lists individual trade executions with commissions and maker/taker indicator, filterable by product, order, side, and time range. Use this to reconcile actual fill prices and fees paid. For EQUITY fills, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (8 fields, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_GET` | Coinbase orders get | Retrieves the full status and fill details of a single order by ID. Use after creating an order to confirm execution, and before orders_edit to see the current attached take-profit/stop-loss (attached_order_id / attached_order_configuration). For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (1 field, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_LIST` | Coinbase orders list | Lists orders with optional filters by status, product, side, and time range. Use status=OPEN to find resting orders that can be edited or cancelled. For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (9 fields, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_ORDERS_PREVIEW` | Coinbase orders preview | Estimate fees, fill price, slippage, and execution plans without placing an order. Optional before orders_create; the same order-type and asset-class restrictions apply. Futures previews also estimate margin, leverage, and liquidation impact: compare current and projected margin ratios and liquidation buffers. If a FUTURE preview is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (23 fields, 3 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_CREATE` | Coinbase portfolios create | Creates a new named portfolio for segregating funds and positions. Does not move any funds; use transfer afterward to fund it. (1 field, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_DELETE` | Coinbase portfolios delete | Permanently deletes a portfolio. The portfolio must be empty first — transfer out any remaining funds and close all positions before deleting. The DEFAULT portfolio cannot be deleted. (1 field, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_EDIT` | Coinbase portfolios edit | Renames an existing portfolio. Does not affect balances or positions. (2 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_GET` | Coinbase portfolios get | Returns portfolio metadata, balances, and positions. (2 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_LIST` | Coinbase portfolios list | Lists all portfolios on the account, including their UUIDs and types. Use this to find the portfolio_id needed for orders, transfers, and balance queries. (1 field, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BEST_BID_ASK` | Coinbase products best bid ask | Returns best bid and ask for one or more products in a single call. Omit product_ids to return pricebooks for all products. Not currently available for equities. (1 field, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BOOK` | Coinbase products book | Returns the current bid/ask order book for a product. Use to gauge available liquidity and likely slippage before sizing a market order. Not currently available for equities. (2 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_CANDLES` | Coinbase products candles | Returns historical OHLCV candles for a product at a chosen granularity and time range. Use for price history and technical analysis. Not currently available for equities. (5 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_GET` | Coinbase products get | Viewing a product, including a FUTURE one, doesn't require any special account approval. Trading it is a separate matter — see the product_type field description. (1 field, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_LIST` | Coinbase products list | Viewing products, including FUTURE ones, doesn't require any special account approval. Trading them is a separate matter — see the product_type field description. (5 fields, 0 required) |
| `COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_TICKER` | Coinbase products ticker | Returns recent trade prints plus the current best bid/ask for a product. Use for a quick spot-price snapshot before previewing or placing an order. Not currently available for equities. (2 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_TRANSFER` | Coinbase transfer | Moves funds of a single currency from one portfolio to another. This executes immediately and moves money — verify the source has sufficient available balance first. Both portfolio UUIDs come from portfolios_list. (4 fields, 4 required) |
| `COINBASE_AGENTS_MCP_COINBASE_X402_FETCH` | Coinbase x402 fetch | Fetches a resource returned by x402_resources. On a 402 challenge, pays from the caller's custodial Base USDC via a pre-authorized hold, then retries with PAYMENT-SIGNATURE — no manual challenge handling. All currently supported x402 purchases through this connector use Base USDC, and max_amount uses its 6-decimal atomic units; for example, "50000" means "0.05 USDC". This tool accepts only resource URLs returned by x402_resources. max_amount is the spend control; when the user has requested the data or stated a budget, proceed in a single call rather than re-confirming. Protocol v2 only; v1 challenges are rejected. (6 fields, 1 required) |
| `COINBASE_AGENTS_MCP_COINBASE_X402_PAY` | Coinbase x402 pay | Turns an x402 PaymentRequirements challenge into a ready-to-send payment header by placing a pre-authorized hold on the caller's Base USDC balance (EIP-3009 exact scheme, v0). All currently supported x402 purchases through this connector use Base USDC, and amount and max_amount use its 6-decimal atomic units; for example, "50000" means "0.05 USDC". Attach the returned header as X-PAYMENT for v1 or PAYMENT-SIGNATURE for v2. This authorizes moving funds up to max_amount — pass the smallest amount that satisfies the requirement. Funds-touching and gated internal-only behind a default-off feature flag. (12 fields, 7 required) |
| `COINBASE_AGENTS_MCP_COINBASE_X402_RESOURCES` | Coinbase x402 resources | Discover curated x402 resources: paid on-chain and market metrics, wallet and entity intelligence, and derivatives data. Discovery spends nothing. An optional keyword q filters the catalog; omit it to list all. Each result carries the resource URL, its advisory price, and its input and output schemas. All currently supported x402 purchases through this connector use Base USDC. accepts[].amount and coinbase_x402_fetch's max_amount use USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". A result's inputSchema is coinbase_x402_fetch's input verbatim: pass those properties flat; do not build an HTTP envelope. The live 402 challenge sets the exact amount. (1 field, 0 required) |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, your Grok bot can access the Coinbase Agents MCP server through Composio to run the actions you authorize, using plain language in the chat.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that Coinbase Agents is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

## How to build Coinbase Agents MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/coinbase_agents_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/coinbase_agents_mcp/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/coinbase_agents_mcp/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/coinbase_agents_mcp/framework/atomic-agent)

## Related Toolkits

- [Stripe](https://composio.dev/toolkits/stripe) - Stripe is a global online payments platform offering APIs for managing payments, customers, and subscriptions. Trusted by businesses for secure, efficient, and scalable payment processing worldwide.
- [44API](https://composio.dev/toolkits/44api) - 44API is an API service for validating VAT and tax identifiers and returning company details. Use it to verify business tax data and manage account IP whitelists quickly.
- [8090](https://composio.dev/toolkits/_8090) - 8090 is an organization usage and spend management service. It helps teams monitor usage and control member and default spending limits.
- [Airwallex](https://composio.dev/toolkits/airwallex) - Airwallex is a global financial platform providing business accounts, payments, payouts, FX, and cards. Built to simplify cross-border payments and streamline financial operations for businesses.
- [Aiwyn Tax MCP](https://composio.dev/toolkits/aiwyn_tax_mcp) - Aiwyn Tax MCP is a tax estimation service powered by Aiwyn's federal and state tax engine. It helps teams estimate tax outcomes without building tax calculation logic from scratch.
- [Alpaca](https://composio.dev/toolkits/alpaca) - Alpaca is a stock and crypto trading platform for commission-free trading, real-time market data, and algorithmic strategies. Use it to build brokerage apps, trading bots, and portfolio workflows with market connectivity.
- [Alpha vantage](https://composio.dev/toolkits/alpha_vantage) - Alpha Vantage is a financial data platform offering real-time and historical stock market APIs. Get instant, reliable access to equities, forex, and technical analysis data for smarter trading decisions.
- [Altoviz](https://composio.dev/toolkits/altoviz) - Altoviz is a cloud-based billing and invoicing platform for businesses. It streamlines online payments, expense tracking, and customizable invoice management.
- [Anrok](https://composio.dev/toolkits/anrok) - Anrok is a sales tax platform for software businesses that automates calculations, compliance, filings, and exemption management. It helps finance teams stay accurate and reduce the manual work of tax operations.
- [BankConv](https://composio.dev/toolkits/bankconv) - BankConv is a bank statement conversion service that turns PDFs into normalized transactions and accounting files. It saves time by replacing manual data entry with consistent, structured financial records.
- [BankConv MCP](https://composio.dev/toolkits/bankconv_mcp) - BankConv MCP is a hosted service that converts PDF bank and credit card statements into structured transactions. It supports CSV, OFX, QFX, QBO, and Xero CSV exports for easier financial workflows.
- [Benzinga](https://composio.dev/toolkits/benzinga) - Benzinga provides real-time financial news and data APIs for market coverage. It helps you track breaking news and actionable market insights instantly.
- [bexio](https://composio.dev/toolkits/bexio) - bexio is a Swiss business management platform for accounting, invoicing, contacts, projects, banking, expenses, and payroll. It brings core business operations into one connected workspace.
- [Bigdata.com MCP](https://composio.dev/toolkits/bigdata_com_mcp) - Bigdata.com MCP provides grounded access to financial news, transcripts, filings, and entity intelligence. Ideal for building research workflows and generating timely market insights.
- [BillingMart MCP](https://composio.dev/toolkits/billingmart_mcp) - BillingMart MCP is a hosted server for managing clients, invoices, estimates, payments, and billing records. It gives AI agents a secure, natural-language way to work with BillingMart data.
- [Billsby](https://composio.dev/toolkits/billsby) - Billsby is a subscription billing platform for managing customers, subscriptions, invoices, products, plans, usage counters, add-ons, and allowances. It helps SaaS and subscription teams automate billing operations without building complex billing logic from scratch.
- [BlindPay](https://composio.dev/toolkits/blindpay) - BlindPay is a payments API for cross-border payins, payouts, wallets, bank accounts, and stablecoin settlement. It helps businesses move money globally through programmable, API-based financial infrastructure.
- [Brex](https://composio.dev/toolkits/brex) - Brex provides corporate credit cards and spend management tailored for startups and tech businesses. It helps optimize company cash flow, streamline accounting, and accelerate business growth.
- [Carta](https://composio.dev/toolkits/carta) - Carta is an equity management platform for cap tables, compensation, portfolios, and fund administration. It helps companies and investors manage ownership data and financial operations in one place.
- [Cashfree](https://composio.dev/toolkits/cashfree_payments_mcp) - Cashfree is a merchant payments platform that handles collection, payouts, subscriptions, settlements, refunds, and identity verification. Simplifies merchant money lifecycle management with unified, API-driven workflows.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Coinbase Agents MCP?

With a standalone Coinbase Agents MCP server, the agents and LLMs can only access a fixed set of Coinbase Agents tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Coinbase Agents and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Grok Bot?

Yes, you can. Grok Bot fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Coinbase Agents tools.

### Can I manage the permissions and scopes for Coinbase Agents while using Tool Router?

Yes, absolutely. You can configure which Coinbase Agents scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Coinbase Agents data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
