CoinMarketCap MCP

Integrations

  • Provides access to cryptocurrency market data, exchange information, and blockchain metrics through the CoinMarketCap API, including cryptocurrency listings, market quotes, OHLCV data, exchange information, global metrics, and fear and greed indices.

  • Allows retrieving a Postman collection for the CoinMarketCap API through the getPostmanCollection endpoint.

  • Uses Zod for type-safe parameter validation when making requests to the CoinMarketCap API.

CoinMarketCap MCP

CoinMarketCap API 的模型上下文协议 (MCP)实现,提供用于访问加密货币市场数据、交换信息和其他区块链相关指标的标准化接口。

特征

  • CoinMarketCap API 的完整覆盖
  • 获取最新加密货币趋势、市场动向和全球市场指标的数据
  • 通过标准订阅或更高版本访问详细的 OHLCV 数据
  • 使用Zod进行类型安全参数验证

先决条件

如果您没有 API 密钥,请先在此处注册以获取免费的Basic密钥。

客户端配置

您可以通过多种方式配置 MCP 客户端和服务器。对于托管/远程服务器设置,请使用 Smithery 的 CLI 和Smithery API 密钥。对于本地安装,请使用npx或从源代码构建。以下将逐一解释这些选项。

Smithery 远程服务器(推荐)

要将远程服务器添加到 MCP 客户端config.json ,请从Smithery CLI运行以下命令:

npx -y @smithery/cli install @shinzo-labs/coinmarketcap-mcp

出现提示时,输入您的COINMARKETCAP_API_KEYSUBSCRIPTION_LEVEL (参见下面的选项)。

Smithery SDK

如果您正在开发自己的代理应用程序,则可以使用此处的样板代码。

NPX 本地安装

要使用npx在本地安装服务器,请将以下内容添加到 MCP 客户端config.json中:

{ "mcpServers": { "coinmarketcap": { "command": "npx", "args": [ "@shinzolabs/coinmarketcap-mcp" ], "env": { "COINMARKETCAP_API_KEY": "your-key-here", "SUBSCRIPTION_LEVEL": "Basic" // See options below } } } }

从源代码构建

  1. 下载 repo:
git clone https://github.com/shinzo-labs/coinmarketcap-mcp.git
  1. 安装软件包(在克隆的 repo 内):
pnpm i
  1. 将以下内容添加到您的 MCP 客户端config.json中:
{ "mcpServers": { "coinmarketcap": { "command": "node", "args": [ "/path/to/coinmarketcap-mcp/index.js" ], "env": { "COINMARKETCAP_API_KEY": "your-key-here", "SUBSCRIPTION_LEVEL": "Basic" // See options below } } } }

配置变量

多变的描述必需的?默认
COINMARKETCAP_API_KEYCoinMarketCap.com 的 API 密钥是的
SUBSCRIPTION_LEVELBasicHobbyistStartupStandardProfessionalEnterpriseBasic
PORTStreamable HTTP 传输方法的端口3000

支持的工具

订阅级别:基础(及以上)

加密货币
  • cryptoCurrencyMap :获取所有加密货币的映射
  • getCryptoMetadata :获取一个或多个加密货币的元数据
  • allCryptocurrencyListings :获取 1-5000 种加密货币的最新市场报价
  • cryptoQuotesLatest :获取一种或多种加密货币的最新市场报价
  • cryptoCategories :获取所有加密货币类别的列表
  • cryptoCategory :获取有关加密货币类别的元数据
交换
  • exchangeMap :获取所有交易所的映射
  • exchangeInfo :获取一个或多个交易所的元数据
  • exchangeAssets :获取交易所所有可用资产的列表
去中心化交易所
  • dexInfo :获取一个或多个去中心化交易所的元数据
  • dexListingsLatest :获取所有 DEX 的最新市场数据
  • dexNetworksList :获取具有唯一 ID 的所有网络的列表
  • dexSpotPairsLatest :获取所有活跃 DEX 现货对的最新市场数据
  • dexPairsQuotesLatest :获取现货对的最新市场报价
  • dexPairsOhlcvLatest :获取现货对的最新 OHLCV 数据
  • dexPairsOhlcvHistorical :获取现货对的历史 OHLCV 数据
  • dexPairsTradeLatest :获取现货对的最新交易
全球指标
  • globalMetricsLatest :获取最新的全球加密货币指标
指数
  • cmc100IndexLatest :获取最新的 CoinMarketCap 100 指数值和成分股
  • cmc100IndexHistorical :获取历史 CoinMarketCap 100 指数值
工具
  • priceConversion :将一种加密货币或法定货币转换为另一种
  • getPostmanCollection :获取 API 的 Postman 集合
其他
  • fiatMap :获取所有法定货币的映射
  • keyInfo :获取 API 密钥使用情况和状态
  • fearAndGreedLatest :获取最新的恐惧与贪婪指数
  • fearAndGreedHistorical :获取历史恐惧与贪婪指数值

订阅级别:业余爱好者(及以上)

加密货币
  • cryptoAirdrops :获取所有加密货币空投的列表
  • cryptoAirdrop :获取有关特定空投的元数据
  • historicalCryptocurrencyListings :获取任何加密货币的历史市场报价
  • cryptoQuotesHistorical :获取任何加密货币的历史市场报价
  • cryptoQuotesHistoricalV3 :获取具有高级时间间隔的历史市场报价
交换
  • exchangeQuotesHistorical :获取任何交易所的历史报价
全球指标
  • globalMetricsHistorical :获取历史全球加密货币指标

订阅级别:初创(及以上)

加密货币
  • newCryptocurrencyListings :获取最近添加的加密货币列表
  • cryptoTrendingGainersLosers :获取给定时间段内的最大赢家和输家
  • cryptoTrendingLatest :按搜索量获取热门加密货币
  • cryptoTrendingMostVisited :获取访问量最大的加密货币
  • cryptoOhlcvLatest :获取任何加密货币的最新 OHLCV 市场数据
  • cryptoOhlcvHistorical :获取任何加密货币的历史 OHLCV 市场数据
  • cryptoPricePerformanceStatsLatest :获取任何加密货币的价格表现统计数据

订阅级别:标准(及以上)

加密货币
  • cryptoMarketPairsLatest :获取任何加密货币的最新市场对
交换
  • exchangeListingsLatest :获取所有交易所的最新市场数据
  • exchangeMarketPairsLatest :获取任何交易所的最新市场对
  • exchangeQuotesLatest :获取一个或多个交易所的最新市场报价
内容
  • contentLatest :获取最新的加密货币新闻和内容
  • contentPostsTop :获取热门加密货币帖子
  • contentPostsLatest :获取最新的加密货币帖子
  • contentPostsComments :获取特定帖子的评论
社区
  • communityTrendingTopic :获取加密货币社区的热门话题
  • communityTrendingToken :获取加密货币社区中的热门代币

订阅级别:企业级(及以上)

区块链
  • blockchainStatisticsLatest :获取一个或多个区块链的最新统计数据

贡献

欢迎并鼓励大家贡献代码!请阅读CONTRIBUTING.md文件,获取问题、贡献指南和联系信息。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

访问完整的 CoinMarketCap API,其中包含 20 多个基本端点和 50 多个工具,包括加密货币市场数据、交换信息和其他区块链相关指标。

  1. 特征
    1. 先决条件
      1. 客户端配置
        1. Smithery 远程服务器(推荐)
        2. Smithery SDK
        3. NPX 本地安装
        4. 从源代码构建
      2. 配置变量
        1. 支持的工具
          1. 订阅级别:基础(及以上)
          2. 订阅级别:业余爱好者(及以上)
          3. 订阅级别:初创(及以上)
          4. 订阅级别:标准(及以上)
          5. 订阅级别:企业级(及以上)
        2. 贡献

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Real-time cryptocurrency market data integration using CoinCap's public API, providing access to crypto prices and market information without API keys
            Last updated -
            3
            147
            37
            TypeScript
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3
            Last updated -
            3
            35
            TypeScript
            MIT License
            • Apple
          • -
            security
            -
            license
            -
            quality
            Provides comprehensive access to CoinMarketCap's cryptocurrency data including listings, quotes, market metrics, and the Fear & Greed Index directly within the Cursor environment.
            Last updated -
            1,261
            1
            TypeScript

          View all related MCP servers

          ID: q04archth6