RSS Feed Parserのロゴ

RSS Feed Parser

コミュニティ
veithly

This is a Model Context Protocol (MCP) server built with TypeScript. It provides a versatile tool to fetch and parse any standard RSS/Atom feed, and also includes special support for RSSHub feeds.

公開者veithly
リポジトリrss-mcp
言語TypeScript
フォーク
9
スター
35
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    RSS Feed Parserは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには35件のスターと9件のフォークがあります。

RSS MCP Server

NPM Version

This is a Model Context Protocol (MCP) server built with TypeScript. It provides a versatile tool to fetch and parse any standard RSS/Atom feed, and also includes special support for RSSHub feeds. With this server, language models or other MCP clients can easily retrieve structured content from various web sources.

The server comes with a built-in list of public RSSHub instances and supports a polling mechanism to automatically select an available instance, significantly improving the success rate and stability of data retrieval.

✨ Features

  • Universal Feed Parsing: Fetch and parse any standard RSS/Atom feed from a given URL.
  • Enhanced RSSHub Support: Provides a tool named get_feed to fetch any RSSHub-supported feed via MCP, with multi-instance support.
  • Customizable Item Count: Specify the number of feed items to retrieve, with support for fetching all items.
  • Multi-instance Support: Includes a list of public RSSHub instances and automatically polls to find an available service.
  • Smart URL Parsing: Supports standard RSSHub URLs and a simplified rsshub:// protocol format.
  • Priority Instance Configuration: Allows setting a preferred RSSHub instance via the PRIORITY_RSSHUB_INSTANCE environment variable.
  • Robust Error Handling: If a request to one instance fails, it automatically tries the next one until it succeeds or all instances have failed.
  • Content Cleaning: Uses Cheerio to clean the feed content and extract plain text descriptions.
  • Standardized Output: Converts the fetched RSS feed into a structured JSON format.

📦 Installation

First, clone the project repository, then install the required dependencies.

bash
git clone https://github.com/veithly/rss-mcp.git
cd rss-mcp
npm install

🚀 Usage

1. Build the Project

Before running, you need to compile the TypeScript code into JavaScript:

bash
npm run build

2. Run the Server

After a successful build, start the MCP server:

bash
npm start

The server will then communicate with the parent process (e.g., Cursor) via Stdio.

3. Configure a Priority Instance (Optional)

You can create a .env file to specify a priority RSSHub instance. This is very useful for users who have a private, stable instance.

Create a .env file in the project root directory and add the following content:

env
PRIORITY_RSSHUB_INSTANCE=https://my-rsshub.example.com

The server will automatically load this configuration on startup and place it at the top of the polling list.

🔧 MCP Server Configuration

To use this server with an MCP client like Cursor, you need to add it to your configuration file.

Method 1: Using npx (Recommended)

This package is published on npm, so you can use npx to run the server without a local installation. This is the easiest method.

  1. Direct Invocation: You can run the server directly from your terminal using npx:

    bash
    npx rss-mcp
  2. MCP Client Configuration: To integrate with an MCP client like Cursor, add the following to your configuration file (e.g., ~/.cursor/mcp_settings.json):

    json
    {
      "name": "rss",
      "command": ["npx", "rss-mcp"],
      "type": "stdio"
    }

Method 2: Local Installation

If you have cloned the repository locally, you can run it directly with node.

  1. Clone and build the project as described in the "Installation" and "Usage" sections.

  2. Locate your MCP configuration file.

  3. Add the following server entry, making sure to use the absolute path to the compiled index.js file:

    json
    {
      "name": "rss",
      "command": ["node", "/path/to/your/rss-mcp/dist/index.js"],
      "type": "stdio"
    }

    Important: Replace /path/to/your/rss-mcp/dist/index.js with the correct absolute path on your system.

After adding the configuration, restart your MCP client (e.g., Cursor) for the changes to take effect. The rss server will then be available, and you can call the get_feed tool.

🛠️ Tool Definition

get_feed

Fetches and parses an RSS feed from a given URL. It supports both standard RSS/Atom feeds and RSSHub feeds.

Input Parameters

  • url (string, required): The URL of the RSS feed to fetch. Two formats are supported:
    1. Standard URL: https://rsshub.app/bilibili/user/dynamic/208259
    2. rsshub:// protocol: rsshub://bilibili/user/dynamic/208259 (the server will automatically match an available instance)
  • count (number, optional): The number of RSS feed items to retrieve.
    • Default: 1
    • Retrieve all: 0

Output

Returns a JSON string containing the feed information, with the following structure:

json
{
  "title": "bilibili User Dynamics",
  "link": "https://space.bilibili.com/208259",
  "description": "bilibili User Dynamics",
  "items": [
    {
      "title": "[Dynamic Title]",
      "description": "Plain text content of the dynamic...",
      "link": "https://t.bilibili.com/1234567890",
      "guid": "https://t.bilibili.com/1234567890",
      "pubDate": "2024-05-20T12:30:00.000Z",
      "author": "Author Name",
      "category": ["Category1", "Category2"]
    }
  ]
}

📜 Main Dependencies

📄 License

This project is licensed under the Apache-2.0 License.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "rss": {
      "command": "npx",
      "args": [
        "rss-mcp"
      ]
    }
  }
}

RSS Feed ParserのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度RSS Feed Parserに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

RSS Feed Parserをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. RSS Feed ParserのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "rss-feed-parser": {
      "command": "npx",
      "args": [
        "-y",
        "rss-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてRSS Feed ParserのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. RSS Feed ParserのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
RSS Feed Parserを使ってこのタスクを手伝ってもらえますか?
RSS Feed Parser
はい、読みました。
RSS Feed Parserで調べた結果をお伝えします。

よくある質問

RSS Feed Parser MCPサーバーは何に使いますか?

RSS Feed Parserは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでRSS Feed Parser MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでRSS Feed Parserを利用できます。

TypingMindでRSS Feed Parser MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。RSS Feed Parserを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

RSS Feed Parser MCPをTypingMindに接続するにはどうすればよいですか?

RSS Feed ParserはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでRSS Feed Parser MCPのどのようなツールを利用できますか?

RSS Feed ParserはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

RSS Feed Parser MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。RSS Feed Parserで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇