Skip to main content
Glama

Coin MCP 服务器

铁匠徽章

一个模型上下文协议服务器,提供对 CoinMarketCap 加密货币数据的访问。该服务器使人工智能应用程序能够检索加密货币列表、报价以及各种货币的详细信息。

可用工具

  • listing-coins - 获取所有活跃加密货币的分页列表以及最新的市场数据。

    • start (整数,可选):偏移要返回的项目分页列表的开始(基于 1 的索引)。

    • limit (整数,可选):返回的结果数(默认值:10,最大值:5000)。

    • price_min (数字,可选):过滤结果的最低美元价格。

    • price_max (数字,可选):过滤结果的最高美元价格。

    • market_cap_min (数字,可选):用于过滤结果的最低市值。

    • market_cap_max (数字,可选):用于过滤结果的最大市值。

    • convert (字符串,可选):计算多种货币的市场报价。

    • sort (字符串,可选):用于对加密货币列表进行排序的字段。

    • sort_dir (字符串,可选):对加密货币进行排序的方向(升序或降序)。

  • get-coin-info检索有关特定加密货币的详细信息。

    • id (字符串,可选):一个或多个以逗号分隔的 CoinMarketCap 加密货币 ID。

    • slug (字符串,可选):以逗号分隔的加密货币 slug 列表。

    • symbol (字符串,可选):一个或多个以逗号分隔的加密货币符号。

  • get-coin-quotes - 获取一种或多种加密货币的最新市场报价。

    • id (字符串,可选):一个或多个以逗号分隔的加密货币 CoinMarketCap ID。

    • slug (字符串,可选):以逗号分隔的加密货币 slug 列表。

    • symbol (字符串,可选):一个或多个以逗号分隔的加密货币符号。

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装加密货币数据:

npx -y @smithery/cli install coin-api-mcp --client claude

构建服务器

克隆此存储库并使用默认的 Python 解释器构建和安装程序(推荐)。

git clone https://github.com/longmans/coin_api_mcp.git
cd coin_api_mcp
uv build
uv pip install .

安装后,您可以使用以下命令将其作为脚本运行:

python -m coin_api_mcp

Related MCP server: Bybit MCP Server

配置

API 密钥

服务器需要 CoinMarketCap API 密钥才能运行。您可以从CoinMarketCap 的网站获取。API 密钥可以通过两种方式获取:

  1. 作为环境变量:

export COINMARKETCAP_API_KEY=your_api_key_here
  1. 作为命令行参数:

python -m coin_api_mcp --api-key=your_api_key_here

为 Claude.app 配置

添加到您的 Claude 设置:

"mcpServers": {
  "coin_api": {
    "command": "python",
    "args": ["-m", "coin_api_mcp"]
  },
  "env": {
        "COINMARKETCAP_API_KEY": "your_api_key_here"
  }
}

如果遇到任何问题,您可能需要使用 Python 解释器的完整路径。如果需要,您可以执行which python来查找确切的路径。

记得设置 COINMARKETCAP_API_KEY 环境变量或通过 --api-key 参数提供它。

调试

您可以使用 MCP 检查器来调试服务器

贡献

我们鼓励大家为扩展和改进 Coin MCP 服务器做出贡献。无论您是想添加新的搜索功能、增强现有功能,还是改进文档,您的贡献都弥足珍贵。

有关其他 MCP 服务器和实现模式的示例,请参阅: https://github.com/modelcontextprotocol/servers

欢迎提交 Pull 请求!欢迎贡献新想法、错误修复或功能增强,让 Coin MCP 服务器更加强大实用。

执照

Coin MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但需遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    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.
    3
    385
    40
    MIT
  • A
    license
    B
    quality
    F
    maintenance
    A Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.
    12
    22
    16
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    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
    3
    84
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A server that provides real-time cryptocurrency data through the Model Context Protocol, allowing access to detailed exchange information and current cryptocurrency rates from the CoinCap API.
    16
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/longmans/coin_api_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server