freshrss-mcp
freshrss-mcp
Model Context Protocol サーバーで、 セルフホスト型 RSS/Atom フィードアグリゲーター FreshRSS に対応するものです。
FreshRSS が /api/greader.php で公開している Google Reader 互換 API を利用し、その API の癖を、アシスタントが実際に使いやすいツール引数(数値のフィード ID、カテゴリー名やラベル名、ISO 日付、10 進数の記事 ID など。user/-/state/com.google/… ストリーム識別子や 16 進数のアイテムタグは使いません)で隠蔽します。
📖 完全なドキュメント: freshrss-mcp.ni-c.de

必要条件
Node.js 22 以降
FreshRSS インスタンス(バージョン 1.29 で開発)で、以下が有効であること:
API が有効: 設定 → 認証 → 「API アクセスを許可」
ユーザーに API パスワード が設定されている: 設定 → プロフィール → API 管理。 これは Web ログインパスワードとは別のパスワードです。
Related MCP server: Conduit
設定
変数 | 必須 | 説明 |
| はい | インスタンスのルート URL(例: |
| はい | FreshRSS ユーザー名。 |
| はい | プロフィールページの API パスワード(Web ログインパスワードではありません)。 |
| いいえ |
|
| いいえ |
|
サーバーは認証情報なしでも起動するため、ツールは一覧表示可能です。ただし、すべての呼び出しはこのセットアップ手順とともに失敗します。
Claude Code
claude mcp add freshrss -- npx -y @ni-c/freshrss-mcpClaude 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 = "…" }ツール
読み取り
ツール | 説明 |
| 認証されたアカウント情報 — 簡単な認証情報チェック。 |
| カテゴリーと未読数を含む、すべての購読フィード。 |
| カテゴリー(フィードのフォルダー)とユーザーラベル(記事のタグ)。 |
| 合計およびフィード/カテゴリーごとの未読数(ソート済み)。 |
| フィード、カテゴリー、ラベル、または組み込みストリームの記事(抜粋または制限付き全文)。 |
| 特定の記事 ID の全文。 |
| ID のみ — |
| すべての購読フィードを OPML 文書としてエクスポート。 |
書き込み
FRESHRSS_READ_ONLY=true の場合は登録されません。
ツール | 説明 | 確認 |
| 特定の記事の既読状態、スター、ラベルを設定します。 | — |
| フィード、カテゴリー、ラベル、またはストリーム全体を既読にします。 | あり |
| フィードまたはウェブサイトの URL を購読します。 | — |
| フィードの名前を変更したり、別のカテゴリーに移動したりします。 | — |
| フィードとその保存された記事をすべて削除します。 | あり |
| カテゴリーまたはユーザーラベルの名前を変更します。 | — |
| カテゴリーまたはユーザーラベルを削除します。 | あり |
| OPML 文書内のすべてのフィードを購読します。 | あり |
検索なし
FreshRSS は API 経由で全文検索を提供していません。Google Reader エンドポイントはストリーム、既読状態、日付でのみフィルタリングします。そのため list_articles にはクエリパラメータがありません。feed_id/category と since/until で結果を絞り込み、返された記事を自分でフィルタリングしてください。
安全性
記事テキストは信頼できない入力です。 このサーバーが FreshRSS から返すものはすべてインターネット上の第三者が作成したものであるため、記事テキスト、タイトル、フィード名を含む応答は明示的にデータとしてマークされ、決して指示としては扱われません。
破壊的なツールは 2 段階です。 最初の呼び出しは、対象を正確に指定した使い捨ての確認トークンを返します。2 回目の呼び出しでそのトークンを提示する必要があります。単純なブール値では、最初の呼び出しで設定されたり、フィード内の隠しテキストで誘導されたりする可能性があります。確認メッセージでは、API から取得したタイトルや名前を意図的に引用しません。
応答予算。 FreshRSS は記事ごとに最大 500,000 文字の HTML を返します。記事テキストはプレーンテキストに変換され、記事ごと、および応答ごとの予算に対して上限が設定され、一覧表示ではオプトインとなります。
認証情報 は一度だけ読み取られ、その後
process.envから削除され、ディスクに書き込まれることはありません。リクエストはリダイレクトを決して追跡しません(リダイレクト先に認証ヘッダーが再送信されるのを防ぐため)。また、TLS 検証の緩和はプロセス全体ではなく、この接続のみに適用されます。フィード URL は秘匿化されます。 FreshRSS は HTTP 認証付きフィードを
https://user:password@host/feedとして保存します。ツールの結果や OPML エクスポートにフィード URL が出力される前に、ユーザー情報部分は削除されるため、list_feedsで有料フィードやプライベートフィードのパスワードがトランスクリプトに出力されることはありません。subscribe_feedは内部ターゲットを拒否します。 FreshRSS はサーバー側で URL を取得するため、このツールは記事内のテキストから到達可能な SSRF プリミティブになります。ループバックアドレスとリンクローカルアドレス(クラウドメタデータエンドポイントを含む)は拒否されます。プライベート LAN アドレスは許可されます。これは、セルフホスト環境では自社ネットワーク上のフィードを正当に購読するためです。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開発用の使い捨て FreshRSS については CONTRIBUTING.md を参照してください。完全なドキュメントは freshrss-mcp.ni-c.de にあります。
リリース
CHANGELOG.md の
[Unreleased]エントリを新しいバージョンに移動し、package.jsonのversionを更新します。npm run lint && npm run build && npm run test:coverageを実行します。コミットし、タグ付け:
git tag -s vX.Y.Z -m vX.Y.Z && git push origin main vX.Y.Z。
タグによって release.yml がトリガーされ、タグが package.json と一致することを確認し、Trusted Publishing を使用して来歴付きで npm に公開し(トークン不要)、CHANGELOG セクションから GitHub リリースを作成し、MCP Registry にエントリを公開します。レジストリステップのみが失敗した場合は、main で修正し、mcp-registry.yml を手動で再実行してください。タグ付きジョブを再実行しないでください。古いツリーをチェックアウトすることになります。
ライセンス
MIT
Available Tools
16 toolsdelete_category_or_labelDelete a category or labelADestructiveIdempotent
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 OPMLARead-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 articlesARead-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 countsARead-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 infoARead-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 OPMLADestructive
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 idsARead-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 articlesARead-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 labelsARead-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 feedsARead-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 readADestructiveIdempotent
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 articlesADestructiveIdempotent
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 labelADestructiveIdempotent
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 feedADestructiveIdempotent
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 feedADestructiveIdempotent
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
Scored across 16 tools
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.
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.
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.
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
Related MCP Connectors
Text to speech MCP server: send articles or AI-written text to a private podcast RSS feed.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Managed cloud RSS, Atom & JSON feed reader with a remote Model Context Protocol (MCP) endpoint. Zero server setup required — enables AI agents like Claude to instantly subscribe to feeds, search full-text articles, extract readable content, and access curated AI editions ("Your Newspaper") over secure streamable HTTP.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for RSS feed aggregation and article content extraction, allowing users to subscribe to feeds and extract full article content as Markdown.2275 npm5MIT
- FlicenseNot gradedqualityCmaintenanceA self-hosted RSS reader MCP server that manages RSS subscriptions and fetches live feed content, deployable on AWS.-
- AlicenseAqualityBmaintenanceMCP server for FreshRSS RSS reader enabling feed reading, subscription management, and item actions via the Google Reader compatible API.12MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides RSS feed tools for Claude Desktop, enabling fetching and parsing RSS feeds with configurable feeds and blocklists.6MIT