npm @ni-c/freshrss-mcpstdioupdated 13d ago
A Model Context Protocol (MCP) server for FreshRSS, the self-hosted RSS and Atom feed aggregator.
What can you do with FreshRSS?
freshrss-mcp
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.

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. |
FRESHRSS_ALLOW_TOOLS |
no | Comma-separated tool names, list_* prefixes, or essential for a curated preset |
FRESHRSS_DENY_TOOLS |
no | Same syntax; removed from whatever FRESHRSS_ALLOW_TOOLS left |
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.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 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
- 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.
License
MIT
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.
FRESHRSS_ALLOW_TOOLS=essential
FRESHRSS_ALLOW_TOOLS=list_feeds,list_articles,mark_articles
FRESHRSS_DENY_TOOLS=delete_*
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.
Install
Add FreshRSS to your client. Pick the one you use.
claude mcp add freshrss-mcp -- npx -y @ni-c/freshrss-mcpcodex mcp add freshrss-mcp -- npx -y @ni-c/freshrss-mcpamp mcp add freshrss-mcp -- npx -y @ni-c/freshrss-mcp{
"mcpServers": {
"freshrss-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"freshrss-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"freshrss-mcp","command":"npx","args":["-y","@ni-c/freshrss-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"freshrss-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"freshrss-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"freshrss-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"freshrss-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"freshrss-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@ni-c/freshrss-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @ni-c/freshrss-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance25/25
- Trust6/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 5 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.2.0Latest | Aug 26, 2026 |
| 0.1.6 | Aug 26, 2026 |
| 0.1.5 | Aug 25, 2026 |
| 0.1.3 | Aug 18, 2026 |
| 0.1.2 | Aug 18, 2026 |
| 0.1.1 | Aug 17, 2026 |