crypto-news-mcp

by kukapay
Verified

暗号ニュースMCPサーバー

AI エージェント向けにNewsDataから取得したリアルタイムの暗号通貨ニュースを提供する MCP サーバー。

特徴

  • ツール: 最新のニュースの見出し- 最新の暗号通貨ニュースの見出しを取得します。
  • ツール: 暗号通貨ニュース検索- nextPage API 機能を使用して、ページ区切りのサポートにより暗号通貨またはキーワードでニュース記事を検索します。
  • プロンプト: ニュース サマリー- 特定の暗号通貨またはトピックのニュースを要約するプロンプトを生成します。

前提条件

インストール

  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
    最新の暗号通貨ニュースの見出しを取得します。
    • 使用方法: MCP クライアントでget_latest_news()を呼び出します。
    • 出力: 公開日を含む見出しの文字列。
    • 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) : 暗号通貨またはキーワード (例: 「bitcoin」)。
      • 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ライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

-
security - not tested
-
license - not tested
-
quality - not tested

AI エージェント向けに NewsData から取得したリアルタイムの暗号通貨ニュースを提供する MCP サーバー。

  1. Features
    1. Prerequisites
      1. Installation
        1. Available Tools and Prompts
          1. License
            ID: 91dli78qnk