MCP RSS News Agent

by teo4348
MIT License

Integrations

  • Supports configuration through environment variables using .env files for flexible deployment settings.

  • Supports formatting extracted web content as Markdown, allowing for clean, structured representation of articles with optional image inclusion.

  • Provides tools for discovering RSS feeds from websites, fetching entries from feeds, extracting and formatting content, searching news articles by keyword, and generating summaries of news articles from RSS sources.

MCP RSSニュースエージェント

さまざまな RSS フィードからコンテンツを検出、取得、要約できる FastMCP ベースの RSS ニュース集約および処理エージェント。

特徴

  • あらゆるウェブサイトからRSSフィードを見つける
  • RSSフィードからエントリを取得する
  • フィードエントリからコンテンツを抽出してフォーマットする
  • 任意の URL から Web コンテンツを抽出して処理します
  • キーワードでニュース記事を検索
  • ニュース記事の要約を生成する
  • カテゴリーと国別にトップニュースを入手

インストール

  1. リポジトリをクローンする
  2. 必要な依存関係をインストールします。
pip install -r requirements.txt
  1. 環境変数が必要な場合は.envファイルを作成します(オプション)

使用法

MCPサーバーを起動する

python server.py

これにより、さまざまな RSS 関連ツールを公開する MCP サーバーが起動します。

利用可能なツール

  1. get_rss_feed_entries : RSSフィードURLからエントリを取得します
  2. discover_rss_feeds : ウェブサイトで利用可能なRSSフィードを検索します
  3. download_feed_content : フィードエントリのコンテンツをダウンロードして処理します
  4. fetch_webpage : 高度な技術を使用して任意の Web ページ URL からメイン コンテンツを抽出します (新機能)
  5. search_news_by_keyword : キーワードを使用して複数のフィードにわたるニュース記事を検索します
  6. create_news_summary : ニュース記事の要約を作成します
  7. get_top_news_from_category : 特定のカテゴリと国からのトップニュースを取得します

ウェブサイト上のRSSフィードを見つける

response = mcp.invoke("discover_rss_feeds", {"website_url": "https://www.theguardian.com"}) print(f"Found {response['feeds_count']} feeds") for feed in response['feeds']: print(f"- {feed['title']}: {feed['url']}")

キーワードでニュース記事を取得する

response = mcp.invoke("search_news_by_keyword", { "keyword": "climate change", "max_results": 5 }) for article in response['results']: print(f"- {article['title']} ({article['source']})") print(f" Link: {article['link']}") print()

あらゆるウェブページからコンテンツを抽出

response = mcp.invoke("fetch_webpage", { "url": "https://example.com/article", "output_format": "markdown", "include_images": True }) print(f"Title: {response['title']}") print(f"Extraction method: {response['extracted_by']}") print(f"Content preview: {response['content'][:200]}...")

カテゴリからトップニュースを取得する

response = mcp.invoke("get_top_news_from_category", { "category": "technology", "country": "us", "max_results": 3 }) for article in response['results']: print(f"- {article['title']} ({article['source']})")

クライアントの例

このプロジェクトには、すべての MCP サーバー ツールに簡単にアクセスできるコマンドライン クライアント ( client_example.py ) が含まれています。

# Get feed entries python client_example.py feed https://www.theguardian.com/international/rss # Search news by keyword python client_example.py search "artificial intelligence" # Extract content from a webpage with advanced extraction python client_example.py webpage https://example.com/article --format markdown --images --save # Get news by category python client_example.py category technology --country us

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

RSS フィードを発見し、ニュース コンテンツを取得して処理し、キーワードで記事を検索し、複数のニュース ソースとカテゴリにわたる要約を生成するためのツールを提供する FastMCP ベースのサーバーです。

  1. 特徴
    1. インストール
      1. 使用法
        1. MCPサーバーを起動する
        2. 利用可能なツール
        1. ウェブサイト上のRSSフィードを見つける
        2. キーワードでニュース記事を取得する
        3. あらゆるウェブページからコンテンツを抽出
        4. カテゴリからトップニュースを取得する
      2. クライアントの例
        1. 貢献
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              This MCP server performs multi-topic searches in business, news, finance, and politics using the Tavily API, providing high-quality sources and intelligent summaries.
              Last updated -
              1
              1
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              An MCP server implementation that integrates the RSS3 API, allowing users to query data from decentralized chains, social media platforms, and the RSS3 network through natural language.
              Last updated -
              1
              JavaScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that fetches RSS feeds and shares them with LLMs, allowing AI assistants to access and present the latest news and articles from configured feeds.
              Last updated -
              1
              TypeScript
            • -
              security
              F
              license
              -
              quality
              A FastMCP-based service that provides stock data including historical prices, fundamental information, and financial news.
              Last updated -
              1
              Python
              • Linux
              • Apple

            View all related MCP servers

            ID: xyc425usll