Skip to main content
Glama

freshrss-mcp

CI npm version npm downloads node license container docs

Ein Model Context Protocol-Server für FreshRSS, den selbst gehosteten RSS- und Atom-Feed-Aggregator.

Er spricht die Google-Reader-kompatible API, die FreshRSS unter /api/greader.php bereitstellt, und verbirgt deren Eigenheiten hinter Tool-Argumenten, die ein Assistent tatsächlich nutzen kann: numerische Feed-IDs, Kategorie- und Labelnamen, ISO-Daten und dezimale Artikel-IDs anstelle von user/-/state/com.google/…-Stream-Identifikatoren und hexadezimalen Item-Tags.

📖 Vollständige Dokumentation: freshrss-mcp.ni-c.de

Architektur: Ein MCP-Client kommuniziert über stdio mit freshrss-mcp, das die Google-Reader-kompatible API von FreshRSS über HTTPS mit einem GoogleLogin-Auth-Token aufruft

Demo: Auflistung der Tools, der abonnierten Feeds und des neuesten Artikels über die MCP Inspector CLI

Voraussetzungen

  • Node.js 22 oder neuer

  • Eine FreshRSS-Instanz (entwickelt gegen 1.29) mit

    • aktivierter API: Einstellungen → Authentifizierung → „API-Zugriff erlauben“

    • einem API-Passwort für den Benutzer: Einstellungen → Profil → API-Verwaltung. Dies ist ein separates Passwort vom Web-Login.

Related MCP server: Conduit

Konfiguration

Variable

Erforderlich

Beschreibung

FRESHRSS_URL

ja

Stamm-URL der Instanz, z. B. https://rss.example.com. Der API-Pfad /api/greader.php wird automatisch angehängt.

FRESHRSS_USER

ja

FreshRSS-Benutzername.

FRESHRSS_API_PASSWORD

ja

Das API-Passwort von der Profilseite, nicht das Web-Login-Passwort.

FRESHRSS_READ_ONLY

nein

true registriert nur die Lese-Tools.

FRESHRSS_INSECURE_TLS

nein

true akzeptiert selbstsignierte Zertifikate nur für diese Verbindung.

Der Server startet ohne Anmeldedaten, sodass seine Tools auflistbar bleiben; jeder Aufruf schlägt dann mit diesen Einrichtungsanweisungen fehl.

Claude Code

claude mcp add freshrss -- npx -y @ni-c/freshrss-mcp

Claude Desktop

{
  "mcpServers": {
    "freshrss": {
      "command": "npx",
      "args": ["-y", "@ni-c/freshrss-mcp"],
      "env": {
        "FRESHRSS_URL": "https://rss.example.com",
        "FRESHRSS_USER": "alice",
        "FRESHRSS_API_PASSWORD": "…"
      }
    }
  }
}

Codex

[mcp_servers.freshrss]
command = "npx"
args = ["-y", "@ni-c/freshrss-mcp"]
env = { FRESHRSS_URL = "https://rss.example.com", FRESHRSS_USER = "alice", FRESHRSS_API_PASSWORD = "…" }

Tools

Lesen

Tool

Beschreibung

get_user_info

Das authentifizierte Konto – eine schnelle Anmeldeüberprüfung.

list_feeds

Jedes Abonnement mit seiner Kategorie und Anzahl ungelesener Beiträge.

list_categories

Kategorien (Ordner von Feeds) und Benutzerlabels (Tags auf Artikeln).

get_unread_counts

Gesamt- und Pro-Feed/Kategorie-Anzahl ungelesener Beiträge, sortiert.

list_articles

Artikel eines Feeds, einer Kategorie, eines Labels oder eines integrierten Streams, mit Auszügen oder begrenztem Volltext.

get_articles

Volltext bestimmter Artikel anhand ihrer ID.

list_article_ids

Nur IDs – die günstige Methode, um eine Menge für mark_articles zu sammeln.

export_opml

Alle Abonnements als OPML-Dokument.

Schreiben

Nicht registriert, wenn FRESHRSS_READ_ONLY=true.

Tool

Beschreibung

Bestätigung

mark_articles

Lesezeichen setzen, Sterne und Labels auf bestimmten Artikeln setzen.

—

mark_all_as_read

Einen gesamten Feed, eine Kategorie, ein Label oder einen Stream als gelesen markieren.

ja

subscribe_feed

Einen Feed oder eine Website-URL abonnieren.

—

update_feed

Einen Feed umbenennen oder in eine andere Kategorie verschieben.

—

unsubscribe_feed

Einen Feed und alle seine gespeicherten Artikel löschen.

ja

rename_category_or_label

Eine Kategorie oder ein Benutzerlabel umbenennen.

—

delete_category_or_label

Eine Kategorie oder ein Benutzerlabel löschen.

ja

import_opml

Jeden Feed in einem OPML-Dokument abonnieren.

ja

Keine Suche

FreshRSS bietet keine Volltextsuche über seine API – die Google-Reader-Endpunkte filtern nur nach Stream, Lesestatus und Datum. list_articles hat daher keinen Abfrageparameter; grenzen Sie das Ergebnis mit feed_id/category und since/until ein und filtern Sie die zurückgegebenen Artikel selbst.

Sicherheit

  • Artikeltext ist nicht vertrauenswürdige Eingabe. Alles, was dieser Server von FreshRSS zurückgibt, wurde von einem Dritten im Internet geschrieben, daher werden Antworten, die Artikeltext, Titel oder Feednamen enthalten, explizit als Daten und nie als Anweisungen markiert.

  • Zerstörerische Tools sind zweistufig. Sie geben ein einmalig verwendbares Bestätigungstoken zurück, das an das genaue Ziel gebunden ist; der zweite Aufruf muss es enthalten. Ein einfacher Boolean könnte bereits beim ersten Aufruf gesetzt oder durch in einem Feed versteckten Text dazu überredet werden. Die Bestätigungsnachrichten zitieren bewusst nie Titel oder Namen, die von der API stammen.

  • Antwortbudgets. FreshRSS gibt bis zu 500.000 Zeichen HTML pro Artikel zurück. Artikeltext wird in Klartext umgewandelt, pro Artikel und gegen ein Pro-Antwort-Budget begrenzt und ist in Auflistungen nur optional.

  • Anmeldedaten werden einmal gelesen, anschließend aus process.env entfernt und nie auf die Festplatte geschrieben. Anfragen folgen niemals Weiterleitungen, die den Autorisierungsheader an einen anderen Host senden würden, und die gelockerte TLS-Validierung ist auf diese Verbindung beschränkt, nicht auf den gesamten Prozess.

  • Feed-URLs werden geschwärzt. FreshRSS speichert HTTP-auth-Feeds als https://user:password@host/feed. Der Benutzerinfo-Teil wird entfernt, bevor eine Feed-URL ein Tool-Ergebnis oder den OPML-Export erreicht, sodass list_feeds das Passwort eines kostenpflichtigen oder privaten Feeds nicht in das Transkript drucken kann.

  • subscribe_feed lehnt interne Ziele ab. FreshRSS ruft die URL serverseitig ab, was das Tool zu einer SSRF-Primitive macht, die aus Text in einem Artikel erreichbar ist. Loopback- und Link-Local-Adressen – einschließlich Cloud-Metadaten-Endpunkte – werden abgelehnt. Private LAN-Adressen bleiben erlaubt, da selbst gehostete Installationen legitimerweise Feeds in ihrem eigenen Netzwerk abonnieren.

  • import_opml lehnt ein <!DOCTYPE> ab. In diesem Prozess wird kein XML geparst, aber das Dokument wird an FreshRSS übergeben, wo eine Dokumenttypdeklaration der Träger für Entity-Expansion- und External-Entity-Angriffe ist. OPML benötigt niemals eine.

  • FRESHRSS_READ_ONLY=true registriert die Schreib-Tools gar nicht erst, anstatt sie zur Aufrufzeit abzulehnen.

Welche Tools durch ein Bestätigungstoken geschützt sind: mark_all_as_read, unsubscribe_feed, delete_category_or_label und import_opml. mark_articles ist bewusst nicht geschützt – der Aufrufer nennt jeden der maximal 100 Artikel explizit und jedes Feld kann zurückgesetzt werden –, wird aber als zerstörerisch deklariert, sodass ein Client dennoch eine Bestätigung anfordern kann.

Container

docker run --rm -i \
  -e FRESHRSS_URL=https://rss.example.com \
  -e FRESHRSS_USER=alice \
  -e FRESHRSS_API_PASSWORD=... \
  ghcr.io/ni-c/freshrss-mcp:latest

Das Image wird für linux/amd64 und linux/arm64 mit einer SBOM und Build-Herkunft veröffentlicht. Es läuft als unprivilegierter node-Benutzer und enthält kein npm, sodass sich nur Node, die Laufzeitabhängigkeiten und dist/ darin befinden.

Entwicklung

npm install
npm run lint && npm run build && npm test
npm run test:coverage

Siehe CONTRIBUTING.md für eine Wegwerf-FreshRSS-Instanz zum Entwickeln. Die vollständige Dokumentation befindet sich unter freshrss-mcp.ni-c.de.

Veröffentlichung

  1. Verschieben Sie die [Unreleased]-Einträge in CHANGELOG.md unter die neue Version und erhöhen Sie die version in package.json.

  2. npm run lint && npm run build && npm run test:coverage.

  3. Committen, dann taggen: git tag -s vX.Y.Z -m vX.Y.Z && git push origin main vX.Y.Z.

Der Tag löst release.yml aus, das überprüft, ob der Tag mit package.json übereinstimmt, über Trusted Publishing mit Herkunftsnachweis (kein Token erforderlich) auf npm veröffentlicht, die GitHub-Version aus dem CHANGELOG-Abschnitt erstellt und den Eintrag im MCP Registry veröffentlicht. Wenn nur der Registry-Schritt fehlschlägt, beheben Sie ihn auf main und führen Sie mcp-registry.yml manuell erneut aus – führen Sie niemals den getaggten Job erneut aus, da dieser den alten Baum auschecken würde.

Lizenz

MIT

Available Tools

16 tools
delete_category_or_labelDelete a category or labelA
DestructiveIdempotent

Deletes a category (its feeds move to the default category, no articles are lost) or a user label (it is detached from every article). FreshRSS matches categories first, so a category and a label of the same name cannot be told apart here. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion.

Inputs: name (required), confirm_token. Returns: name, deleted

export_opmlExport OPMLA
Read-onlyIdempotent

Exports all subscriptions as an OPML document — the portable backup format for feed readers. For a readable overview of the subscriptions use list_feeds instead.

Inputs: no named parameters. Returns: opml, source, truncated, untrusted

get_articlesGet articlesA
Read-onlyIdempotent

Fetches the full text of specific articles by id, as plain text. At most 20 ids per call.

Inputs: article_ids (required), max_content_chars. Returns: note, notes, source, articles, +1 more

get_unread_countsGet unread countsA
Read-onlyIdempotent

Returns how many unread articles are waiting, in total and per feed and category, sorted by count. Only entries with unread articles are listed.

Inputs: no named parameters. Returns: feeds, notes, source, untrusted, +2 more

get_user_infoGet user infoA
Read-onlyIdempotent

Returns the FreshRSS account the server is authenticated as. Useful as a connection and credential check before anything else.

Inputs: no named parameters. Returns: userId, userName, userEmail

import_opmlImport OPMLA
Destructive

Subscribes to every feed in an OPML document, creating the categories it names, and then refreshes all feeds — which can take minutes on a large file. There is no bulk undo; every feed would have to be removed individually. Two-step: the first call returns a confirmation token, the second call with that token performs the import.

Inputs: opml (required), confirm_token. Returns: note, imported

list_article_idsList article idsA
Read-onlyIdempotent

Lists only the ids of matching articles — the cheap way to collect a set for mark_articles. Same selectors and filters as list_articles.

Inputs: label, limit, order, since, +6 more. Returns: hint, count, notes, source, +3 more

list_articlesList articlesA
Read-onlyIdempotent

Lists articles from a feed, category, label or built-in stream, newest first. Returns short plain-text excerpts by default; set include_content=true for the article text, or fetch single articles with get_articles. FreshRSS has no full-text search over its API, so there is no way to query by keyword — narrow the result with feed_id/category and since/until instead and filter the returned articles yourself.

Inputs: label, limit, order, since, +8 more. Returns: hint, notes, source, articles, +3 more

list_categoriesList categories and labelsA
Read-onlyIdempotent

Lists the categories (folders that hold feeds) and the user labels (tags that are attached to individual articles), each with its unread count. Both are addressed by name in the other tools.

Inputs: no named parameters. Returns: notes, labels, source, untrusted, +2 more

list_feedsList feedsA
Read-onlyIdempotent

Lists every subscribed feed with its category and unread count. The numeric feedId is what all other tools take as feed_id. Start here to find out what is subscribed before listing articles.

Inputs: no named parameters. Returns: feeds, notes, source, feedCount, +2 more

mark_all_as_readMark all as readA
DestructiveIdempotent

Marks every article of a feed, category, label or built-in stream as read. Two-step: the first call returns a confirmation token, the second call with that token performs the change. Which articles were unread before cannot be recovered afterwards.

Inputs: label, stream, feed_id, category, +2 more. Returns: stream, olderThan, markedAsRead

mark_articlesMark articlesA
DestructiveIdempotent

Sets the read state, the star and user labels of specific articles. Starring and labelling are reversible by calling this tool again with the opposite value. Marking as read is not, so read=true asks a person first; where the client cannot show a dialog, call once to receive a token and again with it. At most 100 articles per call; every given change is applied to all of them.

FreshRSS answers OK whether or not it recognised the ids, so the result of this tool cannot tell you the change landed. Use the ids exactly as list_article_ids returned them — not the long tag:google.com,... form — and confirm with get_unread_counts if it matters: the count is the only thing that moves.

Inputs: article_ids (required), read, starred, add_labels, +2 more. Returns: changes, updated, articleIds

rename_category_or_labelRename a category or labelA
DestructiveIdempotent

Renames a category (folder) or a user label. FreshRSS resolves the name against its categories first and falls back to labels, so one tool covers both. Feeds and articles keep their assignment.

Inputs: name (required), new_name (required). Returns: to, from, renamed

subscribe_feedSubscribe to a feedA

Subscribes to a feed. The URL may point at the feed itself or at a website — FreshRSS discovers the feed and then downloads it, so this call can take a while. A category that does not exist yet is created.

Inputs: url (required), title, category. Returns: note, feedId, subscribed

unsubscribe_feedUnsubscribe from a feedA
DestructiveIdempotent

Deletes a feed together with all of its stored articles, read state and stars. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion. This cannot be undone — re-subscribing starts from whatever the feed currently offers.

Inputs: feed_id (required), confirm_token. Returns: feedId, unsubscribed

update_feedUpdate a feedA
DestructiveIdempotent

Renames a feed and/or moves it to another category. A category that does not exist yet is created. Fields that are not given stay unchanged.

Inputs: feed_id (required), title, category. Returns: feedId, updated

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlapping functionality. For example, 'list_articles' and 'get_articles' are differentiated by scope (list vs. full text), and 'mark_articles' vs 'mark_all_as_read' are distinct in granularity.

    Naming Consistency5/5

    Tool names follow a consistent verb_noun pattern (e.g., get_user_info, list_feeds, subscribe_feed, export_opml) with occasional modifiers (all_as_read, category_or_label) but remain uniform and predictable. No mixed conventions like camelCase or inconsistent verbs.

    Tool Count4/5

    With 16 tools, the set is slightly above the typical 3–15 range but each tool serves a necessary function for a feed reader, covering subscription management, article handling, and OPML operations. The count feels justified rather than bloated.

    Completeness5/5

    The tool surface covers the full lifecycle of feed management: reading (list/get), writing (subscribe/update/unsubscribe), marking read states, category operations, and OPML import/export. The absence of search is explicitly noted as an API limitation, and alternatives are provided, so no critical gaps exist.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for RSS feed aggregation and article content extraction, allowing users to subscribe to feeds and extract full article content as Markdown.
      2
      275 npm
      5
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      A self-hosted RSS reader MCP server that manages RSS subscriptions and fetches live feed content, deployable on AWS.
      -
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides RSS feed tools for Claude Desktop, enabling fetching and parsing RSS feeds with configurable feeds and blocklists.
      6
      MIT