CoinMarketCap Universal MCP Server
This project is a Model Context Protocol (MCP) server that provides comprehensive access to CoinMarketCap's cryptocurrency data. It is designed to be easily integrated into Cursor, allowing you to access a wide range of cryptocurrency data directly within the Cursor environment.
Features
- Comprehensive API Coverage: Access to multiple CoinMarketCap API endpoints
- Smart Caching: Reduces API calls and improves performance
- Type Safety: Full TypeScript support with comprehensive type definitions
- Modular Design: Easy to extend and maintain
- Detailed Error Handling: Clear error messages and logging
Available Tools
Cryptocurrency Data
get_cryptocurrency_listings
- Get latest cryptocurrency listingsget_cryptocurrency_quotes
- Get quotes for specific cryptocurrenciesget_cryptocurrency_info
- Get metadata for cryptocurrenciesget_cryptocurrency_market_pairs
- Get market pairs for a cryptocurrencyget_cryptocurrency_ohlcv
- Get historical OHLCV dataconvert_cryptocurrency
- Convert between cryptocurrencies and fiat currencies
Exchange Data
get_exchange_listings
- Get latest exchange listingsget_exchange_info
- Get detailed exchange informationget_exchange_map
- Get a map of all exchanges
Global Market Data
get_global_metrics
- Get global cryptocurrency market metrics
Market Sentiment
get_fear_greed_index
- Get Fear & Greed Index data
How to Add to Cursor MCP
This project is built to seamlessly integrate with Cursor's MCP functionality. Here's how to add it:
- Clone the repository and enter the project directory:Copy
- Install dependencies:Copy
- Set up environment variables:
- Create a
.env
file in the project root directory. - Add your CoinMarketCap API key:ReplaceCopy
YOUR_COINMARKETCAP_API_KEY
with your actual API key.
- Create a
- Build and run the server:
- Development environment:Copy
- Production environment:Copy
- Development environment:
- Add to Cursor:
- Open Cursor.
- Go to Settings > MCP.
- Add a new server with the following configuration:
- Type:
COMMAND
- Command:
node ABSOLUTE PATH/dist/index.js
- Type:
Now, you can use all the available tools directly in Cursor to access CoinMarketCap data!
Usage Examples
Get the latest cryptocurrency listings
Copy
Get quotes for specific cryptocurrencies
Copy
Get the Fear & Greed Index
Copy
Get global market metrics
Copy
Troubleshooting
If you encounter issues:
- Make sure you have a valid CoinMarketCap API key
- Check that the
.env
file is correctly configured - Review the console logs for detailed error information
- Ensure your API plan has access to the endpoints you're trying to use
License
MIT
This server cannot be installed
Provides comprehensive access to CoinMarketCap's cryptocurrency data including listings, quotes, market metrics, and the Fear & Greed Index directly within the Cursor environment.