← 返回 Skills 市场
bryan-cmc

CoinMarketCap MCP

作者 CoinMarketCap · GitHub ↗ · v1.0.3
cross-platform ⚠ suspicious
545
总下载
1
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install cmc-mcp
功能描述
Fetches cryptocurrency market data, prices, technical analysis, news, and trends using the CoinMarketCap MCP. Use for ANY question involving cryptocurrencies...
使用说明 (SKILL.md)

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_latest returns price, market cap, volume, percent changes (1h, 24h, 7d, 30d, 90d, 1y), circulating supply, and dominance

For coin background and links:

  • get_crypto_info returns description, website, social links, explorer URLs, tags, and launch date

For technical analysis:

  • get_crypto_technical_analysis returns moving averages (SMA, EMA), MACD, RSI, Fibonacci levels, and pivot points

For recent news:

  • get_crypto_latest_news returns headlines, descriptions, content, URLs, and publish dates

For holder and distribution data:

  • get_crypto_metrics returns address counts by holding value, whale vs others distribution, and holder time breakdowns (traders, cruisers, holders)

For concept explanations:

  • search_crypto_info performs semantic search on crypto concepts, whitepapers, and FAQs

For overall market health:

  • get_global_metrics_latest returns 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_metrics returns open interest, funding rates, liquidations, and futures vs perpetuals breakdown

For total market cap technical analysis:

  • get_crypto_marketcap_technical_analysis returns TA indicators for the entire crypto market cap

For trending themes:

  • trending_crypto_narratives returns hot narratives with market cap, volume, performance, and top coins in each narrative

For upcoming catalysts:

  • get_upcoming_macro_events returns scheduled events like Fed meetings, regulatory deadlines, and major announcements

Error Handling

If search returns no results:

  1. Report that the coin was not found
  2. Ask the user to clarify or check the spelling
  3. Suggest alternatives if the query might be ambiguous

If a tool fails or times out:

  1. Retry once for transient errors
  2. If still failing, note which data is unavailable and proceed with other tools
  3. For price queries, get_crypto_quotes_latest is critical. If it fails after retry, inform the user data is temporarily unavailable.
  4. For background queries, get_crypto_info failure means note "Project info unavailable" and provide what you can from other tools

If rate limited (429 error):

  1. Inform the user the API is rate limited
  2. Suggest waiting a moment before retrying
  3. 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
安全使用建议
What to check before installing: - Confirm the registry metadata vs SKILL.md: SKILL.md requires a CoinMarketCap MCP API key (X-CMC-MCP-API-KEY). Make sure the platform will prompt for and securely store that key (mcpServers), and fix the metadata mismatch. - Review how/when the skill is invoked: SKILL.md says to trigger on any crypto mention and to 'fetch more data' by default — this may cause many external API calls, exposing user queries to CoinMarketCap and consuming API quota or incurring costs. Consider requiring explicit user permission before calls for incidental mentions. - Limit API-key permissions and monitor usage: use a key with minimal necessary scopes, check rate limits, and enable monitoring/alerts on the account so unexpected use is detected quickly. - Privacy and data exposure: be aware that user queries and any data sent to MCP will go to CoinMarketCap. If you handle sensitive portfolio or account info, consider whether sending it to the third-party API is acceptable. - If you need higher assurance: ask the maintainer (repo/homepage) to update the skill listing to declare required credentials in registry metadata and to document exactly how the key is stored and when the skill will call external tools. That clarification would raise confidence.
功能分析
Type: OpenClaw Skill Name: cmc-mcp Version: 1.0.3 The skill bundle is benign. Its purpose is clearly defined as fetching cryptocurrency market data using CoinMarketCap's MCP API. The `SKILL.md` explicitly lists a highly restricted set of `allowed-tools`, all of which are specific CoinMarketCap API functions (e.g., `mcp__cmc-mcp__search_cryptos`, `mcp__cmc-mcp__get_crypto_quotes_latest`). There are no instructions or capabilities for arbitrary command execution, file system access, unauthorized network requests, data exfiltration, or persistence mechanisms. The prompt instructions for the AI agent guide it on how to effectively use these specific, allowed tools to answer crypto-related queries, without any malicious intent or attempts at prompt injection to bypass security controls.
能力评估
Purpose & Capability
The skill's declared functionality (fetching CMC market data via MCP tools) aligns with the tools listed in SKILL.md and the required CoinMarketCap API key; however the registry metadata provided with the skill notes 'Required env vars: none' and 'Primary credential: none' while SKILL.md clearly declares a required credential (X-CMC-MCP-API-KEY). This metadata mismatch is inconsistent and should be corrected/clarified.
Instruction Scope
SKILL.md contains explicit, narrow instructions for which MCP tools to call for particular data types and how to handle errors. However, it also instructs the agent to 'use for ANY question involving cryptocurrencies... even if the user doesn't explicitly ask for data' and to 'err on the side of fetching more data.' That is aggressive: it may cause frequent external API calls for incidental mentions, increasing privacy exposure and rate-limit / cost risk. The instructions do not request unrelated system files or secrets.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. The runtime surface is the platform's tool invocation, not downloaded code. No suspicious download or extract behavior is present.
Credentials
SKILL.md requires a CoinMarketCap MCP API key (X-CMC-MCP-API-KEY) and shows storing it in an mcpServers configuration entry. That credential is appropriate for the stated purpose. The concern is the registry metadata/requirements in the skill listing do not reflect this (they show no required env/primary credential), creating an ambiguity about where/how the key is expected to be provided and stored. Also, because the skill encourages broad/autonomous use, the API key could be used frequently — check key permissions, quotas, and monitoring.
Persistence & Privilege
always is false (good). The SKILL.md references storing the API key in agent settings (mcpServers), which implies the skill expects to read/write its own config; that's normal. The combination of autonomous invocation (platform default) with the skill's broad trigger rules is notable — if you want to limit external calls, require explicit user consent before each external API usage or restrict triggers.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cmc-mcp
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cmc-mcp 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added homepage and source fields to the skill metadata for improved discoverability and transparency. - No changes to skill logic or functionality.
v1.0.2
- Added a credentials requirement section, specifying that an X-CMC-MCP-API-KEY is needed and how to obtain and store it. - No changes to functionality or tools; documentation improvement only. - Clarifies credential setup for easier onboarding and troubleshooting.
v1.0.1
- Expanded skill trigger: now activate for any cryptocurrency, token, or blockchain market questions, even without explicit data requests. - Improved error handling: added steps for MCP connection issues, tool failures, and API rate limits, with clearer user guidance. - Added prerequisite section: instructs users to verify MCP setup if connection errors occur, with setup instructions included. - Minor clarifications to usage instructions and workflow for greater robustness and user support. - Updated display name
v1.0.0
Initial release of cmc-mcp skill. - Provides comprehensive access to CoinMarketCap data for cryptocurrency prices, technical analysis, news, global metrics, and trends. - Supports a wide range of user queries, from individual coin data (price, info, metrics) to overall market health and trending narratives. - Outlines robust search-first and batch-query workflows for efficiency and completeness. - Includes guidance for error handling and adapting responses to user sophistication. - Offers setup instructions for users to connect their own CoinMarketCap MCP instance if required.
元数据
Slug cmc-mcp
版本 1.0.3
许可证
累计安装 1
当前安装数 1
历史版本数 4
常见问题

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。

💬 留言讨论