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.
Metadata
Release files for coinmarketcap-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coinmarketcap_mcp-0.1.1.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coinmarketcap_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / coinmarketcap_mcp-0.1.1.tar.gz
| Download URL | coinmarketcap_mcp-0.1.1.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d955f3fdb2f046b2417206f37101c47697777b1f52c1bc3b8710f4f24b0368e
|
|
BLAKE2b-256 checksum How to use checksums |
5559a64cd64df3dfecb3c88ceb67ed8c08f6ff7df0cf63fccdc40f76be686d72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|
Release files / coinmarketcap_mcp-0.1.1-py3-none-any.whl
| Download URL | coinmarketcap_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d74805ec626387bc57d14855d090faea2867cd4f9875f4cecffa52db4fca733
|
|
BLAKE2b-256 checksum How to use checksums |
87e931285a11f83f7bd6700be233ea9e29d63b8f6d999c93a3c980741aa3ecd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.7
|