为AI提供最新加密货币新闻的服务

为AI提供最新加密货币新闻的服务

为AI代理提供最新的加密货币新闻,基于CryptoPanic。

快速入门

  1. 克隆仓库: git clone https://github.com/kukapay/cryptopanic-mcp-server.git

  2. 安装依赖: pip install -r requirements.txt

  3. 配置 CryptoPanic API 密钥: 在配置文件中添加以下内容,并填入你的 API 密钥:

    "mcpServers": { "cryptopanic-mcp-server": { "command": "uv", "args": [ "--directory", "/your/path/to/cryptopanic-mcp-server", "run", "main.py" ], "env": { "CRYPTOPANIC_API_KEY": "你的API密钥" } } }

  4. 启动服务: uv --directory /your/path/to/cryptopanic-mcp-server run main.py

工具

调用 get_crypto_news 方法获取新闻,支持参数:

  • kind: 内容类型(如 news, analysis, videos)
  • num_pages: 获取的页数(默认 1,最大 10)