Skip to main content
Glama
szcharlesji

CoinMarketCap MCP Server

by szcharlesji

加密 MCP

模型上下文协议(MCP) 服务器为 Claude AI 提供来自 CoinMarketCap API 的加密货币数据的实时访问。

特征

该服务器为Claude提供了以下工具:

  • get-cryptocurrency-listings :获取最新的加密货币市场数据

  • get-cryptocurrency-quotes :检索特定加密货币的报价

  • get-cryptocurrency-map :获取加密货币到 CoinMarketCap ID 的映射

  • get-cryptocurrency-info :获取特定加密货币的详细元数据

  • get-global-metrics :访问全球加密货币市场指标

  • get-exchange-listings :获取有关加密货币交易所的信息

Related MCP server: CoinMarketCap Universal MCP Server

先决条件

与 Claude Desktop 集成

要将此 MCP 服务器与 Claude Desktop 集成:

  1. 找到 Claude Desktop 配置文件:

    • 在 macOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json

  2. 在文件中添加以下配置:

{
    "mcpServers": {
        "cmc": {
            "command": "npx",
            "args": ["crypto-mcp"],
            "env": {
                "COINMARKET_API_KEY": "your-api-key-here"
            }
        }
    }
}

手动安装

  1. 克隆此存储库

  2. 安装依赖项:

# Using npm
npm install

# Using bun
bun install
  1. 构建 TypeScript 代码:

# Using npm
npm run build

# Using bun
bun run build

Claude 中的用法

配置完成后,您可以要求 Claude 执行各种与加密货币相关的任务:

  • “按市值显示十大加密货币”

  • “比特币和以太坊现在的价格是多少?”

  • “当今全球加密货币市场指标如何?”

  • “跟我讲讲币安交易所吧”

截图

顶级加密货币

顶级加密货币

加密货币元数据

加密货币元数据

市场指标

市场指标

发展

该项目使用 TypeScript 和 Model Context Protocol SDK 构建与 Claude AI 通信的服务器。

要修改可用工具或添加新端点,请编辑src/index.ts文件并重建项目。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides comprehensive access to CoinMarketCap's cryptocurrency data including listings, quotes, market metrics, and the Fear & Greed Index directly within the Cursor environment.
    284 npm
    2
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides access to cryptocurrency market data, exchange information, and blockchain metrics through the CoinMarketCap API. Supports price quotes, historical data, trending tokens, global metrics, and DEX information across different subscription tiers.
    26
    42 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides cryptocurrency market data (top coins by market cap) and fiat currency exchange rates.
    35 npm
    MIT