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
- Sign up at commerce.coinbase.com
- Complete account verification
- Generate an API Key in Settings
- Configure withdrawal settings
2. Configuration
- Python
- TypeScript
from paymcp.providers import CoinbaseProvider
PayMCP(mcp, providers=[CoinbaseProvider(api_key="YOUR_API_KEY")])
import { CoinbaseProvider } from 'paymcp/providers';
installPayMCP(mcp, { providers: [new CoinbaseProvider({ apiKey: "YOUR_API_KEY" })] });
3. Test Your Integration
- Python
- TypeScript
@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}"
mcp.tool(
"test_crypto_payment",
{
description: "Test cryptocurrency payment",
inputSchema: { item: z.string() },
price: { amount: 1.00, currency: "USD" },
},
async ({ item }, ctx) => {
return { content: [{ type: "text", text: `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
- Coinbase Commerce Docs: commerce.coinbase.com/docs
- PayMCP Issues: GitHub Issues
- Coinbase Support: Available in Commerce dashboard