Skip to main content
Glama

FreshRSS

CLI or API | MCP

PyPI - Version MCP Server PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Documentation — Installation, deployment, and usage across the API, CLI, MCP, and A2A agent interfaces are maintained in the official documentation.


Related MCP server: freshrss-mcp-server

Overview

A connector for the self-hosted FreshRSS RSS reader, wrapping its Google Reader compatible API (GReader). It exposes two action-routed MCP tool domains:

  • Reader tools: freshrss_stream_contents, freshrss_item_contents, freshrss_unread_count.

  • Subscription tools: freshrss_subscription_list, freshrss_categories, freshrss_subscribe, freshrss_unsubscribe, freshrss_label, freshrss_mark_read, freshrss_star.

This repository is actively maintained - Contributions are welcome!


Key Features

  • Consolidated Action-Routed MCP Tools: Two togglable tool domains group every GReader operation, minimizing token overhead and tool bloat in LLM contexts.

  • Google Reader Compatible: Wraps the FreshRSS GReader API — ClientLogin auth, transparent re-authentication on 401, and automatic write-token handling.

  • Enterprise-Grade Security: OIDC token delegation (RFC 8693), Eunomia policy enforcement, and per-instance credential resolution.

  • Native Telemetry & Tracing: Out-of-the-box OpenTelemetry exports and Langfuse tracing.


MCP

Install the slim [mcp] extra. All MCP examples below install freshrss-agent[mcp] — the MCP-server extra that pulls only the FastMCP / FastAPI tooling (scion-sdk). It deliberately excludes the heavy agent runtime (the medulla engine, pydantic-ai, dspy, llama-index, tree-sitter), so uvx/container installs are dramatically smaller and faster. (see Installation).

Available MCP Tools

Auto-generated from the live MCP server — do not edit by hand.

Condensed action-routed tools (MCP_TOOL_MODE=condensed)

MCP Tool

Toggle Env Var

Description

freshrss_ingest_items

INGESTTOOL

Natively ingest FreshRSS feed items into medulla as :Document nodes.

freshrss_ingest_subscriptions

INGESTTOOL

Natively ingest FreshRSS subscriptions into medulla as typed nodes.

freshrss_reader

READERTOOL

Read FreshRSS streams via the Google Reader API. CONCEPT:FR-OS.identity.frss

freshrss_subscriptions

SUBSCRIPTIONSTOOL

Curate FreshRSS feeds, categories and item tags. CONCEPT:FR-OS.governance.frss

Verbose 1:1 API-mapped tools (MCP_TOOL_MODE=verbose or both)

MCP Tool

Toggle Env Var

Description

freshrss_categories

SUBSCRIPTIONS_MIXINTOOL

List categories / tags (tag/list).

freshrss_item_contents

READER_MIXINTOOL

Fetch full contents for specific item ids (GReader i parameters).

freshrss_label

SUBSCRIPTIONS_MIXINTOOL

Add a category label to an existing feed subscription.

freshrss_mark_read

SUBSCRIPTIONS_MIXINTOOL

Mark one or more items as read.

freshrss_star

SUBSCRIPTIONS_MIXINTOOL

Star or unstar an item.

freshrss_stream_contents

READER_MIXINTOOL

Fetch items for a stream.

freshrss_subscribe

SUBSCRIPTIONS_MIXINTOOL

Subscribe to a feed, optionally setting its title and category.

freshrss_subscription_list

SUBSCRIPTIONS_MIXINTOOL

List all feed subscriptions.

freshrss_unread_count

READER_MIXINTOOL

Return unread counts per stream.

freshrss_unsubscribe

SUBSCRIPTIONS_MIXINTOOL

Unsubscribe from a feed.

4 action-routed tool(s) · 10 verbose 1:1 tool(s). Each is enabled unless its <DOMAIN>TOOL toggle is set false; MCP_TOOL_MODE selects the surface (intent default — the six verb-tools, granular set loaded on demand · condensed action-routed · verbose 1:1 · both). Auto-generated — do not edit.

Detailed tool schemas, parameter shapes, and validation constraints are preserved in docs/usage.md.

Environment Variables

Package environment variables

Variable

Example

Description

HOST

0.0.0.0

PORT

8000

TRANSPORT

stdio

options: stdio, streamable-http, sse

ENABLE_OTEL

True

OTEL_EXPORTER_OTLP_ENDPOINT

http://localhost:8080/api/public/otel

OTEL_EXPORTER_OTLP_PUBLIC_KEY_REF

vault-ref-to-pk

OTEL_EXPORTER_OTLP_SECRET_KEY_REF

vault-ref-to-sk

OTEL_EXPORTER_OTLP_PROTOCOL

http/protobuf

EUNOMIA_TYPE

none

options: none, embedded, remote

EUNOMIA_POLICY_FILE

mcp_policies.json

EUNOMIA_REMOTE_URL

http://eunomia-server:8000

FRESHRSS_URL

http://localhost:8080

FRESHRSS_USER

admin

FRESHRSS_API_PASSWORD

secret-injected

FRESHRSS_TLS_PROFILE

—

Named outbound TLS policy from AgentConfig. Use a reference for runtime-only trust material; peer and hostname verification remain mandatory.

FRESHRSS_TLS_PROFILE_REF

—

READERTOOL

True

SUBSCRIPTIONSTOOL

True

INGESTTOOL

True

FRESHRSS_KG_AUTO_INGEST

True

gates opportunistic KG writeback in api_client_reader.py; default on

Inherited scion-sdk variables (apply to every connector)

Variable

Example

Description

MCP_TOOL_MODE

intent

Tool surface: intent | condensed | verbose | both

MCP_ENABLED_TOOLS

—

Comma-separated tool allow-list

MCP_DISABLED_TOOLS

—

Comma-separated tool deny-list

MCP_ENABLED_TAGS

—

Comma-separated tag allow-list

MCP_DISABLED_TAGS

—

Comma-separated tag deny-list

MCP_CLIENT_AUTH

—

Outbound MCP child auth: oidc-client-credentials | basic | none

OIDC_CLIENT_ID

—

OIDC client id (service-account auth)

OIDC_CLIENT_SECRET_REF

secret://identity/oidc-client-secret

Runtime secret reference for the OIDC service account

MCP_BASIC_AUTH_USERNAME

—

HTTP Basic username (MCP_CLIENT_AUTH=basic)

MCP_BASIC_AUTH_PASSWORD_REF

secret://identity/mcp-basic-password

Runtime secret reference for HTTP Basic auth (MCP_CLIENT_AUTH=basic)

DEBUG

False

Verbose logging

PYTHONUNBUFFERED

1

Unbuffered stdout (recommended in containers)

MCP_URL

http://localhost:8000/mcp

URL of the MCP server the agent connects to

PROVIDER

—

Operator-configured LLM provider for the agent

MODEL_ID

—

Operator-configured model id for the agent

20 package + 16 inherited variable(s). Auto-generated from .env.example + the shared scion-sdk set — do not edit.

Every variable the server reads. A copy-paste template lives in .env.example.

Connection & Credentials

Variable

Description

Default

FRESHRSS_URL

Base URL of the FreshRSS instance (e.g. https://freshrss.example.invalid)

http://localhost:8080

FRESHRSS_USER

FreshRSS username (GReader Email field)

—

FRESHRSS_API_PASSWORD

FreshRSS API password (Settings → Authentication)

—

FRESHRSS_TLS_PROFILE / FRESHRSS_TLS_PROFILE_REF

Named outbound TLS policy from AgentConfig; verification is mandatory

(empty, system trust)

MCP server / transport

Variable

Description

Default

TRANSPORT

stdio, streamable-http, or sse

stdio

HOST

Bind host (HTTP transports)

0.0.0.0

PORT

Bind port (HTTP transports)

8000

MCP_TOOL_MODE

Tool surface: condensed, verbose, or both

condensed

Telemetry & governance

Variable

Description

Default

ENABLE_OTEL

Enable OpenTelemetry / Langfuse export

True

EUNOMIA_TYPE

Authorization mode: none, embedded, remote

none

EUNOMIA_POLICY_FILE

Embedded policy file

mcp_policies.json

EUNOMIA_REMOTE_URL

Remote Eunomia server URL

—

Tool toggles — each action-routed tool domain can be disabled via its toggle env var (set to false): READERTOOL, SUBSCRIPTIONSTOOL (see the Available MCP Tools table above).

MCP Configuration Examples

Install the connector-focused [mcp] extra. Examples use freshrss-agent[mcp] to add FastMCP / FastAPI through scion-sdk; the required Scion SDK core still carries medulla[full]. The [agent-runtime] extra additionally enables model orchestration.

stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)

{
  "mcpServers": {
    "freshrss-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "freshrss-agent[mcp]",
        "freshrss-mcp"
      ],
      "env": {
        "MCP_TOOL_MODE": "intent",
        "FRESHRSS_API_PASSWORD": "your_api_password_here",
        "FRESHRSS_KG_AUTO_INGEST": "True",
        "FRESHRSS_URL": "http://localhost:8080",
        "FRESHRSS_USER": "admin",
        "INGESTTOOL": "True",
        "READERTOOL": "True",
        "SUBSCRIPTIONSTOOL": "True"
      }
    }
  }
}

Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.

Streamable-HTTP Transport (networked / production)

{
  "mcpServers": {
    "freshrss-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "freshrss-agent[mcp]",
        "freshrss-mcp",
        "--transport",
        "streamable-http",
        "--port",
        "8000"
      ],
      "env": {
        "TRANSPORT": "streamable-http",
        "HOST": "127.0.0.1",
        "PORT": "8000",
        "MCP_TOOL_MODE": "intent",
        "FRESHRSS_API_PASSWORD": "your_api_password_here",
        "FRESHRSS_KG_AUTO_INGEST": "True",
        "FRESHRSS_URL": "http://localhost:8080",
        "FRESHRSS_USER": "admin",
        "INGESTTOOL": "True",
        "READERTOOL": "True",
        "SUBSCRIPTIONSTOOL": "True"
      }
    }
  }
}

Alternatively, connect to a pre-deployed Streamable-HTTP instance by url:

{
  "mcpServers": {
    "freshrss-mcp": {
      "url": "http://localhost:8000/freshrss-mcp/mcp"
    }
  }
}

Run a reviewed container image as a least-privilege stdio child (no listener or published port):

docker run -i --rm \
  --read-only \
  --cap-drop=ALL \
  --security-opt=no-new-privileges \
  --pids-limit=256 \
  --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
  -e TRANSPORT=stdio \
  -e MCP_TOOL_MODE=intent \
  -e FRESHRSS_API_PASSWORD=your_api_password_here \
  -e FRESHRSS_KG_AUTO_INGEST=True \
  -e FRESHRSS_URL=http://localhost:8080 \
  -e FRESHRSS_USER=admin \
  -e INGESTTOOL=True \
  -e READERTOOL=True \
  -e SUBSCRIPTIONSTOOL=True \
  registry.example.invalid/freshrss-agent@sha256:<digest> freshrss-mcp

For containerized network HTTP, supply an authenticated TLS ingress (or direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy CIDR policy through the operator-owned deployment profile. The generator does not emit an unauthenticated non-loopback listener.

Auto-generated from the code-read env surface (MCP_TOOL_MODE + package vars) — do not edit.

Additional Deployment Options

freshrss-agent can also run as a local container (Docker / Podman / uv) or be consumed from a remote deployment. The Deployment guide has full, copy-paste mcp_config.json for all four transports — stdio, streamable-http, local container / uv, and remote URL:

  • Local container / uv — launch the server from mcp_config.json via uvx, docker run, or podman run, or point at a local streamable-http container by url.

  • Remote URL — connect to a server deployed behind Caddy at https://freshrss-mcp.example.invalid/mcp using the "url" key.


Usage

Each operation is its own typed tool, for example freshrss_stream_contents(count=50, order="n"), freshrss_subscribe(feed_url=..., category="News") and freshrss_mark_read(item_ids=[...]).

Invoking a tool with an unknown or omitted action returns the discovery payload listing every valid action for that domain.


Installation

Pick the extra that matches what the operator want to run:

Extra

Installs

Use when

freshrss-agent[mcp]

Slim MCP server only (scion-sdk — FastMCP/FastAPI)

The operator only run the MCP server (smallest install / image)

freshrss-agent[all]

Everything (mcp + agent + logfire)

Development / both surfaces

# MCP server only (recommended for tool hosting — slim deps)
uv pip install "freshrss-agent[mcp]"

# Everything (development)
uv pip install "freshrss-agent[all]"      # or: python -m pip install "freshrss-agent[all]"

After installation two console scripts are available:

freshrss-mcp      # run the MCP server

Container images (:mcp)

One multi-stage docker/Dockerfile builds the MCP-only image (--target mcp):

Image tag

Build target

Contents

Entrypoint

agent (:2.3.4) with a co-located :mcp sidecar.

Knowledge-graph database (medulla)

transitively via scion-sdk). For production — or to share one knowledge graph across multiple agents — run medulla as its own database container and point the agent at it instead of embedding it. Deployment recipes (single-node + Raft HA), connection config, and the full database architecture (with diagrams) are documented in the medulla deployment guide. The slim [mcp] server does not require the database.


Documentation

Full installation, deployment, usage, and platform-provisioning guides live in the docs/ directory and are published via mkdocs + GitHub Pages at the official documentation site:


Repository Owners

GitHub followers GitHub User's stars


Contribute

Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:

  • Format code using ruff format .

  • Lint code using ruff check .

  • Validate type-safety with mypy .

  • Run test suites using pytest

Deploy with agent-os-genesis

This package can be provisioned for you — skill-guided — by the agent-os-genesis universal skill (its single-package deploy mode): it picks your install method, seeds secrets to OpenBao/Vault (or .env), trusts your enterprise CA, registers the MCP server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed to just this package. Ask your agent to "deploy freshrss-agent with agent-os-genesis".

Install mode

Command

Bare-metal, prod (PyPI)

uvx freshrss-mcp · or uv tool install freshrss-agent

Bare-metal, dev (editable)

uv pip install -e ".[all]" · or pip install -e ".[all]"

Container, dev (editable)

deploy docker/compose.dev.yml (source-mounted at /src; edits live on restart)

Secrets are read-existing + seeded via vault_sync — you are only prompted for what's missing.

Governed capability contract

This package ships a compact canonical skill surface with specialist procedures kept as referenced workflows. The current MCP tools, skill metadata, connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations, tool-schema fingerprints, and certification metadata form one versioned capability contract. Validate them together; do not rely on stale tool names or historical per-task skill wrappers.

Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.

Available Tools

12 tools
freshrss_categoriesCategoriesB
Read-onlyIdempotent

List categories / tags (tag/list).

Inputs: no named parameters. Returns: object

freshrss_ingest_itemsFreshrss Ingest ItemsA

Natively ingest FreshRSS feed items into medulla as :Document nodes.

Fetches a stream via the GReader API and pushes the items (title + body + source_uri + originating feed) into the knowledge graph via the fast engine client. Best-effort: returns {"ingested": None} when no engine is reachable. CONCEPT:AU-KG.ingest.enterprise-source-extractor.

Inputs: params_json. Returns: object

freshrss_ingest_subscriptionsFreshrss Ingest SubscriptionsA

Natively ingest FreshRSS subscriptions into medulla as typed nodes.

Lists feed subscriptions via the GReader API and pushes them as :FeedSubscription nodes with their :FeedCategory folders and :inCategory links. Best-effort: returns {"ingested": None} when no engine is reachable. CONCEPT:AU-KG.ingest.enterprise-source-extractor.

Inputs: params_json. Returns: object

freshrss_item_contentsItem contentsB

Fetch full contents for specific item ids (GReader i parameters).

Inputs: item_ids (required). Returns: object

freshrss_labelLabelC

Add a category label to an existing feed subscription.

Inputs: category (required), feed_url (required). Returns: object

freshrss_mark_readMark readC

Mark one or more items as read.

Inputs: item_ids (required). Returns: object

freshrss_starStarC

Star or unstar an item.

Inputs: item_id (required), starred. Returns: object

freshrss_stream_contentsStream contentsA
Read-onlyIdempotent

Fetch items for a stream.

stream_id is a GReader stream id (e.g. user/-/state/com.google/reading-list for all items, feed/<feedUrl> for one feed, or user/-/label/<category>). order is o (oldest first) or n (newest first). newer_than is a unix-seconds watermark mapped to the GReader ot parameter (exclude items older than this). continuation resumes a previous page. Returns the raw {"items": [...], "continuation": "..."} payload.

Inputs: count, order, stream_id, newer_than, +1 more. Returns: object

freshrss_subscribeSubscribeA

Subscribe to a feed, optionally setting its title and category.

FreshRSS fetches the feed before it answers, so a slow origin ends in a gateway timeout while the subscription still completes. The result is confirmed against the subscription list. Subscribing twice returns already_subscribed.

Inputs: feed_url (required), title, category. Returns: object

freshrss_subscription_listSubscription listB
Read-onlyIdempotent

List all feed subscriptions.

Inputs: no named parameters. Returns: object

freshrss_unread_countUnread countB
Read-onlyIdempotent

Return unread counts per stream.

Inputs: no named parameters. Returns: object

freshrss_unsubscribeUnsubscribeA

Unsubscribe from a feed given its URL or its feed/<n> id.

Returns not_subscribed when the feed is not in the subscription list.

Inputs: feed_url (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool maps to a distinct FreshRSS operation or resource: subscription lifecycle, stream/item retrieval, item state, categories/labels, and knowledge-graph ingestion. The two ingest tools and two content-fetch tools are clearly separated by destination (KG vs caller) and scope (stream vs item ids), so boundaries are easy to infer.

    Naming Consistency4/5

    All names share the freshrss_ prefix and snake_case formatting, making them predictable and easily scannable. Most are verb_noun, but categories, subscription_list, unread_count, item_contents, and stream_contents are noun phrases, so the pattern is not perfectly uniform.

    Tool Count5/5

    The set has 12 tools, which is well within a reasonable range for a FreshRSS client. Each tool appears to earn its place by covering a concrete operation rather than adding speculative surface area.

    Completeness4/5

    Core workflows are covered: subscribe/unsubscribe/list subscriptions, fetch streams/items/unread counts, mark read, star, manage categories/labels, and ingest into the knowledge graph. Minor gaps exist around mark-unread, removing labels, search, and editing an existing subscription, but agents can mostly work around these.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers