连接器指南阅读约 5 分钟22 个 MCP 工具7 种语言

如何通过 MCP 将 CoinMarketCap 连接到 Claude

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

CoinMarketCap

CoinMarketCap

Crypto market data from the CoinMarketCap Pro API: coin and exchange ids and metadata, latest and historical prices, rankings, categories, global market metrics, Fear and Greed, Altcoin Season and CMC100 indexes, proof-of-reserves and price conversion. Read-only.

个工具

22

区域

INTL

类别

财务

身份验证

API Key

所需环境变量

CMC_PRO_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 CoinMarketCap,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

AnythingMCP 已收录在 Claude 的连接器目录中:一键添加到 Claude (在新标签页中打开),然后登录并选择 Claude 可以使用哪些 MCP 服务器。

摘要

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

试试这样问

CoinMarketCap 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

CoinMarketCap · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → CoinMarketCap、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

CoinMarketCap + Claude

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

CMC_PRO_API_KEY

步骤 1 — 获取凭证

设置大约需要 2 分钟。你需要一个 CoinMarketCap API 密钥;大多数工具用免费的 Basic 套餐就够了。

  1. 在 https://pro.coinmarketcap.com/signup 注册。Basic 套餐每月 10,000 积分,每分钟 30 次请求。
  2. 从 https://pro.coinmarketcap.com/account 的控制台复制 API 密钥到 CMC_PRO_API_KEY。它通过 X-CMC_PRO_API_KEY 请求头发送。
  3. 安装连接器并运行 coinmarketcap_get_key_info:它显示你的套餐、速率限制以及今天和本月剩余的积分,本身不消耗积分。

先确定币种 ID:代码并不唯一,多个币种可能使用同一个符号。AI 会用 coinmarketcap_map_cryptocurrencies(传入 symbol)把名称或代码解析为 CoinMarketCap 数字 ID,之后的所有调用都使用这个 ID。常用 ID:1 = Bitcoin,1027 = Ethereum,825 = Tether,5426 = Solana。convert_id 用的法币 ID 来自 coinmarketcap_map_fiat(2781 = USD),它还可以列出黄金、白银、铂金和钯金。

可以读取的内容:

  • 实时价格:最快的回答用 coinmarketcap_get_simple_price,完整报价用 coinmarketcap_get_quotes_latest,包含市值、市场占比、24 小时成交量、1 小时到 90 天的涨跌幅、供应量和排名。
  • 排名和筛选:coinmarketcap_list_listings_latest 可按价格、市值、成交量、供应量或 24 小时涨跌幅排序和筛选,也可按币或代币、按标签筛选。coinmarketcap_list_gainers_losers 显示 1h、24h、7d 或 30d 内涨幅和跌幅最大的币种。
  • 历史数据:coinmarketcap_get_quotes_historical 按固定间隔返回价格,coinmarketcap_get_ohlcv_historical 返回日线或小时线 K 线,coinmarketcap_get_global_metrics_historical 返回全市场的历史走势。
  • 币种资料:coinmarketcap_get_cryptocurrency_info 提供简介、官网、白皮书、区块浏览器、社交链接、标签、上线日期和合约地址,也可以按合约地址查询。分类(DeFi、Layer 1、Memes、AI 等)用 coinmarketcap_list_categories,某个分类下的币种用 coinmarketcap_get_category。
  • 市场情绪:coinmarketcap_get_global_metrics(总市值和成交量、Bitcoin 和 Ethereum 市场占比、DeFi、稳定币和衍生品数据),coinmarketcap_get_fear_and_greed_latest 和 coinmarketcap_get_fear_and_greed_historical(0 = 极度恐惧,100 = 极度贪婪),coinmarketcap_get_altcoin_season_index(高于 75 为山寨币季节,低于 25 为比特币季节),以及带成分和权重的 coinmarketcap_get_cmc100_index。
  • 交易所:coinmarketcap_map_exchanges 查找 ID(270 = Binance),coinmarketcap_get_exchange_info 提供简介、所在国家、支持的法币以及 maker 和 taker 费率,coinmarketcap_get_exchange_assets 列出储备金证明钱包,包括区块链、代币、余额和 USD 价值。
  • 换算:coinmarketcap_convert_price 把一笔加密货币或法币金额换算成一种或多种其他货币。

只读:所有工具都只读取数据,因此安装时没有关闭任何工具。

数据格式:每个响应都有 status 对象(error_code、error_message、credit_count),结果在 data 中。在最新行情列表和最新报价中,data 是列表,每个币种的 quote 也是列表,每种请求的货币一项;其他接口中 quote 是以货币为键的对象(quote.USD.price)。价格和市值以请求的货币表示,默认 USD。涨跌幅为百分比(2.5 = +2.5%),供应量以币为单位,时间为 UTC 的 ISO 8601。

分页:列表工具接受 start(从 1 开始)和 limit;下一页从 start 加 limit 开始。

积分和套餐:每次调用至少消耗一个积分。行情列表每 250 个币种一个积分,历史数据每 100 个数据点一个积分,convert 中第一个之后的每种货币再加一个积分;恐惧贪婪历史数据每次调用一个积分(最多 500 天)。积分按天和按月重置,Basic 套餐在 UTC 午夜重置。coinmarketcap_get_ohlcv_historical、coinmarketcap_list_gainers_losers 以及按过去某个 time 换算需要 Startup 或更高套餐。Basic 套餐的历史报价在日内间隔下可回溯 1 个月,按日间隔可回溯 1 年。

常见错误:401 表示密钥缺失或错误(错误码 1001、1002),402 表示套餐未付款或已过期,403 表示套餐不包含该接口(1006),429 表示超过每分钟速率限制或每日、每月积分用完(1008 到 1011),400 表示参数无效,例如未知的符号;把 skip_invalid 设为 true 后,AI 会跳过未知的 ID 或符号,而不是让整个请求失败。

该连接器不进行交易,不读取你自己的交易所账户或钱包,也不设置价格提醒。它展示的是 CoinMarketCap 的市场数据,不构成投资建议。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Claude 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

推荐路径:在 claude.ai web 上工作,无需触碰任何配置文件。

  1. 在 Claude 中打开 Customize → Connectors。
  2. 点击 +,然后点击 Add custom connector。
  3. 输入名称(例如 CoinMarketCap)和远程 MCP 服务器 URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,然后点击 Add。
  4. 点击 Connect,登录 AnythingMCP(OAuth)并允许访问。

下面所有工具都会出现在你的聊天中,开始输入提示。

可用工具

ToolWhat it does
coinmarketcap_get_key_infoPlan and usage of the API key: monthly credit limit and reset date, rate limit per minute, credits used and left today and this month…
coinmarketcap_map_cryptocurrenciesMap of cryptocurrencies to their CoinMarketCap ids: id, name, symbol, slug, rank, active flag, first and last data dates and, for tokens…
coinmarketcap_get_cryptocurrency_infoStatic metadata of one or more cryptocurrencies: description, logo, website, whitepaper, explorers, source code, social links, tags…
coinmarketcap_list_listings_latestRanked list of active cryptocurrencies with latest market data: price, market cap, dominance, fully diluted market cap, 24 hour volume…
coinmarketcap_get_quotes_latestLatest market quote for specific cryptocurrencies: price, market cap, dominance, 24 hour volume and volume change, percent change over 1h…
coinmarketcap_get_simple_priceFastest price lookup: the current price of one or more cryptocurrencies in one or more currencies, optionally with market cap, 24 hour…
coinmarketcap_get_quotes_historicalHistorical quotes of one or more cryptocurrencies at regular intervals: price, volume, market cap and supply per point
coinmarketcap_get_ohlcv_historicalDaily or hourly open, high, low, close and volume candles of one or more cryptocurrencies over a period
coinmarketcap_list_gainers_losersBiggest gainers and losers by price change over 1h, 24h, 7d or 30d, with full market data
coinmarketcap_list_categoriesCryptocurrency categories (DeFi, Layer 1, Memes, AI, ...) with id, name, number of tokens, average price change, market cap and volume and…
coinmarketcap_get_categoryOne category with its aggregate figures and the coins in it, each with market data
coinmarketcap_get_global_metricsLatest totals of the whole crypto market: total market cap and 24 hour volume, Bitcoin and Ethereum dominance with their change since…
coinmarketcap_get_global_metrics_historicalTotal market cap, volume and dominance of the crypto market over time
coinmarketcap_get_fear_and_greed_latestToday's CMC Crypto Fear and Greed Index: a value from 0 (extreme fear) to 100 (extreme greed), its classification (Extreme fear, Fear…
coinmarketcap_get_fear_and_greed_historicalPast values of the CMC Crypto Fear and Greed Index, one per day, newest first, each with value, classification and timestamp
coinmarketcap_get_altcoin_season_indexCMC Altcoin Season Index (0 to 100): above 75 means altcoin season, below 25 Bitcoin season
coinmarketcap_get_cmc100_indexLatest value of the CoinMarketCap 100 index with its 24 hour change, the constituents and their weights in percent, and the next rebalance…
coinmarketcap_map_exchangesMap of exchanges to their CoinMarketCap ids: id, name, slug, active flag and first and last data dates
coinmarketcap_get_exchange_infoStatic metadata of one or more exchanges: description, logo, website and fee links, launch date, countries, fiat currencies, maker and…
coinmarketcap_get_exchange_assetsProof-of-reserves wallets of one exchange: each wallet address with its blockchain, the token held, the balance and its USD value
coinmarketcap_convert_priceConvert an amount of one cryptocurrency or fiat currency into one or more others at the latest rate, or at a past time with the time…
coinmarketcap_map_fiatFiat currencies (and optionally precious metals) with their CoinMarketCap ids, names, signs and symbols, for use in convert_id

示例提示

  • “Bitcoin、Ethereum 和 Solana 现在值多少欧元?过去 24 小时涨跌了多少?”
  • “列出市值前 20 的币种,附上价格、7 天涨跌幅和 24 小时成交量。”
  • “过去 30 天恐惧贪婪指数是怎么变化的?今天是多少?”
  • “现在是山寨币季节吗?顺便告诉我比特币市场占比和加密市场总市值。”
  • “按最新汇率,2.5 ETH 等于多少 USD 和 CHF?”

FAQ

Claude Code 和 Claude Desktop 一样工作吗? 是的,两者都指向 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。

下一步

这份指南对你有帮助吗?

你的 CoinMarketCap 智能体只差一次点击。

安装连接器,粘贴密钥,向 Claude 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

CoinMarketCap 接入 MCP:在任意 AI 智能体中查看加密货币价格、排名、市场指标和恐惧贪婪指数

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

连接器

如何通过 MCP 将 CoinMarketCap 连接到 ChatGPT

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

连接器

如何通过 MCP 将 CoinMarketCap 连接到 Cursor

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

连接器

如何通过 MCP 将 CoinMarketCap 连接到 Gemini

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

连接器

如何通过 MCP 将 CoinMarketCap 连接到 Meta Muse

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。

连接器

如何通过 MCP 将 CoinMarketCap 连接到 Microsoft Copilot

来自 CoinMarketCap Pro API 的加密市场数据:币种和交易所的 ID 与元数据、实时和历史价格、排名和分类、全市场总量、恐惧贪婪指数、山寨币季节指数和 CMC100 指数、交易所储备金证明以及币种换算。只读;大多数工具使用免费的 Basic 套餐即可。