freshrss-mcp

freshrss-mcp

An MCP server for reading and managing RSS feeds from a self-hosted FreshRSS instance, enabling listing feeds, fetching articles, and subscribing/unsubscribing through the FreshRSS API.

Category
访问服务器

README

freshrss-mcp

CI npm version npm downloads node license container docs

A Model Context Protocol server for FreshRSS, the self-hosted RSS and Atom feed aggregator.

It speaks the Google Reader compatible API that FreshRSS exposes at /api/greader.php, and it 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.

📖 Full documentation: freshrss-mcp.ni-c.de

<!-- <picture> is resolved against the colour scheme of the page showing it, so GitHub picks the variant that matches its own theme toggle. npm strips <picture> and <source> when it sanitises the README and keeps the <img>, which is why that fallback brings its own dark card instead of relying on a media query. --> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://freshrss-mcp.ni-c.de/architecture-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://freshrss-mcp.ni-c.de/architecture-light.svg"> <img src="https://freshrss-mcp.ni-c.de/architecture.svg" alt="An MCP client speaks stdio to freshrss-mcp, which calls the Google Reader compatible API of FreshRSS over HTTPS with a GoogleLogin auth token" width="800"> </picture>

<!-- Recorded with vhs from docs/demo.tape against a throwaway FreshRSS 1.29.1. -->

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

Requirements

  • Node.js 22 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

Variable Required Description
FRESHRSS_URL yes Root URL of the instance, e.g. https://rss.example.com. The API path /api/greader.php is appended automatically.
FRESHRSS_USER yes FreshRSS user name.
FRESHRSS_API_PASSWORD yes The API password from the profile page, not the web login password.
FRESHRSS_READ_ONLY no true registers only the read tools.
FRESHRSS_INSECURE_TLS no true accepts self-signed certificates for this connection only.

The server starts without credentials so its tools stay listable; every call then fails with these setup instructions.

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

Reading

Tool Description
get_user_info The authenticated account — a quick credential check.
list_feeds Every subscription with its category and unread count.
list_categories Categories (folders of feeds) and user labels (tags on articles).
get_unread_counts Total and per-feed/category unread counts, sorted.
list_articles Articles of a feed, category, label or built-in stream, with excerpts or bounded full text.
get_articles Full text of specific articles by id.
list_article_ids Ids only — the cheap way to collect a set for mark_articles.
export_opml All subscriptions as an OPML document.

Writing

Not registered when FRESHRSS_READ_ONLY=true.

Tool Description Confirmation
mark_articles Set read state, star and labels on specific articles. —
mark_all_as_read Mark a whole feed, category, label or stream as read. yes
subscribe_feed Subscribe to a feed or website URL. —
update_feed Rename a feed or move it to another category. —
unsubscribe_feed Delete a feed and all of its stored articles. yes
rename_category_or_label Rename a category or a user label. —
delete_category_or_label Delete a category or a user label. yes
import_opml Subscribe to every feed in an OPML document. yes

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.

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.
  • Destructive tools are two-step. They return a single-use confirmation token bound to the exact target; the second call has to carry it. A plain boolean could be set on the very first call, or be talked into it by text hidden in a feed. The confirmation messages deliberately never quote titles or names coming from the API.
  • 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.
  • Credentials are read once, removed from process.env afterwards 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, so list_feeds cannot print the password of a paid or private feed into the transcript.
  • subscribe_feed refuses internal targets. FreshRSS fetches the URL server-side, which makes the tool an SSRF primitive reachable from text inside an article. Loopback and link-local addresses — including cloud metadata endpoints — are rejected. Private LAN addresses stay allowed, because self-hosted setups legitimately subscribe to feeds on their own network.
  • import_opml refuses 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=true does not register the write tools at all rather than refusing them at call time.

Which tools are gated by a confirmation token: mark_all_as_read, unsubscribe_feed, delete_category_or_label and import_opml. mark_articles is deliberately not gated — the caller names each of at most 100 articles explicitly and every field can be set back — but it is declared destructive, so a client may still prompt for it.

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

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/.

Development

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

See CONTRIBUTING.md for a throwaway FreshRSS to develop against. The full documentation lives at freshrss-mcp.ni-c.de.

Releasing

  1. Move the [Unreleased] entries in CHANGELOG.md under the new version and bump version in package.json.
  2. npm run lint && npm run build && npm run test:coverage.
  3. 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.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选