Skip to main content
Glama

MCP News Server

by eluc1a

news-mcp MCP サーバー

MCP ニュースサーバー

コンポーネント

リソース

サーバーは、リソース URI を介してデータベースに保存されているニュース記事を公開します。

  • news://{category}/{limit} : 指定されたカテゴリの最新記事のリストを取得します。
    • {category} : カテゴリ(例: techdata_sciencenews )で記事をフィルタリングします。完全なリストについてはツールの説明をご覧ください。
    • {limit} (オプション、デフォルト 10): 返される記事の最大数を指定します。
  • 返される各記事には、タイトル、リンク、公開日、ソースが含まれます。

プロンプト

現在、サーバーはプロンプトを公開していません。(要約ロジックは内部に存在しますが、MCP プロンプト経由では利用できません)。

ツール

サーバーは 1 つのツールを実装します。

  • summarize_news : データベースから生のニュース記事を取得し、クライアント (LLM) が要約できるようにします。
    • オプションのcategory (文字列) とlimit (整数、デフォルトは 20) 引数を取ります。
    • それぞれidtitlelinkpublishedsourcecontentを含む記事辞書のリストを返します。
    • 利用可能なカテゴリ: techdata_sciencellm_toolscybersecuritylinuxaudio_dspstartupsnewsscienceresearchpolicy

構成

サーバーは、 DATABASE_URL環境変数 (デフォルトはpostgresql://localhost/mcp_news ) を介して構成された PostgreSQL データベースに依存します。

news_gatherer.pyスクリプト (個別に実行/スケジュール設定することを目的としたもの) は、さまざまな RSS フィードからデータベースにデータを入力します。

要約ロジック (内部、MCP 経由では公開されません) は、 OPENAI_API_KEY環境変数を介して構成された OpenAI API を使用します。

その他の構成(環境変数またはデフォルト経由):

  • LOOKBACK_HOURS : news_gatherer.pyが新しい記事を検索する期間 (デフォルト: 6)。
  • SUMMARY_WORD_TARGET : 内部要約の目標単語数 (デフォルト: 500)。
  • MAX_ARTICLES_PER_SUMMARY : 1 つのサマリー バッチに含まれる記事の最大数 (デフォルト: 25)。
  • KEYWORD_FILTER : 内部要約ロジックで使用されるキーワード。

クイックスタート

インストール

クロードデスクトップ

MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

発達

建築と出版

配布用のパッケージを準備するには:

  1. 依存関係を同期し、ロックファイルを更新します。
uv sync
  1. パッケージディストリビューションをビルドします。
uv build

これにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. PyPI に公開:
uv publish

注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。

  • トークン: --tokenまたはUV_PUBLISH_TOKEN
  • またはユーザー名/パスワード: --username / UV_PUBLISH_USERNAMEおよび--password / UV_PUBLISH_PASSWORD

デバッグ

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。

次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。

npx @modelcontextprotocol/inspector uv --directory ~/dev/news-mcp run news-mcp

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

テクノロジー、データサイエンス、サイバーセキュリティなど、さまざまなカテゴリのニュース記事へのアクセスを提供し、最新のコンテンツを取得および要約できるサーバーです。

  1. コンポーネント
    1. リソース
    2. プロンプト
    3. ツール
  2. 構成
    1. クイックスタート
      1. インストール
    2. 発達
      1. 建築と出版
      2. デバッグ

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      This server enables users to perform Google News searches with automatic categorization and multi-language support via SerpAPI integration.
      Last updated -
      1
      559
      72
      JavaScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      Provides tools to fetch and search news from The Verge's RSS feed, allowing users to get today's news, retrieve random articles from the past week, and search for specific keywords in recent Verge content.
      Last updated -
      3
      5
      2
      TypeScript
      MIT License
      • Apple
    • A
      security
      F
      license
      A
      quality
      A Model Context Protocol server that enables large language models to access the latest trending news headlines and detailed content across various categories including recommended, domestic, technology, and sports news.
      Last updated -
      2
      Python
      • Apple
    • -
      security
      F
      license
      -
      quality
      A modular, scalable news aggregation backend that provides a unified interface to TheNewsAPI for retrieving current and historical news articles with advanced filtering capabilities, designed specifically for consumption by AI agents.
      Last updated -
      4

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/eluc1a/mcp-news'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server