# Coinbase MCP for AI Agents MCP

> Coinbase connects your AI agents to real-time cryptocurrency market data, allowing you to check prices and exchange rates for major assets like BTC, ETH, and SOL conversationally. You get current buy/sell spreads, mid-market spot values, and comprehensive fiat currency conversion without needing a complex API key setup.

## Overview
- **Category:** money-moves
- **Price:** Free
- **Tags:** cryptocurrency, spot-price, exchange-rates, market-data, trading-pairs

## Description

This MCP gives your AI agent direct access to live cryptocurrency pricing from Coinbase. Instead of navigating multiple websites or setting up complicated API calls, you simply ask your client for the current market status on any pair. You can get real-time buy and sell prices—including the fees that hit you—or pull the mid-market spot price if you need historical context. Need to convert fiat currency? It handles exchange rates too. This means whether you're a trader checking spreads or a developer pulling data into an app, the information is there, ready for your agent to process. Vinkius hosts this MCP so you connect once and get access to reliable market data across multiple tools.

## Tools

### get_buy_price
Calculates the total price you pay today to buy a cryptocurrency pair, including all fees.

### get_currencies
Retrieves a full list of every supported cryptocurrency and fiat currency code available in the system.

### get_exchange_rates
Provides current conversion rates between any two specified crypto or fiat currencies.

### get_payment_methods
Returns a list detailing your linked bank accounts, debit cards, and payment limits.

### get_public_prices
Quickly fetches the buy, sell, and spot prices for multiple crypto pairs in a single call.

### get_sell_price
Calculates the total amount you receive when selling a cryptocurrency pair today, including all associated fees.

### get_spot_price
Gets the mid-market price of a crypto asset, allowing you to check current or historical prices by date.

### get_time
Returns the current server time for synchronizing data requests and verifying connectivity.

## Prompt Examples

**Prompt:** 
```
What's the current buy and sell spread for SOL?
```

**Response:** 
```
**SOL-USD Pricing:**

*   **Buy Price (Total):** $185.50
*   **Sell Price (Total):** $183.20
*   **Spread:** $2.30 (This is your immediate margin.)
```

**Prompt:** 
```
Compare the spot price of BTC, ETH, and ADA right now.
```

**Response:** 
```
**Market Spot Snapshot:**

| Asset | Symbol | Spot Price |
| :---: | :----: | :---------: |
| Bitcoin | BTC-USD | $104,070.00 |
| Ethereum | ETH-USD | $3,245.00 |
| Cardano | ADA-USD | $0.48 |

*Prices are mid-market and real-time.*
```

**Prompt:** 
```
What was the spot price of Ethereum on October 15th?
```

**Response:** 
```
**ETH-USD Spot Price Report**

*   **Target Date:** 2024-10-15
*   **Spot Price:** $2,890.00
*   **Current Price:** $3,245.00
*   **Change Since Target:** +11.9% (Great performance since that date.)
```

## Capabilities

### Check immediate buy/sell prices
Get the total cost of buying or selling a specific cryptocurrency pair, including current fees.

### Determine mid-market spot pricing
Retrieve the clean, average price for a crypto asset at any given time, supporting historical date lookups.

### Analyze multiple assets together
Compare the buy, sell, and spot prices of several different cryptocurrency pairs in one single request.

### Convert between currencies
Fetch current exchange rates for both crypto-to-fiat and fiat-to-crypto conversions.

### View account payment options
List available bank accounts, debit cards, and other verified payment methods tied to your Coinbase profile.

## Use Cases

### Comparing buy vs. sell spreads
A trader needs to know if a spread is wide today. They ask their agent for both `get_buy_price` and `get_sell_price` on ETH-USD, allowing them to see the exact cost difference before committing funds.

### Calculating portfolio value over time
An analyst needs to prove market growth. They use `get_spot_price` with a date parameter (e.g., 2023-01-01) to find the historical price of BTC, then compare it to today's spot rate.

### Cross-currency conversion validation
A user needs to know how much fiat currency they will get for a mix of crypto assets. They use `get_exchange_rates` first, then combine that information with multiple pairs using `get_public_prices`.

### Verifying account liquidity
A developer building an expense tracker needs to know the available payment options for a user. They call `get_payment_methods` to pull details on linked cards and bank accounts.

## Benefits

- Check immediate market spreads: Use the `get_buy_price` or `get_sell_price` tools to see exactly what you pay versus what you receive, including fees.
- Compare multiple assets instantly: The `get_public_prices` tool lets your agent pull data for BTC, ETH, and SOL all at once, saving manual lookups.
- Historical rate analysis: Need to know the price of a pair on Jan 1st? Use `get_spot_price` for reliable historical market context.
- Currency flexibility: The `get_exchange_rates` tool handles conversions between any crypto and fiat currency you need.
- Full payment visibility: Quickly check your linked bank accounts and debit cards using `get_payment_methods`, all within the same conversational flow.

## How It Works

The bottom line is that you get live, reliable crypto market data through simple conversation, turning complex API calls into basic chat prompts.

1. Subscribe to this MCP in Vinkius and connect it to your preferred AI client.
2. Your agent uses the connection to pull public market data, meaning you don't need to manage any API keys for standard pricing lookups.
3. You simply ask your agent a natural language question, like 'What was BTC's spot price on Jan 1st?' and it returns structured, real-time results.

## Frequently Asked Questions

**How does the Coinbase MCP help me compare crypto prices?**
You can ask your agent to pull data for multiple assets at once. Instead of looking up BTC, ETH, and SOL separately, you get a single report showing their buy, sell, and spot prices together.

**Do I need an API key to use the Coinbase MCP for AI agents?**
No. For basic public price data—like current buy/sell rates and exchange conversions—you don't need an API key, making it easy to set up in your agent.

**Can I use the Coinbase MCP for historical pricing?**
Yes. You can check the spot price for any major pair on a specific date by providing the year, month, and day, giving you deep market context beyond just today’s rates.

**What if I need to convert between fiat currencies using this MCP?**
The Coinbase MCP handles that. You can ask it for current exchange rates between two fiat currencies or mix them with crypto, getting an accurate conversion factor instantly.

**Is the data from the Coinbase MCP reliable enough for trading decisions?**
It provides real-time buy and sell prices directly from Coinbase. Always use this data as a key input for your models, but remember to cross-reference with other sources before executing trades.

**How do I check my payment options using the MCP?**
You can ask the agent to list all available payment methods linked to your account. This quickly shows you verified bank accounts and debit cards, which is useful for linking payments in a workflow.