用途
该工具旨在为 Claude Desktop 用户提供加密货币市场数据的实时查询能力,通过集成 CoinGecko API 实现。用户可以在 Claude Desktop 中直接询问加密货币相关信息,工具会调用相应的功能返回数据。
主要能力
工具提供以下具体功能:
- get_crypto_price:获取实时加密货币价格信息。
- get_crypto_market_data:获取某种加密货币的详细市场信息。
- get_crypto_historical_data:获取加密货币的历史价格数据。
- search_crypto:搜索加密货币。
- get_trending_crypto:获取热门加密货币。
- get_global_crypto_data:获取全球加密货币市场数据。
所有工具均包含错误处理,出错时会返回错误消息。
使用方式
- 确保已安装 Python 3.10 或更高版本。
- 安装依赖。
- 在 Claude Desktop 的 MCP 配置中添加相应配置,将路径替换为 main.py 文件的完整路径。
- 运行服务器。
- 在使用 Claude Desktop 期间保持服务器运行。
用户可以向 Claude Desktop 提问,例如:
- “What's the current price of Bitcoin?”
- “Show me detailed market data for Ethereum”
- “What's the price history of Dogecoin for the last 30 days?”
- “Search for cryptocurrencies related to 'sol'”
- “Which cryptocurrencies are trending today?”
- “What's the total cryptocurrency market capitalization right now?”
适用场景
适用于需要在 Claude Desktop 中快速获取加密货币市场数据、进行币种搜索或追踪热门币种的用户。
限制
该工具使用免费的 CoinGecko API,存在速率限制,频繁请求可能会被 API 限流。如果 MCP 服务器在 Claude Desktop 中无法工作,可检查服务器是否运行、配置路径是否正确且为绝对路径、Python 3.10+ 是否在系统 PATH 中、依赖是否已安装、尝试重启 Claude Desktop 以及查看日志错误信息。