CoinMarketCap MCP
/install cmc-mcp
CoinMarketCap MCP Skill
You have access to CoinMarketCap data through MCP tools. Use these tools to provide comprehensive, data-rich answers to crypto-related questions.
Prerequisites
Before using CMC tools, verify the MCP connection is working. If tools fail or return connection errors, ask the user to set up the MCP connection:
{
"mcpServers": {
"cmc-mcp": {
"url": "https://mcp.coinmarketcap.com/mcp",
"headers": {
"X-CMC-MCP-API-KEY": "your-api-key"
}
}
}
}
Get your API key from https://pro.coinmarketcap.com/login
Core Principle
Err on the side of fetching more data. A complete answer from multiple tools is better than a partial answer that leaves users asking for more. When in doubt, call additional tools to gather comprehensive data.
Workflow
1. Always Search First
When a user mentions a cryptocurrency by name or symbol, search for it first to get the ID:
User: "How is Solana doing?"
→ Call search_cryptos with query "solana"
→ Get ID (e.g., 5426)
→ Then call other tools using that ID
Most tools require the numeric CMC ID, not the name or symbol. The search tool returns: id, name, symbol, slug, and rank.
2. Batch Requests When Useful
When dealing with multiple coins, batch the requests:
User: "Compare BTC, ETH, and SOL"
→ Search for each to get IDs: 1, 1027, 5426
→ Call get_crypto_quotes_latest with id="1,1027,5426"
This is more efficient than separate calls and allows for direct comparison in the response.
3. Match Tools to Query Type
For price and market data:
get_crypto_quotes_latestreturns price, market cap, volume, percent changes (1h, 24h, 7d, 30d, 90d, 1y), circulating supply, and dominance
For coin background and links:
get_crypto_inforeturns description, website, social links, explorer URLs, tags, and launch date
For technical analysis:
get_crypto_technical_analysisreturns moving averages (SMA, EMA), MACD, RSI, Fibonacci levels, and pivot points
For recent news:
get_crypto_latest_newsreturns headlines, descriptions, content, URLs, and publish dates
For holder and distribution data:
get_crypto_metricsreturns address counts by holding value, whale vs others distribution, and holder time breakdowns (traders, cruisers, holders)
For concept explanations:
search_crypto_infoperforms semantic search on crypto concepts, whitepapers, and FAQs
For overall market health:
get_global_metrics_latestreturns total market cap, fear/greed index, altcoin season index, BTC/ETH dominance, volume, and ETF flows
For derivatives and leverage data:
get_global_crypto_derivatives_metricsreturns open interest, funding rates, liquidations, and futures vs perpetuals breakdown
For total market cap technical analysis:
get_crypto_marketcap_technical_analysisreturns TA indicators for the entire crypto market cap
For trending themes:
trending_crypto_narrativesreturns hot narratives with market cap, volume, performance, and top coins in each narrative
For upcoming catalysts:
get_upcoming_macro_eventsreturns scheduled events like Fed meetings, regulatory deadlines, and major announcements
Error Handling
If search returns no results:
- Report that the coin was not found
- Ask the user to clarify or check the spelling
- Suggest alternatives if the query might be ambiguous
If a tool fails or times out:
- Retry once for transient errors
- If still failing, note which data is unavailable and proceed with other tools
- For price queries,
get_crypto_quotes_latestis critical. If it fails after retry, inform the user data is temporarily unavailable. - For background queries,
get_crypto_infofailure means note "Project info unavailable" and provide what you can from other tools
If rate limited (429 error):
- Inform the user the API is rate limited
- Suggest waiting a moment before retrying
- Consider if fewer tool calls could answer the question
Adapting to User Sophistication
Read context cues from the user's query:
- Casual questions ("how's bitcoin doing?") warrant a clear summary with key numbers
- Technical questions ("what's the RSI on BTC?") can include more detailed data
- Broad questions ("what's happening in crypto?") benefit from market-wide tools like global metrics and trending narratives
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cmc-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/cmc-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
CoinMarketCap MCP 是什么?
Fetches cryptocurrency market data, prices, technical analysis, news, and trends using the CoinMarketCap MCP. Use for ANY question involving cryptocurrencies... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 545 次。
如何安装 CoinMarketCap MCP?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cmc-mcp」即可一键安装,无需额外配置。
CoinMarketCap MCP 是免费的吗?
是的,CoinMarketCap MCP 完全免费(开源免费),可自由下载、安装和使用。
CoinMarketCap MCP 支持哪些平台?
CoinMarketCap MCP 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CoinMarketCap MCP?
由 CoinMarketCap(@bryan-cmc)开发并维护,当前版本 v1.0.3。