Skip to main content

Coinbase Provider

Coinbase Commerce enables cryptocurrency payments with support for Bitcoin, Ethereum, Bitcoin Cash, Litecoin, and USD Coin. Ideal for businesses wanting to accept crypto with minimal complexity.

Features

  • Major Cryptocurrencies - Bitcoin, Ethereum, Bitcoin Cash, Litecoin, USDC
  • No Volatility Risk - Optional instant conversion to USD
  • Low Fees - 1% transaction fee
  • Global Access - Accept payments from anywhere
  • Self-Custody - You control your crypto keys

Quick Setup

1. Create Coinbase Commerce Account

  1. Sign up at commerce.coinbase.com
  2. Complete account verification
  3. Generate an API Key in Settings
  4. Configure withdrawal settings

2. Configuration

from paymcp.providers import CoinbaseProvider

PayMCP(mcp, providers=[CoinbaseProvider(api_key="YOUR_API_KEY")])

3. Test Your Integration

@mcp.tool()
@price(amount=1.00, currency="USD")
def test_crypto_payment(item: str, ctx: Context) -> str:
"""Test cryptocurrency payment"""
return f"Crypto payment successful for: {item}"

Configuration Options

providers = {
"coinbase": {
"api_key": "YOUR_API_KEY", # Required
"success_url": "https://yourapp.com/success", # Optional
"cancel_url": "https://yourapp.com/cancel", # Optional
"confirm_on_pending": False, # Wait for network confirmation
}
}

Support