A Model Context Protocol (MCP) server that provides Claude AI with real-time access to cryptocurrency data from the CoinMarketCap API.
This server provides the following tools to Claude:
- get-cryptocurrency-listings: Get the latest cryptocurrency market data
- get-cryptocurrency-quotes: Retrieve quotes for specific cryptocurrencies
- get-cryptocurrency-map: Fetch the mapping of cryptocurrencies to CoinMarketCap IDs
- get-cryptocurrency-info: Get detailed metadata for specific cryptocurrencies
- get-global-metrics: Access global cryptocurrency market metrics
- get-exchange-listings: Get information about cryptocurrency exchanges
- A CoinMarketCap API key (get one at pro.coinmarketcap.com)
To integrate this MCP server with Claude Desktop:
-
Locate the Claude Desktop configuration file:
- On macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On macOS:
-
Add the following configuration to the file:
{
"mcpServers": {
"cmc": {
"command": "npx",
"args": ["crypto-mcp"],
"env": {
"COINMARKET_API_KEY": "your-api-key-here"
}
}
}
}
- Clone this repository
- Install dependencies:
# Using npm
npm install
# Using bun
bun install
- Build the TypeScript code:
# Using npm
npm run build
# Using bun
bun run build
Once configured, you can ask Claude to perform various cryptocurrency-related tasks:
- "Show me the top 10 cryptocurrencies by market cap"
- "What's the current price of Bitcoin and Ethereum?"
- "What are the global cryptocurrency market metrics today?"
- "Tell me about the Binance exchange"
This project uses TypeScript and the Model Context Protocol SDK to build a server that communicates with Claude AI.
To modify the available tools or add new endpoints, edit the src/index.ts
file and rebuild the project.