CoinGecko API Server MCP
Quick Start
Features
- **Dual API Support**: Seamlessly works with both CoinGecko Free and Pro APIs
- **Automatic Fallback**: Falls back to free API during development
- **RESTful Endpoints**: Simple and intuitive API interface
- **Robust Error Handling**: Detailed error messages and proper status codes
- **Simple Setup**: Quick installation with guided setup
- **Comprehensive Documentation**: Clear usage instructions
Setup Options
Option 1: Using npx (Recommended)
- Ask where to install the server
- Clone the repository
- Install dependencies
- Prompt for your CoinGecko API key (optional)
- Configure your server port
Option 2: Manual Setup
Configuration
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
API Endpoints
Basic Endpoints
- `GET /api/ping` - Check CoinGecko API status
Price Data
- `GET /api/simple/price` - Get price data for specified coins - Query params: `ids`, `vs_currencies`, `include_market_cap`, `include_24hr_vol`, `include_24hr_change`, `include_last_updated_at`, `precision`
- `GET /api/simple/supported_vs_currencies` - Get list of supported vs currencies
Coin Data
- `GET /api/coins/markets` - Get market data for coins - Query params: `vs_currency`, `ids`, `category`, `order`, `per_page`, `page`, `sparkline`, `price_change_percentage`
Market Data
- `GET /api/global` - Get global cryptocurrency data
- `GET /api/search/trending` - Get trending coins
MCP Integration Information
- Start the CoinGecko API server locally
- In Claude Desktop, install the MCP by providing the server URL (e.g., `http://localhost:3000`)
- Claude can now access cryptocurrency data through the MCP interface
- **JSON-RPC 2.0 Endpoint**: `/rpc` - Handles all method calls from AI clients
- **Schema Definition**: `/mcp/schema` - Defines available tools and parameters
- **Standardized Communication**: Follows MCP protocol for seamless AI integration
Pro API vs Free API
- **Pro API**: Higher rate limits, no throttling, additional endpoints. Requires an API key.
- **Free API**: Limited to ~30 calls/minute with potential rate limiting.
Development
License
Acknowledgments
- [CoinGecko](https://www.coingecko.com/) for the cryptocurrency data API
- [Anthropic](https://www.anthropic.com/) for Claude AI and the MCP program