MCP server for CoinMarketCap API - search tokens, get metadata, and market data
Project description
CoinMarketCap MCP Server
An MCP (Model Context Protocol) server for querying cryptocurrency data from CoinMarketCap. Enables AI assistants like Claude to search tokens, validate metadata, and retrieve market data through natural language.
Features
- Progressive Search - Find tokens by name, symbol, or homepage URL with fuzzy matching
- Symbol Variation Handling - Automatically handles rebrands (RNDR→RENDER, MATIC→POL)
- Homepage Verification - Verify token identity by matching website URLs
- Market Data - Get latest prices, volume, market cap, and price changes
- Token Metadata - Retrieve descriptions, logos, social links, and platform info
- Exchange Info - Look up exchange metadata and trading data
Quick Start
Step 1: Get CoinMarketCap API Key
- Go to CoinMarketCap API
- Sign up for a free account
- Copy your API key from the dashboard
Step 2: Store API Key
Add to your ~/.env.local:
COINMARKETCAP_API_KEY=your-api-key-here
# Or alternatively:
CMC_API_KEY=your-api-key-here
Step 3: Configure Claude Code
Add to your ~/.claude.json under mcpServers:
{
"coinmarketcap": {
"command": "uvx",
"args": ["coinmarketcap-mcp"],
"env": {
"COINMARKETCAP_API_KEY": "${COINMARKETCAP_API_KEY}"
}
}
}
Step 4: Restart Claude Code
Restart Claude Code to load the MCP server. You should now have access to CoinMarketCap tools.
Available Tools
Search & Discovery
| Tool | Description |
|---|---|
search_cryptocurrency |
Progressive search with fuzzy matching and homepage verification |
cryptocurrency_map |
Direct lookup by symbol or slug |
Token Data
| Tool | Description |
|---|---|
cryptocurrency_info |
Detailed metadata (description, logo, links, platform) |
cryptocurrency_quotes_latest |
Latest price, volume, market cap, price changes |
Exchange Data
| Tool | Description |
|---|---|
exchange_map |
Search for exchanges |
exchange_info |
Exchange metadata and details |
Market Overview
| Tool | Description |
|---|---|
global_metrics_quotes_latest |
Total market cap, BTC dominance, active coins |
key_info |
API usage and rate limits |
Progressive Search
The search_cryptocurrency tool uses multiple strategies to find tokens:
- Exact symbol match (high confidence)
- Symbol variations - handles rebrands like RNDR→RENDER (medium confidence)
- Slug matching - matches by name slug (medium confidence)
- Fuzzy name search - searches 5000+ tokens by similarity (low confidence)
- Homepage verification - boosts confidence by matching website URLs
Example
Query: name="Render Token", symbol="RNDR", homepage="https://rendernetwork.com"
Search log:
- exact_symbol(RNDR): failed (symbol was renamed)
- symbol_variation(RENDER): 1 found
- homepage_verification: exact match
Result: Render (RENDER) - id=5690, confidence=verified
Example Queries
"Search for a token named 'Uniswap' with homepage 'https://uniswap.org'"
"Is RENDER listed on CoinMarketCap?"
"Get the profile and description for Chainlink"
"What's the current price and market cap of BTC and ETH?"
"Check my API usage"
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json under mcpServers:
{
"coinmarketcap": {
"command": "uvx",
"args": ["coinmarketcap-mcp"],
"env": {
"COINMARKETCAP_API_KEY": "${COINMARKETCAP_API_KEY}"
}
}
}
Development
# Clone the repo
git clone https://github.com/YimingYAN/coinmarketcap-mcp
cd coinmarketcap-mcp
# Install dependencies
uv sync
# Run the server locally
COINMARKETCAP_API_KEY=your-key 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.1.tar.gz.
File metadata
- Download URL: coinmarketcap_mcp-0.1.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d955f3fdb2f046b2417206f37101c47697777b1f52c1bc3b8710f4f24b0368e
|
|
| MD5 |
c10cd69c42ed7f6c8d929353b6bd0aa1
|
|
| BLAKE2b-256 |
5559a64cd64df3dfecb3c88ceb67ed8c08f6ff7df0cf63fccdc40f76be686d72
|
File details
Details for the file coinmarketcap_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: coinmarketcap_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d74805ec626387bc57d14855d090faea2867cd4f9875f4cecffa52db4fca733
|
|
| MD5 |
41363818e327b9faeec5f481c86f5469
|
|
| BLAKE2b-256 |
87e931285a11f83f7bd6700be233ea9e29d63b8f6d999c93a3c980741aa3ecd6
|