# How to connect Coinbase Exchange to Grok Bot

> Connect Coinbase Exchange to Grok Bot with the Firecrawl plugin. Use Coinbase Exchange as an MCP tool in Grok Bot via Firecrawl Alexandria.

To connect Coinbase Exchange to Grok Bot, add the Firecrawl plugin to Grok Bot, sign in on a Firecrawl team with Alexandria enabled, and ask for Coinbase Exchange data in plain language. The connection works in every Bot in your Grok Bot account, and you set it up once.

Grok Bot uses Coinbase Exchange as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Coinbase Exchange.

Grok Bot is xAI's agent app. Plugins give your Bots outside tools, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect Coinbase Exchange to Grok Bot?

### 1. Add the Firecrawl plugin

In Grok Bot, open Connect apps from the sidebar, find Firecrawl and select Connect. You can also open [Firecrawl's plugin listing](https://x.ai/bot/plugin/789) and select Add to Grok Bot, which opens the desktop app to finish the install.

[Add to Grok Bot](https://x.ai/bot/plugin/789)

![Grok Bot's Connect Apps window with Firecrawl and its Connect button](https://www.firecrawl.dev/images/alexandria/connect/grok-bot/connect-apps.webp)

### 2. Connect your Firecrawl account

Grok Bot opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and select Authorize. The screen names Cursor, because the plugin is published on the Cursor Marketplace. No account yet? You can create one for free in the same flow.

![Firecrawl's consent screen for the Grok Bot plugin, with the team picker and Authorize button](https://www.firecrawl.dev/images/alexandria/connect/grok-bot/authorize.webp)

### 3. Ask your Bot for the data

In a chat, ask in plain language and mention Coinbase Exchange or Firecrawl Alexandria. To make sure the Bot uses Firecrawl, type @ and choose Firecrawl first. For example:

```text
Use Firecrawl to show Coinbase Exchange’s BTC-USD last trade, best bid and ask, and 24-hour high, low and volume.
```

## What can Grok Bot do with Coinbase Exchange?

Public market data from the Coinbase Exchange REST API (api.exchange.coinbase.com): trading pairs, tickers with 24h stats, aggregated order books, tick-level trades with cursor pagination, historical OHLCV candles from 1 minute to 1 day walked in 300-bucket windows, exchange-wide volume summary, currencies with networks, and wrapped-asset conversion rates. Anonymous endpoints only; no trading or account access.

Grok Bot can run any of Coinbase Exchange's 10 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Get candles**: Historical OHLCV candles for one trading pair (`GET /products/{product_id}/candles`) at 1m, 5m, 15m, 1h, 6h or 1d granularity, oldest first. The exchange serves at most 300 buckets per request, so a wider `start`..`end` range is walked in consecutive 300-bucket windows, up to `max_candles` (default 300, max 3000 = 10 upstream requests) per call; `next_start` continues where the call stopped. Buckets without trades are omitted by the exchange (thin markets return fewer rows than the window length; a `sparse_buckets` warning says so). Values are numbers as the exchange sends them. Costs 5 Firecrawl credits per call.
- **Get currency**: One currency's definition (`GET /currencies/{currency_id}`): name, status, minimum size and precision, type, convertible-to list, and every supported network with contract address, confirmations and withdrawal limits. Unknown ids are `not_found`. Costs 5 Firecrawl credits per call.
- **Get order book**: Aggregated order book for one trading pair (`GET /products/{product_id}/book?level=1|2`). Level 1 is the best bid and ask only; level 2 is the full aggregated book (thousands of price levels), truncated client-side to `depth` levels per side, best first. Level 3 (every individual order, ~6 MB) is not exposed. Costs 5 Firecrawl credits per call.
- **Get product**: One trading pair's definition (`GET /products/{product_id}`): base and quote currency, price and size increments, minimum order funds, status and trading flags. Unknown ids are `not_found`. Costs 5 Firecrawl credits per call.
- **Get ticker**: Market snapshot for one trading pair: last trade price, size, id and time, best bid and ask and 24h volume (`GET /products/{product_id}/ticker`) together with the 24h/30d statistics (`GET /products/{product_id}/stats`: open, high, low, last, volume). Prices and sizes are decimal strings in the pair's quote and base currency. Costs 5 Firecrawl credits per call.
- **Get wrapped asset**: Supply, staking yield and conversion rate of a Coinbase wrapped asset such as cbETH (`GET /wrapped-assets/{id}` and `GET /wrapped-assets/{id}/conversion-rate`). Only the assets the exchange wraps exist (currently CBETH); anything else is `not_found`. Costs 5 Firecrawl credits per call.
- **List currencies**: Currencies known to Coinbase Exchange (`GET /currencies`, ~500 crypto and fiat) with client-side filters on type, status and a free-text match on id or name, sorted by id and paged. Rows carry status, precision, default network and network count; `get_currency` has the networks. Costs 5 Firecrawl credits per call.
- **List products**: List Coinbase Exchange trading pairs (`GET /products`) with client-side filters on base/quote currency, status and a free-text match, sorted by id and paged with limit/offset. Each product carries its increments, minimum funds, status and trading flags. This is the discovery step for every `product_id`. Costs 5 Firecrawl credits per call.
- **List trades**: Recent trades for one trading pair (`GET /products/{product_id}/trades`), newest first, up to 1000 per page. Cursor pagination follows the exchange's `cb-after`/`cb-before` headers: pass `after` (a trade id) to get older trades, `before` to get newer ones. `next_after` is the cursor for the next older page. Costs 5 Firecrawl credits per call.
- **List volume summary**: 24-hour and 30-day traded volume for every Coinbase Exchange market (`GET /products/volume-summary`, ~3100 rows including RFQ-only and conversion markets), with client-side filters on market type, base/quote currency and a free-text match, sorted by id and paged. Costs 5 Firecrawl credits per call.

## What should I ask Grok Bot?

Name Coinbase Exchange or Firecrawl Alexandria in the prompt so Grok Bot reaches for it.

- Use Firecrawl to show Coinbase Exchange’s BTC-USD last trade, best bid and ask, and 24-hour high, low and volume.
- Use Firecrawl to show the top 10 aggregated bid and ask price levels for ETH-USD on Coinbase Exchange.
- Use Firecrawl to get BTC-USD daily OHLCV candles from September 1 through September 30, 2026, oldest first, capped at 31 candles.
- Use Firecrawl to list the first 20 online Coinbase Exchange trading pairs quoted in USD with their price increments and trading restrictions.

### For agents

Start with the `api-exchange-coinbase-com` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why doesn't my Bot use Coinbase Exchange?

Attach Firecrawl to the chat with @ before you ask, and name Coinbase Exchange or Firecrawl Alexandria in the prompt.

### Add to Grok Bot doesn't open the app. What should I do?

Install the Grok Bot desktop app first, or open Connect apps in Grok Bot and search for Firecrawl.

## Use Coinbase Exchange in other AI apps

- [Coinbase Exchange in ChatGPT](https://alexandria.firecrawl.dev/providers/api-exchange-coinbase-com/connect/chatgpt)
- [Coinbase Exchange in Claude](https://alexandria.firecrawl.dev/providers/api-exchange-coinbase-com/connect/claude)
- [Coinbase Exchange in Cursor](https://alexandria.firecrawl.dev/providers/api-exchange-coinbase-com/connect/cursor)
- [Coinbase Exchange in Muse](https://alexandria.firecrawl.dev/providers/api-exchange-coinbase-com/connect/muse)

### Other data providers you can connect to Grok Bot

- [How to connect Benzinga to Grok Bot](https://alexandria.firecrawl.dev/providers/benzinga/connect/grok-bot)
- [How to connect Fiscal.ai to Grok Bot](https://alexandria.firecrawl.dev/providers/fiscal-ai/connect/grok-bot)
- [How to connect Fireround to Grok Bot](https://alexandria.firecrawl.dev/providers/fireround/connect/grok-bot)
- [How to connect EODHD to Grok Bot](https://alexandria.firecrawl.dev/providers/eodhd/connect/grok-bot)

Full setup guide: [Firecrawl in Grok Bot](https://www.firecrawl.dev/integrations/grok-bot)

## Frequently asked questions

### What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl plugin brings those tools into Grok Bot, along with every data provider in Firecrawl Alexandria.

### What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Coinbase Exchange among them. Each provider returns structured data through documented capabilities. Grok Bot finds the capability that fits your question and calls it through the Firecrawl plugin, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

### Is there a Coinbase Exchange MCP server for Grok Bot?

Grok Bot reaches Coinbase Exchange through Firecrawl's hosted MCP server, which serves Coinbase Exchange and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for Coinbase Exchange.

### What does connecting Coinbase Exchange to Grok Bot unlock?

Grok Bot can run all 10 of Coinbase Exchange's capabilities, including Get candles, Get currency and Get order book, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to show Coinbase Exchange’s BTC-USD last trade, best bid and ask, and 24-hour high, low and volume." In the same conversation, Grok Bot can combine Coinbase Exchange with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own Coinbase Exchange account or API key to use it in Grok Bot?

No. Grok Bot calls Coinbase Exchange through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Coinbase Exchange account or API key.

### How much does it cost to use Coinbase Exchange in Grok Bot?

Each Coinbase Exchange call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Grok Bot, and finding the right capability is free.

### Can Grok Bot use other providers besides Coinbase Exchange?

Yes. The same Firecrawl plugin reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

### Can I use Coinbase Exchange in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Cursor, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Coinbase Exchange capabilities are available there. Keyless connections don't include Alexandria.
