CoinMarketCap
STDIOCoinMarketCap MCP server providing comprehensive cryptocurrency data access within Cursor
CoinMarketCap MCP server providing comprehensive cryptocurrency data access within Cursor
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.
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 currenciesget_exchange_listings - Get latest exchange listingsget_exchange_info - Get detailed exchange informationget_exchange_map - Get a map of all exchangesget_global_metrics - Get global cryptocurrency market metricsget_fear_greed_index - Get Fear & Greed Index dataThis 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:
git clone https://github.com/yourusername/coinmarketcap-mcp.git cd coinmarketcap-mcp
Install dependencies:
npm install
Set up environment variables:
Create a .env file in the project root directory.
Add your CoinMarketCap API key:
CMC_API_KEY=YOUR_COINMARKETCAP_API_KEY
CACHE_ENABLED=true
CACHE_TTL=300
Replace YOUR_COINMARKETCAP_API_KEY with your actual API key.
Build and run the server:
npm run dev
npm run build npm start
Add to Cursor:
COMMANDnode ABSOLUTE PATH/dist/index.jsNow, you can use all the available tools directly in Cursor to access CoinMarketCap data!
get_cryptocurrency_listings({ limit: 10, convert: "USD" })
get_cryptocurrency_quotes({ symbol: "BTC,ETH,SOL", convert: "USD" })
get_fear_greed_index({ limit: 7 })
get_global_metrics({ convert: "USD" })
If you encounter issues:
.env file is correctly configuredMIT