Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Coinbase to access cryptocurrency prices, manage portfolios, and track transactions through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Coinbase

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

# Create a Strata MCP server with Coinbase
response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.COINBASE],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate with API Key

klavis_client.mcp_server.set_strata_auth(
    strata_id=response.strata_id,
    server_name=McpServerName.COINBASE,
    auth_data={
        "api_key": "YOUR_COINBASE_API_KEY",
        "secret_key": "YOUR_COINBASE_API_SECRET"
    }
)
🎉 Your Coinbase MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
coinbase_get_pricesGet current prices of cryptocurrency from Coinbase
coinbase_get_current_exchange_rateGet current exchange rate of cryptocurrency from Coinbase
coinbase_get_historical_pricesGet historical price data of cryptocurrency from Coinbase
coinbase_get_accountsList user’s Coinbase accounts
coinbase_get_account_balanceGet balance for user’s account
coinbase_get_transactionsGet transaction history for an account
coinbase_get_portfolio_valueGet portfolio value for user’s accounts
coinbase_get_product_detailsGet product details of a cryptocurrency from Coinbase
For more details about tool input schema, use the get_tools API.

Next Steps

I