Coinmarket MCP server
镜像站点。
Coinmarket MCP 服务器快速开始指南
概述
Coinmarket MCP 服务器提供了 CoinMarketCap API 的部分功能,包括获取货币列表和代币报价。
功能
- 使用
coinmarket://
URI 方案访问资源 - 提供两个工具:
get-currency-listings
:获取最新的货币列表get-quotes
:获取代币报价(可接受"slug"如"bitcoin"或"symbol"如"BTC"参数)
设置步骤
1. 获取 API 密钥
2. 配置服务器
根据您的平台修改配置文件:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
添加以下配置:
"mcpServers": {
"coinmarket_service": {
"command": "uv",
"args": [
"--directory",
"/Users/anjor/repos/anjor/coinmarket_service",
"run",
"coinmarket_service"
],
"env": {
"COINMARKET_API_KEY": "您的API密钥"
}
}
}
3. 使用示例
获取货币列表:
使用 get-currency-listings 工具
获取比特币报价:
使用 get-quotes 工具,参数为 "bitcoin" 或 "BTC"
注意
这是镜像站点服务,请确保您的 API 密钥有效且配置正确。