MCP server for CoinMarketCap API - search tokens, get metadata, and market data
Project description
CoinMarketCap MCP Server
MCP server for CoinMarketCap API - search tokens, get metadata, and market data for cryptocurrency validation workflows.
Features
- Token Lookup: Efficiently check if a cryptocurrency is listed on CoinMarketCap
- Metadata Retrieval: Get detailed token profiles including description, logos, links, and platform info
- Market Data: Get latest prices, volume, market cap, and price changes
- Exchange Info: Look up exchange metadata and trading data
- Global Metrics: Access total market cap, BTC dominance, and other global stats
Installation
# Using uv (recommended)
uv pip install coinmarketcap-mcp
# Using pip
pip install coinmarketcap-mcp
Configuration
API Key Setup
Get your free API key from CoinMarketCap API.
Set the environment variable:
export COINMARKETCAP_API_KEY=your-api-key-here
# Or alternatively:
export CMC_API_KEY=your-api-key-here
Usage
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"coinmarketcap": {
"command": "uvx",
"args": ["coinmarketcap-mcp"],
"env": {
"COINMARKETCAP_API_KEY": "your-api-key-here"
}
}
}
}
Claude Code
Add to your Claude Code MCP configuration (~/.claude.json):
{
"mcpServers": {
"coinmarketcap": {
"type": "stdio",
"command": "uvx",
"args": ["coinmarketcap-mcp"],
"env": {
"COINMARKETCAP_API_KEY": "your-api-key-here"
}
}
}
}
Run Directly
COINMARKETCAP_API_KEY=your-key coinmarketcap-mcp
Available Tools
| Tool | Description |
|---|---|
search_cryptocurrency |
Progressive search by name, symbol, and/or homepage URL |
cryptocurrency_map |
Search if a token is listed on CoinMarketCap by symbol or slug |
cryptocurrency_info |
Get detailed metadata/profile for cryptocurrencies |
cryptocurrency_quotes_latest |
Get latest market data (price, volume, market cap) |
exchange_map |
Search for exchanges on CoinMarketCap |
exchange_info |
Get detailed metadata for exchanges |
global_metrics_quotes_latest |
Get global market metrics (total market cap, BTC dominance) |
key_info |
Get API key usage and limits |
Example Queries
# Progressive search with name and homepage verification
"Search for a token named 'Uniswap' with homepage 'https://uniswap.org'"
# Check if a token is listed
"Is SOL listed on CoinMarketCap?"
# Get token metadata
"Get the profile and description for Ethereum"
# Check current prices
"What's the current price and market cap of BTC?"
Development
# Clone the repo
git clone https://github.com/YimingYAN/coinmarketcap-mcp
cd coinmarketcap-mcp
# Install dependencies
uv sync
# Run tests
uv run pytest
# Run the server locally
uv run coinmarketcap-mcp
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coinmarketcap_mcp-0.1.0.tar.gz.
File metadata
- Download URL: coinmarketcap_mcp-0.1.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a7ca2d522804c5d735d2b2657d0a6506046987ebe8adbfaf6d0e074c61c8160
|
|
| MD5 |
1b2d8065dac1655585e0a82023832d8c
|
|
| BLAKE2b-256 |
b942d1ec12ca2e4c7ba94363ca560453dc1bd491d9b08ac1272fe4dfc692c1f0
|
File details
Details for the file coinmarketcap_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coinmarketcap_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e768c19b88487171f1600dd095a3e02c014b48467da738047f19871acfe4be4
|
|
| MD5 |
1f6d00e0b65717fb226166be1689dcf8
|
|
| BLAKE2b-256 |
62a530154e88eace61c1430a4143ff67db4fb21d1a623c3bbfe4d9146e3e6262
|