Coinbase Chat MCP
About
Access cryptocurrency data, market information, and trading insights from Coinbase's public API.
Details
- Author
- bichev
- Categories
- Cloud Service, Other, Finance, API
Jump to
To enable the AI-powered chat interface with voice capabilities:
- Get OpenAI API Key: Visit](https://github.com/Bichev/coinbase-chat-mcp/blob/HEAD/ARCHITECTURE.md)OpenAI Platform
- Create frontend/.env file:
VITE_OPENAI_API_KEY=sk-your-actual-api-key-here
Once configured, you'll have access to:
-
π Multi-Language Voice Input- Speak questions in any language using OpenAI Whisper
- Supports 50+ languages including English, Spanish, French, German, Russian, Chinese, Japanese, and more
- Real-time speech-to-text transcription
- Click the purple microphone button to start recording
π Text-to-Speech Responses- Hear AI responses read aloud
- Click the speaker icon on any assistant message
- Natural-sounding voices powered by OpenAI TTS
- Multiple voice options available
β‘ Fallback Mode- Without OpenAI key, basic Web Speech API provides English-only voice input
Note: Without the API key, the chat interface provides a helpful setup message and basic functionality.
User: "What's the current Bitcoin price?" Response: Current BTC-USD price: $100,608.65 USD User: "Show me Ethereum's price trend over the last 7 days" Response: [Historical price data with analysis] User: "Analyze Bitcoin's volatility this month" Response: [Technical analysis with volatility metrics] User: "Buy me a beer worth of Bitcoin!" πΊ Response: At $110,360 per BTC, $5 = 0.00004531 BTC β
Purchased! You now have 0.00004531 BTC User: "Now buy a beer WITH that Bitcoin!" Response: πΊ Beer Purchased with Crypto! Paid: 0.00004531 BTC Received: 1 πΊ π Total beers in inventory: 1 User: "Show my wallet" Response: π Virtual Wallet π΅ USD: $995.00 πͺ BTC: 0.00000000 πΊ Beers: 1 Total transactions: 2
- Visit:http://localhost:3005
- Chat: Persistent conversations with session management
- Voice Chat: Click microphone to ask questions by voice in any language
- Listen to Responses: Click speaker icon on messages to hear them read aloud
- API Explorer: Test all 8 MCP tools interactively
- Dashboard: Real-time market overview
- Markets: Detailed trading statistics
# Get current Bitcoin price curl http://localhost:3002/api/v1/prices/BTC-USD # Search for assets curl http://localhost:3002/api/v1/assets/search?query=bitcoin
- β
MCP Server- 13 tools, full protocol compliance
- β
Cursor Integration- Pre-configured MCP setup
- β
Circular EconomyπΊβΏ - Complete USDβCryptoβBeer simulation
- β
Voice Interfaceπ€ - Multi-language input via Whisper
- β
Text-to-Speechπ - AI responses read aloud
- β
Virtual Wallet- Demo crypto purchases and inventory
- β
Chat Sessions- Persistent conversations with localStorage
- β
API Explorer- Interactive documentation for all tools
- β
Session Management- Create, switch, delete chat sessions
- β
AI Integration- GPT-4 powered conversations with tool orchestration
- β
Transaction UI- Beautiful receipts and visual feedback
- β
Security- Rate limiting, validation, error handling
# Build MCP server cd mcp-server && npm run build # Start API server (development) cd api-server && npm run dev # Start frontend (development) cd frontend && npm run dev # Test MCP server cd mcp-server && npm test
- mcp-server/: TypeScript MCP server with 13 tools (8 market data + 5 wallet)
- api-server/: Express.js REST API server with wallet simulation
- frontend/: React + TypeScript with TailwindCSS, voice features, wallet UI
- docs/: Comprehensive documentation (ARCHITECTURE.md, guides, etc.)
- .cursor/: Cursor IDE MCP configuration
- README.md- This file! Project overview and quick start
- ARCHITECTURE.mdποΈ - Complete technical architecture guide
- System diagrams and component breakdown
- Real vs. simulated components explained
- Code examples and data flow
- Comparison with Base MCP and x402
- Technology stack deep dive
-
DEMO_TRANSACTIONS.mdπΊβΏ - Transaction tools reference
- All 5 wallet tools explained
- Usage examples and scenarios
- API reference
CIRCULAR_ECONOMY.mdπ - Complete economy guide
- USD β Crypto β Beer flow
- Smart suggestions when insufficient balance
- Inventory tracking
- Fun challenges and scenarios
CHAT_WALLET_INTEGRATION.md㪠- Chat integration
- Using wallet tools in conversation
- Visual transaction receipts
- Example conversations
- MCP_SETUP_NOTES.md- MCP integration guide for Cursor/Claude
- DEPLOYMENT.md- Deployment instructions
- CONTRIBUTING.md- Development contribution guidelines
- API Explorer- Interactive API testing (when running)
- Swagger UI- REST API documentation (when running)
- Buy virtual beer WITH cryptocurrency!- Complete USDβCryptoβBeer flow
- Smart AI guidance- Suggests buying crypto if insufficient balance
- Inventory tracking- See your beer collection in wallet
- Transaction receipts- Beautiful visual feedback in chat
- 13 total MCP tools- 8 market data + 5 transaction tools
- Multi-language voice input- Speak questions in 50+ languages (OpenAI Whisper)
- Text-to-speech- Hear AI responses read aloud (OpenAI TTS)
- GPT-4 integration- Intelligent conversations with tool orchestration
- Visual tool indicators- See which MCP tools were used
- Demo transactions- Safe crypto purchase simulation
- Beer calculator- Fun way to understand crypto value
- Real-time pricing- Uses live Coinbase data
- Transaction history- Track all purchases
- Portfolio view- See all balances in one place
- Persistent chat sessions across browser tabs
- Session history with auto-titling
- Real-time session switching
- localStorage-based persistence
- Observer pattern for live updates
- Interactive testing for all 8 MCP tools
- Real-time API responses
- Code generation (cURL, JavaScript)
- Copy-to-clipboard functionality
- Comprehensive parameter documentation
- Pre-configured.cursor/mcp.json
- Auto-loading of 8 MCP tools
- Ready-to-use cryptocurrency queries
- Professional development workflow
We welcome contributions! Please see ourContributing Guidefor details.
- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
- v1.0: Core MCP server with 8 tools
- v1.1: Chat session persistence
- v1.2: Interactive API explorer
- v1.3: Cursor IDE integration
- v1.4: WebSocket real-time streaming
- v1.5: Advanced charting and technical indicators
- v2.0: Multi-exchange support
- Rate limiting on Coinbase public API (60 requests/hour for some endpoints)
- Chat sessions limited to localStorage (10 sessions max for performance)
- Client-side API keys should only be used in development
This project is licensed under the MIT License - see theLICENSEfile for details.
- Model Context Protocolteam for the excellent specification
- Coinbasefor providing robust public APIs
- Cursorfor excellent MCP integration
- The open-source community for invaluable tools and libraries
- πBug Reports:GitHub Issues
- π¬Discussions:GitHub Discussions
- π§Questions: Create an issue with the "question" label
Made with β€οΈ by Vladimir Bichev for the crypto and AI communities
Provides seamless access to the Binance exchange API. Requires Binance API credentials to be configured.
Interact with the Binance API to view portfolios, convert tokens, and execute trades with minimal market impact.
Access the Binance Futures API for trading, account management, and market data.
Hosted MCP gateway that enables AI agents to discover and compare Web3 infra services (RPCs, indexing, oracles, storage, compute, dev tools, and more) across 20+ networks via a single endpoint
An MCP server for accessing real-time cryptocurrency data from the CoinGecko Pro API.
Fetches real-time cryptocurrency prices from the CoinGecko API.
Access Bitcoin network data from mempool.space's API for AI agents and applications.
Ai Chat Voice Features Setup Optional
To enable the AI-powered chat interface with voice capabilities:
- Get OpenAI API Key: Visit](https://github.com/Bichev/coinbase-chat-mcp/blob/HEAD/ARCHITECTURE.md)[OpenAI Platform
- Create frontend/.env file:
VITE_OPENAI_API_KEY=sk-your-actual-api-key-here
Access cryptocurrency data, market information, and trading insights from Coinbase's public API.
An open-sourceModel Context Protocol (MCP)server and web application for seamless integration with Coinbase's public API. This project enables AI agents, LLMs, and developers to interact with cryptocurrency data, market information, and trading insights through a standardized, secure interface.
Perfect for learning crypto without financial risk!π
- Full MCP Compliance- Implements complete Model Context Protocol specification
- 13 Powerful Tools- Real-time prices, historical data, market stats, asset search, technical analysis, and transaction simulation
- πΊβΏ Circular Economy- Complete flow: USD β Crypto β Virtual Beer!
- Smart Suggestions- AI guides you to buy crypto if needed before purchases
- Virtual Wallet & Inventory- Track balances, transactions, and beer collection
- Cursor Integration- Pre-configured for Cursor IDE with.cursor/mcp.json
- Claude Desktop Compatible- Works with any MCP-compatible client
- Secure & Fast- Built-in rate limiting and intelligent caching
- AI-Powered Conversations- GPT-4 integration for intelligent crypto discussions
- Voice Input- Speak your questions with multi-language support via OpenAI Whisper
- Text-to-Speech- AI responses read aloud with natural voices
- Session Persistence- Chat history saved across browser tabs and restarts
- Session Management- Create, switch, and manage multiple chat sessions
- Auto-Titling- Sessions automatically titled from first user message
- Real-time Sync- Live updates when switching between sessions
- Interactive Documentation- Live testing interface for all 8 MCP tools
- Real-time Testing- Execute API calls directly from the browser
- Code Generation- Auto-generated cURL and JavaScript examples
- Copy-to-Clipboard- Easy code sharing and integration
- Comprehensive Coverage- All endpoints documented with parameters and examples
- Beautiful UI- Clean, responsive design with TailwindCSS
- Real-time Data- Live cryptocurrency prices and market updates
- Multiple Pages- Dashboard, Markets, Assets, Analysis, Chat, and API Explorer
- Mobile Friendly- Responsive design works on all devices
git clone https://github.com/your-username/coinbase-chat-mcp.git cd coinbase-chat-mcp
npm install # Install dependencies for all workspaces cd mcp-server && npm install && cd .. cd frontend && npm install && cd .. cd api-server && npm install && cd ..
Configure environment variables (Optional for AI features)
cd frontend # Create .env file with your OpenAI API key for voice features echo "VITE_OPENAI_API_KEY=your_openai_api_key_here" > .env cd ..
# Start API server (port 3002) cd api-server && npm run dev & # Start frontend (port 5173) cd frontend && npm run dev &
The project includes pre-configured Cursor MCP settings:
- Automatic Configuration-.cursor/mcp.jsonis already configured
- Restart Cursor- MCP server will auto-load with 8 tools available
- Test Integration- Try asking: "What's the current Bitcoin price?"
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{ "mcpServers": { "coinbase-mcp": { "command": "node", "args": ["/path/to/coinbase-chat-mcp/mcp-server/dist/index.js"], "env": { "COINBASE_API_URL": "https://api.coinbase.com/v2", "LOG_LEVEL": "info" } } } }
- get_spot_price- Current cryptocurrency prices
- get_historical_prices- Historical price data with time ranges
- get_exchange_rates- Fiat currency exchange rates
- search_assets- Find cryptocurrencies and assets
- get_asset_details- Detailed asset information
- get_market_stats- 24-hour market statistics
- get_popular_pairs- Popular trading pairs
- analyze_price_data- Technical analysis (volatility, trends, support/resistance)
- calculate_beer_cost- Convert beer money to crypto amounts
- simulate_btc_purchase- Simulate buying crypto with USD
- buy_virtual_beerπ₯ - Buy virtual beer WITH crypto! (Circular economy)
- get_virtual_wallet- View demo wallet balance and stats
- get_transaction_history- View simulated transaction history
π―Try asking: "Buy me a beer!" β AI will guide you through USDβBTCβBeer! πFull docs:DEMO_TRANSACTIONS.mdβ’CIRCULAR_ECONOMY.md
This project uses ahybrid architecturecombining:
- Real market datafrom Coinbase Public API
- Simulated walletfor educational crypto transactions
- Official MCP protocolfor AI agent integration
- Modern web stackfor beautiful UX
βββββββββββββββ βββββββββββββββ βββββββββββββββ β Cursor IDE β β Web Browser β βClaude Desktopβ β (MCP Client)β β (React App) β β (MCP Client)β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ β β β ββββββββββββββββββ΄βββββββββββββββββ β ββββββββββββββββββ΄βββββββββββββββββ β β βΌ βΌ ββββββββββββββββ ββββββββββββββββββββ β MCP Server β β API Server β β (13 tools) β β (REST API) β ββββββββ¬ββββββββ ββββββββββ¬ββββββββββ β β βββββββββββββ¬ββββββββββββββββββββ β βββββββββββββ΄ββββββββββββ β β βΌ βΌ ββββββββββββββββ βββββββββββββββββββ β Coinbase API β β Demo Wallet β β (Real Data) β β (Simulated) β ββββββββββββββββ βββββββββββββββββββ
πDetailed Architecture: SeeARCHITECTURE.mdfor:
- Component diagrams
- Code examples
- Real vs. simulated breakdown
- Comparison with Base MCP and x402
- Technical deep dive
coinbase-chat-mcp/ βββ mcp-server/ # MCP Protocol Server (13 tools) βββ api-server/ # Express REST API Server βββ frontend/ # React + TypeScript Frontend β βββ src/pages/ # Chat, Wallet, API Explorer β βββ src/components/ # Reusable UI components β βββ src/services/ # AI, Voice, Chat sessions βββ docs/ # Comprehensive documentation βββ .cursor/ # Cursor IDE MCP configuration
Exposes 13 tools through Model Context Protocol:
- Real-time prices, historical data, market stats
- Asset search and details, exchange rates
- Technical analysis (volatility, trends, support/resistance)
- πΊβΏ Beer-to-crypto calculator
- Virtual wallet simulation (USD β Crypto)
- Circular economy (Crypto β Beer!)
- Balance & transaction history
- AI Chat- GPT-4 powered with voice input π€ and TTS π
- Virtual Wallet- Demo crypto purchases and beer economy πΊβΏ
- API Explorer- Interactive documentation and testing
- Tutorial- Step-by-step MCP integration guide
- Presentations- Business slide deck viewer
Create.envfiles for AI chat functionality:
# frontend/.env (Optional - for AI chat) VITE_OPENAI_API_KEY=your_openai_api_key_here
Security Note: The frontend includes built-in warnings about client-side API key usage and only enables AI features in development mode.
π€ AI Chat & Voice Features Setup (Optional)
To enable the AI-powered chat interface with voice capabilities:
- Get OpenAI API Key: Visit[OpenAI Platform
- Create frontend/.env file:
VITE_OPENAI_API_KEY=sk-your-actual-api-key-here
π€ Voice Features (Requires OpenAI API Key)
Once configured, you'll have access to:
-
π Multi-Language Voice Input- Speak questions in any language using OpenAI Whisper
- Supports 50+ languages including English, Spanish, French, German, Russian, Chinese, Japanese, and more
- Real-time speech-to-text transcription
- Click the purple microphone button to start recording
π Text-to-Speech Responses- Hear AI responses read aloud
- Click the speaker icon on any assistant message
- Natural-sounding voices powered by OpenAI TTS
- Multiple voice options available
β‘ Fallback Mode- Without OpenAI key, basic Web Speech API provides English-only voice input
β¦
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




