加密货币新闻MCP服务器

一个提供实时加密货币新闻的MCP服务器,适用于AI代理。

  • by kukapay
  • Python
  • 本地部署
  • 15 星标
  • 更新于
在 GitHub 查看 kukapay/crypto-news-mcp

使用说明

加密新闻MCP服务器

提供实时加密货币新闻的MCP服务器,来源于 新闻资讯 对于AI代理。

尝试 库卡佩新闻MCP -无需API密钥,完全AI注释.

特性

  • 工具:最新新闻头条 -获取最新的加密货币新闻头条。
  • 工具:加密新闻搜索 -使用支持分页的加密货币或关键字搜索新闻文章 nextPage API功能。
  • 提示:新闻摘要 -生成一个提示,总结给定加密货币或主题的新闻。

先决条件

安装

通过Smithery安装

通过以下方式自动安装克劳德桌面加密新闻 史密瑟里:

npx -y @smithery/cli install @kukapay/crypto-news-mcp --client claude
  1. 克隆存储库:

    git clone https://github.com/kukapay/crypto-news-mcp.git
    cd crypto-news-mcp
    
  2. 再进行:

    pip install mcp[cli] httpx python-dotenv
    
  3. 将服务器安装为Claude Desktop的插件:

    mcp install main.py --name "CryptoNews"
    

    或者手动配置MCP兼容客户端:

    {
      "mcpServers": { 
        "Crypto News": { 
          "command": "python", 
          "args": [ "path/to/crypto-news-mcp/main.py"],
          "env": {
            "NEWS_API_KEY": "your_newsdata_api_key_here"
          }
        } 
      }
    }
    

可用工具和提示

  1. 工具: get_latest_news
    获取最新的加密货币新闻头条。

    • 用法:呼叫 get_latest_news() 在MCP客户端中。
    • 输出:一系列带有出版日期的标题。
    • 示例:
      Bitcoin Price Surges to New High (Published: 2025-04-06T12:00:00Z)
      Ethereum ETF Approval Rumors Grow (Published: 2025-04-06T10:30:00Z)
      
  2. 工具: get_crypto_news
    通过支持分页的关键字搜索新闻文章。

    • 参数:
      • query (str):加密货币或关键字(例如“比特币”)。
      • max_pages (int, optional):要获取的页数(默认值:1)。
    • 用法:呼叫 get_crypto_news(query="bitcoin", max_pages=2).
    • 输出:带有文章标题、日期和描述的格式化字符串。
    • 示例:
      Title: Bitcoin Hits $70K
      Date: 2025-04-06T12:00:00Z
      Description: Bitcoin surged past $70,000 amid bullish market trends.
      
      Title: Bitcoin Mining Report
      Date: 2025-04-06T09:00:00Z
      Description: New report highlights energy usage in BTC mining.
      
  3. 提示: summarize_news
    生成一个提示,用于总结有关特定主题的新闻。

    • 参数:
      • query (str):加密货币或关键字。
    • 用法:呼叫 summarize_news(query="ethereum").
    • 输出:要处理LLM的提示字符串。
    • 示例:
      Please summarize the latest news about ethereum based on the following data:
      
      {{{{ get_crypto_news("ethereum") }}}}
      

许可证

该项目根据MIT许可证获得许可。请参阅 许可证 文件以获取详细信息。