
FreshRSS
io.github.ni-c由 GitHub 账号 ni-c 发布v0.3.2更新于 Oct 24, 2026
MCP server for FreshRSS, the self-hosted RSS feed aggregator
概览
让助手通过 Google Reader 兼容 API 读取、整理和管理自建 FreshRSS 实例中的订阅源。
- 可以做什么
- 连接 FreshRSS 实例并提供十六个工具:列出订阅源、分类和标签,查看未读数量,列出和阅读文章,以及将订阅导出为 OPML。写入类工具可标记文章为已读、加星或加标签,将整个信息流标为已读,订阅或取消订阅源,重命名或删除分类与标签,以及导入 OPML。文章正文会转换为纯文本并限制长度,结果以结构化内容返回并标记为不可信数据。
- 适用场景
- 适合自行搭建 FreshRSS 服务器、希望助手在不打开网页界面的情况下处理未读条目、阅读或总结文章并调整订阅与标签的场景。也适合希望订阅内容留在自有基础设施上的自托管环境。
- 运行要求
- 需要 Node.js 22 或更高版本,或使用已发布的容器镜像。需要一个可访问、已启用 API 访问并为用户设置 API 密码的 FreshRSS 实例。必需的环境变量:FRESHRSS_URL、FRESHRSS_USER 和 FRESHRSS_API_PASSWORD。可选:FRESHRSS_READ_ONLY、FRESHRSS_INSECURE_TLS、FRESHRSS_ALLOW_TOOLS、FRESHRSS_DENY_TOOLS 和 ELICITATION。以本地 stdio 进程运行,仅支持桌面客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 FreshRSS,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
freshrss-mcp
[CI]
[OpenSSF Scorecard]
[Socket Badge]
[Glama score]
[npm version]
[container image]
[HTTP via mcp-hub]
[docs]
[sponsor]
A Model Context Protocol (MCP) server for FreshRSS, the self-hosted RSS and Atom feed aggregator.
Lets MCP clients like Claude Code, Claude Desktop or Codex work through your feeds: see what is unread, read the articles, mark them, and manage subscriptions and categories.
Sixteen tools is the ceiling, not the floor: FRESHRSS_ALLOW_TOOLS=essential
registers a curated seven instead, and a model picks the right tool far more
reliably from seven than from sixteen — see
choosing which tools load.
It speaks the Google Reader compatible API that FreshRSS exposes at
/api/greader.php, and hides that API's quirks behind tool arguments an assistant can
actually use: numeric feed ids, category and label names, ISO dates and decimal
article ids instead of user/-/state/com.google/… stream identifiers and hexadecimal
item tags.
[Demo: listing the tools, the subscribed feeds and the newest article through the MCP Inspector CLI]
What makes it different
Sixteen tools, no stream ids. The Google Reader API speaks in stream identifiers and hexadecimal item tags. These tools take numeric feed ids, category and label names, ISO dates and decimal article ids, and hand back plain text instead of raw HTML.
Built for untrusted feeds. Every article was written by a stranger on the internet, so responses are marked as data, feed URLs are stripped of credentials, and article text is capped per article and per response. The five irreversible tools ask a person first, through MCP elicitation.
Requirements
- Node.js 24 or newer
- A FreshRSS instance (developed against 1.29) with
- the API enabled: Settings → Authentication → "Allow API access"
- an API password set for the user: Settings → Profile → API management. This is a separate password from the web login.
Configuration
The server starts without credentials so its tools stay listable; every call then fails with these setup instructions.
Choosing which tools load
FRESHRSS_ALLOW_TOOLS and FRESHRSS_DENY_TOOLS take comma-separated tool names;
a trailing * matches a whole family. essential is a curated preset of
seven: list_feeds, list_categories, get_unread_counts, list_articles, get_articles, mark_articles, mark_all_as_read.
An entry that matches no tool aborts startup and names it, so a typo cannot
silently hide a tool — an absent tool is not something anyone traces back to an
environment variable. A filtered tool is never registered, so it is absent from
tools/list and unknown to tools/call alike, exactly like a write tool under
FRESHRSS_READ_ONLY.
If you run several of these servers at once, mcp-hub
is the other answer — its /hub endpoint replaces every server's tools with six
meta-tools.
Installation
Claude Code
Claude Desktop
Codex
Docker
The image is published for linux/amd64 and linux/arm64 with an SBOM and build
provenance. It runs as the unprivileged node user and carries no npm, so the
only thing in it is Node, the runtime dependencies and dist/.
Through mcp-hub
A client that cannot spawn a local process — ChatGPT connectors, Claude on the web,
Cursor, LibreChat — reaches freshrss-mcp through mcp-hub: one
container serves many stdio MCP servers over Streamable HTTP, with an OAuth 2.1 login
behind a single password and long-lived tokens for the clients that cannot do OAuth. Its
/hub endpoint puts every server behind six meta-tools, so one connector reaches all of
them without N×tool schemas in the model's context, and it speaks both protocol revisions
— a question this server asks travels through it to the person at the far end.
Its /config/mcp.json uses Claude Code's format, so the entry is the one you already
have:
allowTools and denyTools there are the hub's own per-server filter, which is not
the same thing as *_ALLOW_TOOLS in env — the difference, and the mistake it invites,
are in the client guide.
Tools
Reading
Writing
Not registered when FRESHRSS_READ_ONLY=true.
Structured output
Every tool declares an outputSchema and answers with structuredContent
alongside the text block, so a client can use the result without parsing prose:
Every tool that reports feed content carries untrusted: true and
source: "freshrss" as fields. This server has always said so in notes —
prose in a list, which a client can read but not check — and the field is what
makes it checkable. Eight tools are without it, because their answer is entirely
this server's own words: ids it was given, a sentence built from the arguments,
the account it authenticates as.
Six tools used to answer with a sentence ("Feed 9 deleted."); they now answer
with the fields as well, and the sentence stays in the text block.
export_opml returns {opml} rather than the document as the whole result: a
schema whose root is a string is served to a 2025-era client rewritten as
{result: …}, and truncated needs somewhere to live either way.
No search
FreshRSS does not offer full-text search over its API — the Google Reader
endpoints filter by stream, read state and date only. list_articles therefore
has no query parameter; narrow the result with feed_id/category and
since/until and filter the returned articles yourself.
Not exposed, on purpose
No full-text search, because FreshRSS offers none over the Google Reader API:
its endpoints filter by stream, read state and date only. Narrow with feed_id,
category, since and until, then filter the returned articles yourself. The
search in the FreshRSS web interface has no API endpoint behind it.
No raw HTML. Article bodies are converted to plain text and capped per article and per response, so one listing cannot bury everything else in the context.
Safety
- Article text is untrusted input. Everything this server returns from FreshRSS was written by a third party on the internet, so responses that carry article text, titles or feed names are explicitly marked as data, never as instructions.
- A person is asked, not just told. Where the client supports MCP elicitation, the five irreversible tools raise a real dialog that the model cannot answer on its behalf. A plain boolean could be set on the very first call, or be talked into it by text hidden in a feed. Where the client cannot show a dialog they fall back to a single-use token bound to the exact target, and say so rather than implying somebody approved. The messages deliberately never quote titles or names coming from the API. See Asking a person.
- Response budgets. FreshRSS returns up to 500 000 characters of HTML per article. Article text is converted to plain text, capped per article and against a per-response budget, and is opt-in in listings. The budget is charged for the markup that was read rather than for the text that came out, so it bounds the conversion work and not only the resulting context — markup that strips away to nothing is the expensive case, and it used to be free. The conversion itself is a single left-to-right scan, linear in the length of the article whatever the article contains.
- Credentials are read once, removed from
process.envafterwards and never written to disk. Requests never follow redirects, which would resend the authorization header to another host, and relaxed TLS validation is scoped to this connection instead of the whole process. - Feed URLs are redacted. FreshRSS stores HTTP-auth feeds as
https://user:password@host/feed. The userinfo part is stripped before a feed URL reaches a tool result or the OPML export, solist_feedscannot print the password of a paid or private feed into the transcript. subscribe_feedandimport_opmlrefuse internal targets. FreshRSS fetches those URLs server-side, which makes both tools an SSRF primitive reachable from text inside an article. Loopback and link-local addresses — including cloud metadata endpoints — are rejected, for the feed URL and for everyxmlUrl/htmlUrlin an OPML document. Addresses are compared numerically, so an IPv4-mapped IPv6 literal such as[::ffff:169.254.169.254]is caught too, and a hostname is resolved before it is accepted. An OPML document is read the way an XML parser reads it, and what reaches FreshRSS is the document as checked — so the URL that was inspected is the URL that gets fetched. Private LAN addresses stay allowed, because self-hosted setups legitimately subscribe to feeds on their own network.import_opmlrefuses a<!DOCTYPE>. No XML is parsed in this process, but the document is handed to FreshRSS, where a document type declaration is the carrier for entity-expansion and external-entity attacks. OPML never needs one.FRESHRSS_READ_ONLY=truedoes not register the write tools at all rather than refusing them at call time.
Which tools ask a person: mark_all_as_read, unsubscribe_feed,
delete_category_or_label, import_opml — and mark_articles, but only when it
is about to mark something read. Starring, unstarring and labelling can all
be set back; which of those articles were unread cannot, and FreshRSS keeps no
record of it.
Documentation
The full guide, tool reference and security notes live at
freshrss-mcp.ni-c.de (source in docs/).
Development
See CONTRIBUTING.md for a throwaway FreshRSS to develop against. The full documentation lives at freshrss-mcp.ni-c.de.
Releasing
- Move the
[Unreleased]entries in CHANGELOG.md under the new version and bumpversioninpackage.json. npm run lint && npm run build && npm run test:coverage.- Commit, then tag:
git tag -s vX.Y.Z -m vX.Y.Z && git push origin main vX.Y.Z.
The tag triggers release.yml, which verifies the tag matches package.json,
publishes to npm via Trusted Publishing
with provenance (no token involved), creates the GitHub release from the CHANGELOG
section, and publishes the entry to the
MCP Registry. If only the registry
step fails, fix it on main and re-run mcp-registry.yml by hand — never re-run
the tagged job, which would check out the old tree.
Contributing
Issues, discussions and pull requests are welcome — see CONTRIBUTING.md. For vulnerabilities please use private reporting rather than a public issue; the policy is in SECURITY.md.
License
MIT © Willi Thiel
来源:README.md,提交 b09ca10
工具
0版本历史
1- v0.3.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分