一个模型上下文协议 (MCP) 服务器,通过与主要交易所集成提供实时和历史加密货币市场数据。该服务器使 Claude 等大型语言模型能够获取当前价格、分析市场趋势和访问详细的交易信息。
实时市场数据
历史分析
交易所支持
要通过 Smithery 自动安装用于 Claude Desktop 的加密货币市场数据服务器:
使用 npm 包管理器安装:
npx -y @smithery/cli install mcp-server-ccxt --client claude
# 使用 uv (推荐)
uv pip install mcp ccxt
# 使用 pip
pip install mcp ccxt

python crypto_server.py
打开 Claude 桌面端配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
添加服务器配置:
{
"mcpServers": {
"crypto": {
"command": "python",
"args": ["/path/to/crypto_server.py"]
}
}
}

get-price
get-market-summary
get-top-volumes
list-exchanges
get-historical-ohlcv
get-price-change
get-volume-history
连接服务器后,您可以向 Claude 提问以下示例问题:
mcp
: 模型上下文协议 SDKccxt
: 加密货币交易库服务器使用:
服务器实现了强大的错误处理机制,用于处理:
# 待实现
pytest tests/

# 克隆代码库
git clone [repository-url]
cd crypto-mcp-server
# 安装依赖项
pip install -e .

交易所连接错误
速率限制
数据格式问题
MIT 许可证 - 详情请参阅 LICENSE 文件