MCP Crypto Price Monitor
# MCP Crypto Price Monitor
A Model Context Protocol (MCP) server for monitoring cryptocurrency prices and market data using the CoinGecko API. This server allows LLMs to retrieve real-time data, historical charts, and global market statistics directly through the MCP interface.
## Features
- **Real-time Prices**: Get current prices in multiple currencies (USD, IDR, etc.).
- **Top Coins**: List top cryptocurrencies by market capitalization.
- **Detailed Insights**: Access market ranking, All-Time High (ATH), All-Time Low (ATL), and supply data.
- **Price History**: Retrieve OHLC (Open, High, Low, Close) historical data for analysis.
- **Global Market Stats**: Monitor total market cap, BTC/ETH dominance, and active markets.
- **Coin Search**: Find cryptocurrencies by name or symbol.
- **Comparison Tool**: Compare multiple coins side-by-side.
## Installation
### Prerequisites
- Python 3.13 or higher
- [uv](https://github.com/astral-sh/uv) (recommended) or pip
### Setup
1. Clone this repository:
```bash
git clone https://github.com/your-username/mcp-crypto.git
cd mcp-crypto
```
2. Install dependencies:
```bash
uv sync
# or
pip install httpx mcp[cli] python-dotenv
```
## Usage
### Running the Server
You can run the server locally for testing:
```bash
uv run main.py
```
### Integration with Claude Desktop
To use this server with Claude Desktop, add the following configuration to your `claude_desktop_config.json`:
```json
{
"mcpServers": {
"crypto-monitor": {
"command": "uv",
"args": ["--directory", "D:/Project/mcp-crypto", "run", "main.py"]
}
}
}
```
_(Make sure to replace `D:/Project/mcp-crypto` with your actual absolute path)_
## Available Tools
| Tool | Description |
| :------------------ | :------------------------------------------------------------------- |
| `get_price` | Get current price of one or more coins in specific currencies. |
| `get_coin_detail` | Get full market data, ATH, ATL, and description for a specific coin. |
| `get_top_coins` | List the top N cryptocurrencies by market cap. |
| `search_coin` | Search for a coin by its name or symbol. |
| `get_global_market` | Get global metrics like total market cap and BTC dominance. |
| `get_price_history` | Get OHLC historical data for a specified number of days. |
| `compare_coins` | Compare multiple coins side-by-side in a single view. |
## Data Source
Data is provided by the [CoinGecko API](https://www.coingecko.com/en/api). This server uses the free tier, which does not require an API key but has rate limits.
## License
MIT License
TDQS
Scored across 7 tools
Each tool has a distinct primary purpose: current price, history, detail, rankings, search, global stats, and comparison. There is mild overlap since get_price, get_coin_detail, and compare_coins all return price data for coins, so an agent may occasionally pick the wrong one, but the descriptions clarify the differences well.
All names use snake_case with a consistent verb_noun pattern (get_price, get_price_history, get_coin_detail, get_top_coins, get_global_market, search_coin, compare_coins). The verb variations (get/search/compare) are semantically meaningful rather than arbitrary.
Seven tools is a well-scoped set for a crypto price monitor, with each tool covering a distinct and necessary capability. No tool feels redundant or out of place.
The surface covers the core lifecycle: search, current price, history, detail, rankings, global market, and comparison. Minor gaps exist such as trending coins or exchange/market-pair data, but agents can work around these using the existing tools.