Skip to main content

FreshRSS API + MCP Server + A2A Server

Project description

FreshRSS

CLI or API | MCP | Agent

PyPI - Version MCP Server PyPI - Downloads GitHub Repo stars PyPI - License GitHub last commit (by committer)

Version: 0.1.0

Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, the integrated A2A agent server, and guidance for provisioning the backing platform are maintained in the official documentation.


Table of Contents


Overview

FreshRSS MCP Server + A2A Agent

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

  • freshrss_readerstream_contents (feed items + continuation), item_contents, unread_count.
  • freshrss_subscriptionslist, subscribe, unsubscribe, label, categories, mark_read, 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.
  • Integrated A2A Agent: Built-in Pydantic AI agent server alongside the MCP server.
  • Native Telemetry & Tracing: Out-of-the-box OpenTelemetry exports and Langfuse tracing.

MCP

Available MCP Tools

This server uses dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility. Each tool takes an action plus a params_json payload.

Tool Module Toggle Env Var Enabled by Default Description & Action-Routed Methods
Reader READERTOOL True Read FreshRSS streams via the GReader API. Action-routed methods: stream_contents, item_contents, unread_count.
Subscriptions SUBSCRIPTIONSTOOL True Curate feeds, categories, and item tags. Action-routed methods: list, subscribe, unsubscribe, label, categories, mark_read, star.

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

Environment Variables

The MCP Server can be run in stdio (local), streamable-http (networked), or sse mode.

  • FRESHRSS_URL: The base URL of the FreshRSS instance (e.g. http://freshrss.arpa).
  • FRESHRSS_USER: The FreshRSS username (GReader Email field).
  • FRESHRSS_API_PASSWORD: The FreshRSS API password (Settings → Authentication).
  • FRESHRSS_SSL_VERIFY: Whether to verify TLS certificates (default True).

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

{
  "mcpServers": {
    "freshrss-mcp": {
      "command": "uvx",
      "args": ["--from", "freshrss-agent", "freshrss-mcp"],
      "env": {
        "FRESHRSS_URL": "https://service.example.com",
        "FRESHRSS_USER": "admin",
        "FRESHRSS_API_PASSWORD": "your_api_password"
      }
    }
  }
}

Streamable-HTTP Transport (networked / production)

{
  "mcpServers": {
    "freshrss-mcp": {
      "command": "uvx",
      "args": ["--from", "freshrss-agent", "freshrss-mcp", "--transport", "streamable-http", "--port", "8000"],
      "env": {
        "TRANSPORT": "streamable-http",
        "HOST": "0.0.0.0",
        "PORT": "8000",
        "FRESHRSS_URL": "https://service.example.com",
        "FRESHRSS_USER": "admin",
        "FRESHRSS_API_PASSWORD": "your_api_password"
      }
    }
  }
}

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 http://freshrss-mcp.arpa/mcp using the "url" key.

Usage

Once configured, an LLM (or a direct caller) invokes a tool domain with an action and a JSON params_json payload. Examples:

// Fetch the 50 most recent unread items, newest first
{
  "tool": "freshrss_reader",
  "action": "stream_contents",
  "params_json": "{\"count\": 50, \"order\": \"n\"}"
}

// Subscribe to a feed and file it under a category
{
  "tool": "freshrss_subscriptions",
  "action": "subscribe",
  "params_json": "{\"feed_url\": \"http://example.com/rss\", \"category\": \"News\"}"
}

// Mark items as read
{
  "tool": "freshrss_subscriptions",
  "action": "mark_read",
  "params_json": "{\"item_ids\": [\"tag:google.com,2005:reader/item/0001\"]}"
}

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

Installation

# Using uv (recommended)
uv pip install freshrss-agent

# Using standard pip
python -m pip install freshrss-agent

After installation two console scripts are available:

freshrss-mcp      # run the MCP server
freshrss-agent    # run the A2A agent server

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freshrss_agent-0.1.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freshrss_agent-0.1.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file freshrss_agent-0.1.0.tar.gz.

File metadata

  • Download URL: freshrss_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for freshrss_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 014ae8d29c22520fbd5dbce2f3cc0f3aeb3beba692e4eaeb4e7c5694f6a31efb
MD5 6154e67dd4dd11c7359b2f06aade9ba8
BLAKE2b-256 904bd623b1e1a74895313c6cdb08f9ddd7f28628326af09485afecb6b87ea91e

See more details on using hashes here.

File details

Details for the file freshrss_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: freshrss_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for freshrss_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cce4907613b52741d8bf4491167a1a934cf727cdbc21ed9dc86652126603dbe
MD5 e9575bde87d7dfd7c68375553c2cc7be
BLAKE2b-256 eeb801a4ae8c702048792ea4163deb13393093f790368481621aa2d4558c3bde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page