这是一个基于模型上下文协议(MCP)的加密货币价格查询服务器。它提供了各种工具来获取虚拟货币的价格、市场趋势、详细信息以及K线数据。
pip install crypto_mcp
要自动为Claude Desktop安装Crypto MCP,请执行以下命令:
npx -y @smithery/cli install @telegramtool/crypto_mcp --client claude
克隆仓库并安装依赖项:
git clone https://github.com/telegramtool/crypto_mcp.git
cd crypto_mcp
pip install -r requirements.txt
在~/.cursor/mcp.json文件中添加以下配置:
对于PIP安装:
{
"mcpServers": {
"crypto_mcp": {
"command": "uv",
"args": [
"run",
"-m",
"crypto_mcp"]
}
}
}
对于Smithery安装:
{
"mcpServers": {
"crypto_mcp": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@smithery/cli@latest",
"run",
"@telegramtool/crypto_mcp",
"--config",
"{}"
]
}
}
}
get_coin_price - 获取指定虚拟货币的当前价格get_trending_coins - 获取当前流行的虚拟货币列表get_coin_detail - 获取虚拟货币的详细信息get_global_market_data - 获取全球加密货币市场的数据search_coins - 搜索虚拟货币get_common_coins_prices - 获取常见虚拟货币的价格信息get_k_line_data - 获取虚拟货币的K线数据coinglass_get_coin_info - 获取虚拟货币合约市场的信息coinglass_get_kline_data - 获取虚拟货币合约的K线数据coinglass_get_position_info - 获取虚拟货币合约的位置信息coinglass_get_trade_volume - 获取虚拟货币合约的交易量信息coinglass_get_trade_amount - 获取虚拟货币的交易量信息coinglass_get_exchange_position - 获取虚拟货币在各交易所上的位置分布本项目采用MIT许可。