Logo van RSS Feed Parser

RSS Feed Parser

Community
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.

Uitgeverveithly
Repositoryrss-mcp
TaalTypeScript
Forks
9
Sterren
35
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieApache-2.0
Links
  • Koppel tools aan AI-workflows

    RSS Feed Parser biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    35 sterren en 9 forks in de gekoppelde repository.

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.

Installatie

TypingMind
Vereisten:

Node.js 18+

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

Gebruik RSS Feed Parser MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra RSS Feed Parser is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg RSS Feed Parser toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van RSS Feed Parser.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "rss-feed-parser": {
      "command": "npx",
      "args": [
        "-y",
        "rss-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van RSS Feed Parser in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van RSS Feed Parser in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je RSS Feed Parser gebruiken om me hiermee te helpen?
RSS Feed Parser
Zeker. Ik heb het gelezen.
Dit vond ik met RSS Feed Parser.

Veelgestelde vragen

Waarvoor wordt de MCP-server RSS Feed Parser gebruikt?

RSS Feed Parser is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik RSS Feed Parser MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je RSS Feed Parser gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom RSS Feed Parser MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als RSS Feed Parser verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik RSS Feed Parser MCP met TypingMind?

RSS Feed Parser werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt RSS Feed Parser MCP in TypingMind?

RSS Feed Parser biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om RSS Feed Parser MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als RSS Feed Parser authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇