Skip to main content
Glama

freshrss-mcp

CI npm version npm downloads node license container docs

Un servidor Model Context Protocol para FreshRSS, el agregador de feeds RSS y Atom autoalojado.

Habla la API compatible con Google Reader que FreshRSS expone en /api/greader.php, y oculta las peculiaridades de esa API detrás de argumentos de herramientas que un asistente puede usar realmente: identificadores de feed numéricos, nombres de categorías y etiquetas, fechas ISO e identificadores de artículo decimales en lugar de identificadores de flujo user/-/state/com.google/… y etiquetas de elementos hexadecimales.

📖 Documentación completa: freshrss-mcp.ni-c.de

Arquitectura: un cliente MCP se comunica por stdio con freshrss-mcp, que llama a la API compatible con Google Reader de FreshRSS a través de HTTPS con un token de autenticación GoogleLogin

Demo: listando las herramientas, los feeds suscritos y el artículo más reciente a través del MCP Inspector CLI

Requisitos

  • Node.js 22 o superior

  • Una instancia de FreshRSS (desarrollada contra 1.29) con

    • la API habilitada: Ajustes → Autenticación → "Permitir acceso a la API"

    • una contraseña de API configurada para el usuario: Ajustes → Perfil → Gestión de la API. Esta es una contraseña separada de la de inicio de sesión web.

Related MCP server: Conduit

Configuración

Variable

Requerido

Descripción

FRESHRSS_URL

sí

URL raíz de la instancia, p.ej. https://rss.example.com. La ruta de la API /api/greader.php se añade automáticamente.

FRESHRSS_USER

sí

Nombre de usuario de FreshRSS.

FRESHRSS_API_PASSWORD

sí

La contraseña de API de la página de perfil, no la contraseña de inicio de sesión web.

FRESHRSS_READ_ONLY

no

true registra solo las herramientas de lectura.

FRESHRSS_INSECURE_TLS

no

true acepta certificados autofirmados solo para esta conexión.

El servidor arranca sin credenciales para que sus herramientas se puedan listar; cada llamada entonces falla con estas instrucciones de configuración.

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 = "…" }

Herramientas

Lectura

Herramienta

Descripción

get_user_info

La cuenta autenticada: una comprobación rápida de credenciales.

list_feeds

Cada suscripción con su categoría y recuento de no leídos.

list_categories

Categorías (carpetas de feeds) y etiquetas de usuario (marcas en artículos).

get_unread_counts

Recuentos totales y por feed/categoría de no leídos, ordenados.

list_articles

Artículos de un feed, categoría, etiqueta o flujo incorporado, con extractos o texto completo acotado.

get_articles

Texto completo de artículos específicos por id.

list_article_ids

Solo ids: la forma barata de recoger un conjunto para mark_articles.

export_opml

Todas las suscripciones como un documento OPML.

Escritura

No registradas cuando FRESHRSS_READ_ONLY=true.

Herramienta

Descripción

Confirmación

mark_articles

Establecer estado de lectura, destacar y etiquetas en artículos específicos.

—

mark_all_as_read

Marcar un feed, categoría, etiqueta o flujo completo como leído.

sí

subscribe_feed

Suscribirse a un feed o URL de sitio web.

—

update_feed

Renombrar un feed o moverlo a otra categoría.

—

unsubscribe_feed

Eliminar un feed y todos sus artículos almacenados.

sí

rename_category_or_label

Renombrar una categoría o una etiqueta de usuario.

—

delete_category_or_label

Eliminar una categoría o una etiqueta de usuario.

sí

import_opml

Suscribirse a cada feed en un documento OPML.

sí

Sin búsqueda

FreshRSS no ofrece búsqueda de texto completo a través de su API: los endpoints de Google Reader filtran solo por flujo, estado de lectura y fecha. list_articles por lo tanto no tiene parámetro de consulta; restringe el resultado con feed_id/category y since/until y filtra los artículos devueltos tú mismo.

Seguridad

  • El texto de los artículos es entrada no confiable. Todo lo que este servidor devuelve de FreshRSS fue escrito por un tercero en internet, por lo que las respuestas que contienen texto de artículos, títulos o nombres de feeds se marcan explícitamente como datos, nunca como instrucciones.

  • Las herramientas destructivas son de dos pasos. Devuelven un token de confirmación de un solo uso vinculado al objetivo exacto; la segunda llamada debe llevarlo. Un booleano plano podría establecerse en la primera llamada, o ser inducido por texto oculto en un feed. Los mensajes de confirmación deliberadamente nunca citan títulos o nombres provenientes de la API.

  • Presupuestos de respuesta. FreshRSS devuelve hasta 500 000 caracteres de HTML por artículo. El texto del artículo se convierte a texto plano, con un límite por artículo y contra un presupuesto por respuesta, y es opcional en los listados.

  • Las credenciales se leen una vez, se eliminan de process.env después y nunca se escriben en disco. Las solicitudes nunca siguen redirecciones, que reenviarían el encabezado de autorización a otro host, y la validación TLS relajada se limita a esta conexión en lugar de todo el proceso.

  • Las URLs de los feeds son censuradas. FreshRSS almacena los feeds con autenticación HTTP como https://user:password@host/feed. La parte de información de usuario se elimina antes de que una URL de feed llegue a un resultado de herramienta o a la exportación OPML, por lo que list_feeds no puede imprimir la contraseña de un feed de pago o privado en la transcripción.

  • subscribe_feed rechaza destinos internos. FreshRSS obtiene la URL del lado del servidor, lo que convierte la herramienta en un primitivo SSRF accesible desde el texto dentro de un artículo. Las direcciones de loopback y link-local — incluyendo los endpoints de metadatos de servicios cloud — son rechazadas. Las direcciones LAN privadas siguen permitidas, porque las instalaciones autoalojadas legítimamente se suscriben a feeds en su propia red.

  • import_opml rechaza un <!DOCTYPE>. No se analiza XML en este proceso, pero el documento se entrega a FreshRSS, donde una declaración de tipo de documento es el vehículo para ataques de expansión de entidades y entidades externas. OPML nunca necesita una.

  • FRESHRSS_READ_ONLY=true no registra en absoluto las herramientas de escritura, en lugar de rechazarlas en el momento de la llamada.

Qué herramientas están protegidas por un token de confirmación: mark_all_as_read, unsubscribe_feed, delete_category_or_label e import_opml. mark_articles deliberadamente no está protegida — el llamante nombra cada uno de hasta 100 artículos explícitamente y cada campo puede revertirse — pero se declara destructiva, por lo que un cliente aún puede solicitarla.

Contenedor

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

La imagen se publica para linux/amd64 y linux/arm64 con un SBOM y procedencia de compilación. Se ejecuta como el usuario no privilegiado node y no lleva npm, por lo que lo único que contiene es Node, las dependencias de tiempo de ejecución y dist/.

Desarrollo

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

Consulta CONTRIBUTING.md para obtener un FreshRSS desechable para desarrollar. La documentación completa está en freshrss-mcp.ni-c.de.

Publicación

  1. Mover las entradas [Unreleased] en CHANGELOG.md debajo de la nueva versión y aumentar version en package.json.

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

  3. Confirmar y luego etiquetar: git tag -s vX.Y.Z -m vX.Y.Z && git push origin main vX.Y.Z.

La etiqueta activa release.yml, que verifica que la etiqueta coincide con package.json, publica en npm mediante Trusted Publishing con procedencia (sin token involucrado), crea el lanzamiento de GitHub desde la sección de CHANGELOG y publica la entrada en el MCP Registry. Si solo falla el paso del registro, corrígelo en main y vuelve a ejecutar mcp-registry.yml manualmente — nunca vuelvas a ejecutar el trabajo etiquetado, porque haría checkout del árbol antiguo.

Licencia

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