Skip to main content
Glama

freshrss-mcp

CI npm version npm downloads node license container docs

Сервер для Model Context Protocol для FreshRSS, самоуправляемого агрегатора RSS и Atom фидов.

Он использует API, совместимый с Google Reader, который FreshRSS предоставляет по адресу /api/greader.php, и скрывает особенности этого API за аргументами инструментов, которые ассистент может реально использовать: числовые идентификаторы фидов, имена категорий и меток, даты в формате ISO и десятичные идентификаторы статей вместо идентификаторов потоков вида user/-/state/com.google/… и шестнадцатеричных тегов элементов.

📖 Полная документация: freshrss-mcp.ni-c.de

Architecture: an MCP client speaks stdio to freshrss-mcp, which calls the Google Reader compatible API of FreshRSS over HTTPS with a GoogleLogin auth token

Demo: listing the tools, the subscribed feeds and the newest article through the MCP Inspector CLI

Требования

  • Node.js 22 или новее

  • Экземпляр FreshRSS (разработан для версии 1.29) с

    • включенным API: Настройки → Аутентификация → "Allow API access"

    • установленным API-паролем для пользователя: Настройки → Профиль → API management. Это отдельный пароль, отличный от пароля для входа в веб-интерфейс.

Related MCP server: Conduit

Конфигурация

Переменная

Обязательно

Описание

FRESHRSS_URL

да

Корневой URL экземпляра, например https://rss.example.com. Путь к API /api/greader.php добавляется автоматически.

FRESHRSS_USER

да

Имя пользователя FreshRSS.

FRESHRSS_API_PASSWORD

да

API-пароль со страницы профиля, а не пароль для входа в веб-интерфейс.

FRESHRSS_READ_ONLY

нет

true регистрирует только инструменты для чтения.

FRESHRSS_INSECURE_TLS

нет

true принимает самоподписанные сертификаты только для этого соединения.

Сервер запускается без учетных данных, поэтому его инструменты остаются перечисляемыми; каждый вызов завершается ошибкой с этими инструкциями по настройке.

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

Инструменты

Чтение

Инструмент

Описание

get_user_info

Аутентифицированная учетная запись — быстрая проверка учетных данных.

list_feeds

Все подписки с их категорией и количеством непрочитанных.

list_categories

Категории (папки фидов) и пользовательские метки (теги на статьях).

get_unread_counts

Общее и по фидам/категориям количество непрочитанных, отсортированное.

list_articles

Статьи фида, категории, метки или встроенного потока с выдержками или ограниченным полным текстом.

get_articles

Полный текст конкретных статей по идентификатору.

list_article_ids

Только идентификаторы — дешевый способ собрать набор для mark_articles.

export_opml

Все подписки в виде документа OPML.

Запись

Не регистрируются, если FRESHRSS_READ_ONLY=true.

Инструмент

Описание

Подтверждение

mark_articles

Установка состояния прочтения, звездочки и меток для конкретных статей.

—

mark_all_as_read

Отметить весь фид, категорию, метку или поток как прочитанный.

да

subscribe_feed

Подписаться на фид или URL веб-сайта.

—

update_feed

Переименовать фид или переместить в другую категорию.

—

unsubscribe_feed

Удалить фид и все его сохраненные статьи.

да

rename_category_or_label

Переименовать категорию или пользовательскую метку.

—

delete_category_or_label

Удалить категорию или пользовательскую метку.

да

import_opml

Подписаться на каждый фид в документе OPML.

да

Поиск отсутствует

FreshRSS не предоставляет полнотекстовый поиск через свой API — конечные точки Google Reader фильтруют только по потоку, состоянию прочтения и дате. Поэтому list_articles не имеет параметра запроса; сузьте результат с помощью feed_id/category и since/until и отфильтруйте полученные статьи самостоятельно.

Безопасность

  • Текст статей считается ненадежным вводом. Все, что этот сервер возвращает из FreshRSS, было написано третьей стороной в интернете, поэтому ответы, содержащие текст статей, заголовки или имена фидов, явно помечаются как данные, а не как инструкции.

  • Деструктивные инструменты требуют двух шагов. Они возвращают одноразовый токен подтверждения, привязанный к конкретной цели; второй вызов должен содержать его. Простой булевый флаг можно было бы установить при первом вызове или склонить к этому текст, скрытый в фиде. Сообщения подтверждения намеренно никогда не цитируют заголовки или имена, полученные из API.

  • Бюджеты ответов. FreshRSS возвращает до 500 000 символов HTML на одну статью. Текст статьи преобразуется в обычный текст, ограничивается на статью и на общий бюджет ответа, и является опциональным в списках.

  • Учетные данные читаются один раз, затем удаляются из process.env и никогда не записываются на диск. Запросы никогда не следуют перенаправлениям, которые могли бы повторно отправить заголовок авторизации другому хосту, а ослабленная проверка TLS ограничена этим соединением, а не всем процессом.

  • URL фидов редактируются. FreshRSS хранит фиды с HTTP-аутентификацией как https://user:password@host/feed. Часть с информацией о пользователе удаляется, прежде чем URL фида попадет в результат инструмента или экспорт OPML, поэтому list_feeds не может вывести пароль платного или приватного фида в транскрипт.

  • subscribe_feed отклоняет внутренние цели. FreshRSS извлекает URL на стороне сервера, что делает инструмент примитивом SSRF, доступным из текста внутри статьи. Адреса loopback и link-local, включая конечные точки метаданных облака, отклоняются. Адреса частных локальных сетей остаются разрешенными, потому что в самоуправляемых установках законно подписываются на фиды в своей собственной сети.

  • import_opml отклоняет <!DOCTYPE>. В этом процессе не выполняется разбор XML, но документ передается FreshRSS, где объявление типа документа является носителем атак расширения сущностей и внешних сущностей. OPML никогда не нуждается в нем.

  • FRESHRSS_READ_ONLY=true не регистрирует инструменты записи вообще, а не отклоняет их во время вызова.

Какие инструменты защищены токеном подтверждения: mark_all_as_read, unsubscribe_feed, delete_category_or_label и import_opml. mark_articles намеренно не защищен — вызывающий явно указывает каждую из не более 100 статей, и каждое поле можно сбросить — но он объявлен деструктивным, поэтому клиент все равно может запросить подтверждение.

Контейнер

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

Образ публикуется для linux/amd64 и linux/arm64 с SBOM и происхождением сборки. Он работает как непривилегированный пользователь node и не содержит npm, так что в нем есть только Node, зависимости времени выполнения и dist/.

Разработка

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

См. CONTRIBUTING.md для получения одноразового FreshRSS для разработки. Полная документация находится по адресу freshrss-mcp.ni-c.de.

Релиз

  1. Перенесите записи [Unreleased] в CHANGELOG.md под новую версию и увеличьте version в package.json.

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

  3. Зафиксируйте, затем создайте тег: git tag -s vX.Y.Z -m vX.Y.Z && git push origin main vX.Y.Z.

Тег запускает release.yml, который проверяет соответствие тега package.json, публикует в npm через Trusted Publishing с подтверждением происхождения (без токена), создает релиз на GitHub из раздела CHANGELOG и публикует запись в MCP Registry. Если только шаг реестра завершается ошибкой, исправьте его в main и повторно запустите mcp-registry.yml вручную — никогда не перезапускайте задачу с тегом, так как это проверит старую версию дерева.

Лицензия

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