用途
crypto-trending-mcp 是一个 MCP 服务器,用于跟踪和监控 CoinGecko 上最新的热门代币,提供对最受欢迎加密货币的实时洞察。
主要能力
该服务器提供一个工具和一个提示词:
- 工具:get_trending_md_doc —— 返回完整 CoinGecko 热门页面的 Markdown 文档,其中包含热门加密货币表格,列包括:Rank(排名)、Name(名称)、Symbol(符号)、Price(价格)、1h Change(1小时变化)、24h Change(24小时变化)、7d Change(7天变化)、24h Volume(24小时交易量)、Market Cap(市值)。
- 提示词:parse_trending_md_doc —— 引导 MCP 客户端从 Markdown 文档中提取热门币种表格并使用 LLM 进行解析,支持诸如识别价格上涨的币种或按市值排序等分析。
此外,该项目支持无缝集成,专为与 Claude Desktop 配合使用而设计,允许通过 MCP 工具和提示词以自然语言查询分析热门加密数据。项目轻量且可扩展,采用最小依赖和简单架构构建,易于扩展或部署。
使用方式
环境要求:Node.js(用于 Playwright 浏览器依赖);Claude Desktop(可选,用于通过 MCP 客户端测试)。
安装步骤
-
克隆仓库: git clone https://github.com/kukapay/crypto-trending-mcp.git cd crypto-trending-mcp
-
使用 uv 安装依赖: uv sync playwright install
与 Claude Desktop 集成
- 配置 Claude Desktop:编辑配置文件:
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json
添加服务器配置: { "mcpServers": { "crypto-trending": { "command": "uv", "args": [ "--directory", "/absolute/path/to/crypto-trending-mcp", "run", "main.py" ] } } } 将 /absolute/path/to/crypto-trending-mcp 替换为指向你的 main.py 的绝对路径。
-
重启 Claude Desktop:关闭并重新打开 Claude Desktop。在输入框中查找锤子图标(🔨),表示 MCP 工具可用。
-
与服务器交互:提出自然语言问题,例如:
- "What are the trending cryptocurrencies with positive 24h price changes?"
- "Show the top 3 trending coins by market cap."
Claude 将使用 get_trending_md_doc 工具和 parse_trending_md_doc 提示词来获取并分析数据。
get_trending_md_doc 工具返回类似 Markdown 文档;parse_trending_md_doc 提示词引导 LLM 提取表格并生成结构化输出。
适用场景
适用于通过 Claude Desktop 以自然语言查询方式分析 CoinGecko 热门加密货币数据,例如筛选 24 小时价格上涨的热门币种、按市值排序查看热门币种等。
限制
该项目需要 Node.js 用于 Playwright 浏览器依赖;Claude Desktop 为可选,用于 MCP 客户端测试。其余关于收费、价格、平台、效果等信息暂未提供。
许可
该项目采用 MIT 许可证,详见 LICENSE 文件。