# Coinbase Exchange [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-coinbase-exchange  
**GitHub Stars:** 0  
**npm Downloads (last month):** 754  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/coinbase-exchange

## Description
Coinbase Exchange public MCP.

## Tools
Capabilities this server exposes over MCP:

- **products** — Coinbase Exchange — list all available trading pairs (products) with base/quote currency, min order size, status, and trading rules.
- **product** — Single product.
- **product_book** — Coinbase Exchange (US-regulated crypto venue) live order book — bids + asks for a crypto pair like "BTC-USD". Levels 1-3 control depth. Use for spread analysis, liquidity assessment, market making.
- **product_ticker** — Coinbase Exchange (US-regulated crypto venue) — best bid/ask, last trade price, and volume for a crypto pair. Use for current pricing on a Coinbase-listed pair.
- **product_trades** — Coinbase Exchange — recent trade tape for a crypto pair (e.g. 'BTC-USD'): trade ID, price, size, side, and timestamp. Supports limit and before/after cursor pagination.
- **product_candles** — Coinbase Exchange OHLC candles for a crypto pair. Granularity 1m, 5m, 15m, 1h, 6h, 1d. Use for charting and backtesting on Coinbase-listed pairs.
- **product_stats** — Coinbase Exchange 24-hour rolling stats for a crypto pair: open, high, low, last, volume, 30-day volume. Use for daily summary.
- **currencies** — List currencies.
- **currency** — Single currency.
- **time** — Server time.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "coinbase-exchange": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-coinbase-exchange"]
  }
}
```

## Documentation

## What Coinbase Exchange does

Coinbase Exchange exposes public market-data operations through the Model Context Protocol. The integration is independent and unofficial, and reads from `https://api.exchange.coinbase.com`. It is intended for questions about Coinbase Exchange products and market activity rather than authenticated trading or account management.

Supported data includes the available trading pairs, details for one product such as `BTC-USD`, order-book levels, best bid and ask prices, recent trades, OHLC candles, 24-hour product statistics, currencies, individual currency details, and the exchange server time.

## How it works

The hosted MCP endpoint is:

`https://gateway.pipeworx.io/coinbase-exchange/mcp`

An MCP client connects to that URL and invokes the exposed tools. The pack endpoint also lists shared Pipeworx gateway tools, including routing and discovery functions such as `ask_pipeworx`, `discover_tools`, `search_within`, and memory-related tools. The exact tool scope is reported during MCP initialization. `ask_pipeworx` can route a plain-language request across the wider Pipeworx catalog, including this Coinbase Exchange pack.

The same operations can be called over HTTP. For example, a POST request to `/v1/tools/coinbase_exchange_products` invokes the products operation with a JSON body. The gateway is also available at `https://gateway.pipeworx.io/mcp` when a client should connect to the full gateway instead of listing this pack directly.

## Setup and configuration

For a hosted MCP connection, add the pack URL to the client’s MCP configuration:

```json
{
  "mcpServers": {
    "coinbase-exchange": {
      "url": "https://gateway.pipeworx.io/coinbase-exchange/mcp"
    }
  }
}
```

The package `@pipeworx/mcp-coinbase-exchange` provides a local stdio bridge. Configure the client to start it with `npx`:

```json
{
  "mcpServers": {
    "coinbase-exchange": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-coinbase-exchange"]
    }
  }
}
```

The bridge forwards requests to the hosted gateway and requires network access. Anonymous use is capped at 50 calls per day. A Pipeworx account and `PIPEWORX_API_KEY` raise the allowance to 200 calls per day; the key is sent as a Bearer token. Set `PIPEWORX_META_TOOLS=1` in the local bridge configuration to list the shared gateway tools alongside the Coinbase Exchange tools. For HTTPS proxy use, newer Node versions can honor the proxy environment through `NODE_USE_ENV_PROXY=1`.

## Tools and capabilities

- `products()` lists trading pairs.
- `product(product_id)` returns one product, such as `BTC-USD`.
- `product_book(product_id, level?)` retrieves an order book at level 1, 2, or 3.
- `product_ticker(product_id)` returns the best bid, best ask, and last trade.
- `product_trades(product_id, limit?, before?, after?)` retrieves recent trades with optional pagination parameters.
- `product_candles(product_id, granularity?, start?, end?)` returns OHLC data with granularities from 60 to 86,400 seconds.
- `product_stats(product_id)` returns 24-hour statistics.
- `currencies()` and `currency(currency_id)` provide currency listings and details.
- `time()` returns exchange server time.

## Limitations and notes

The integration covers public market endpoints and does not provide authenticated exchange actions. It is not affiliated with, endorsed by, or published by Coinbase. The local package has no offline mode because it forwards calls to the gateway. Hosted and local calls are subject to Pipeworx usage limits and account metering; the API key is optional for anonymous use.

_Full upstream README: https://allmcps.com/mcp/coinbase-exchange/readme_

