This Model Context Protocol (MCP) server provides cryptocurrency information through Claude Desktop. It connects to the CoinMarketCap API to fetch real-time cryptocurrency data.
- Get current cryptocurrency information by symbol
- View a sample cryptocurrency portfolio
- Claude Desktop
- Node.js (v16 or later)
- CoinMarketCap API key (get one at coinmarketcap.com/api)
npm installnpm run buildAdd the MCP server to Claude Desktop by editing the Claude configuration file:
- Open Claude Desktop settings
- Add the following configuration:
{
"mcpServers": {
"crypto": {
"command": "node",
"args": ["/absolute/path/to/your/project/build/index.js"],
"env": {
"CMC_API_KEY": "your-coinmarketcap-api-key"
}
}
}
}Important: Replace
/absolute/path/to/your/projectwith the actual path to your project directory andyour-coinmarketcap-api-keywith your actual CoinMarketCap API key.
After adding the configuration, restart Claude Desktop to load the MCP server.
Once configured, you can use the following commands in your chat with Claude:
Attach portfolio resource from the MCP using the attachment button in Claude Desktop.
You can now ask questions like:
What is my portfolio's current value?
Claude will fetch the latest information from the CoinMarketCap API and provide detailed information about your portfolio.
Here's a sample of what Claude might return:
Based on your portfolio and current market prices, here's the value of your cryptocurrency holdings as of April 27, 2025:
ZK (ZKsync): 69,696 ZK × $0.06051 = $4,217.48
Bitcoin (BTC): 9,696 BTC × $94,361.18 = $914,904,201.28
Ethereum (ETH): 23,456 ETH × $1,803.33 = $42,288,825.48
Total portfolio value: $957,197,244.24
Your portfolio is primarily dominated by your Bitcoin holdings, which represent over 95% of your total portfolio value. Would you like any additional information about market trends or recommendations for your portfolio?
- Source code is in the src directory
- The main MCP server is defined in index.ts
- API interactions are handled in helper.ts
If you encounter issues:
- Check that your CoinMarketCap API key is valid
- Verify the path to the build file in Claude Desktop configuration
- Check console output for any error messages