An MCP (Model Context Protocol) tool that provides cryptocurrency market data using the CoinGecko API, specifically designed for Claude Desktop.
An MCP (Model Context Protocol) tool that provides cryptocurrency market data using the CoinGecko API, specifically designed for Claude Desktop.
For a detailed guide on setting up and using this tool, check out our Medium tutorial: Tutorial: Using Claude Desktop with Crypto Trader MCP Tool to Get Real-Time Cryptocurrency Data
Ensure you have Python 3.10 or higher installed
Install dependencies:
pip install -r requirements.txt
{
"mcpServers": {
"crypto-trader": {
"command": "py",
"args": ["-3.13", "C:\\Path\\To\\Your\\Crypto-Trader-MCP-ClaudeDesktop\\main.py"]
}
}
}
py -3.13 main.py
Get real-time cryptocurrency price information:
{
"symbol": "BTC",
"name": "bitcoin",
"price": 65423.12,
"change_24h": 2.5,
"volume_24h": 28345678901,
"market_cap": 1234567890123,
"timestamp": "2025-03-15T10:30:00"
}
Get detailed market information for a cryptocurrency:
{
"symbol": "ETH",
"name": "Ethereum",
"market_cap_rank": 2,
"current_price": 3521.48,
"market_cap": 423456789012,
"total_volume": 15834567890,
"high_24h": 3580.25,
"low_24h": 3475.62,
"price_change_24h": 45.86,
"price_change_percentage_24h": 1.32,
"circulating_supply": 120283456,
"total_supply": 120283456,
"max_supply": null,
"ath": 4878.26,
"ath_date": "2021-11-10T14:24:11.849Z",
"atl": 0.432979,
"atl_date": "2015-10-20T00:00:00.000Z"
}
Get historical price data for a cryptocurrency:
{
"symbol": "BTC",
"name": "bitcoin",
"days": 30,
"prices": [
{
"date": "2025-02-15T00:00:00",
"price": 62150.23
},
{
"date": "2025-02-16T00:00:00",
"price": 63421.15
}
// ... more data points
]
}
Search for cryptocurrencies:
{
"results": [
{
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin"
},
{
"id": "bitcoin-cash",
"symbol": "BCH",
"name": "Bitcoin Cash"
}
// ... more results
]
}
Get trending cryptocurrencies:
{
"trending_coins": [
{
"id": "pendle",
"name": "Pendle",
"symbol": "PENDLE",
"market_cap_rank": 85,
"price_btc": 0.00002356
}
// ... more trending coins
]
}
Get global cryptocurrency market data:
{
"active_cryptocurrencies": 12875,
"markets": 892,
"total_market_cap_usd": 2347890123456,
"total_volume_usd": 89723456789,
"market_cap_percentage": {
"BTC": 52.4,
"ETH": 18.2
// ... more cryptocurrencies
},
"updated_at": "2025-03-15T10:30:00"
}
You can ask Claude Desktop questions like:
All tools include proper error handling and will return an error message if something goes wrong:
{
"error": "Failed to fetch price for INVALID_SYMBOL"
}
If the MCP server is not working in Claude Desktop:
This tool uses the free CoinGecko API which has rate limits. Please be aware that very frequent requests may be throttled by the API.
MIT License