npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@max1ab/rss-news

v0.1.0

Published

MCP server for incremental RSS news fetching with SQLite-backed read state.

Downloads

56

Readme

RSS News MCP

 ____  ____ ____    _   _                     __  __  ____ ____  
|  _ \/ ___/ ___|  | \ | | _____      _____  |  \/  |/ ___|  _ \ 
| |_) \___ \___ \  |  \| |/ _ \ \ /\ / / __| | |\/| | |   | |_) |
|  _ < ___) |__) | | |\  |  __/\ V  V /\__ \ | |  | | |___|  __/ 
|_| \_\____/____/  |_| \_|\___| \_/\_/ |___/ |_|  |_|\____|_|    
                                                                

Node.js + TypeScript MCP server for RSS news ingestion with incremental delivery.

Features

  • Fetch RSS/Atom feeds with conditional requests (ETag / Last-Modified)
  • Support rsshub:// protocol with automatic instance fallback
  • Persist feed state and entries in SQLite
  • Return only undelivered items to the agent
  • Deduplicate entries using a stable entry_uid

Quick Start

npm install
npm run build
npm start

Development:

npm run dev

Run tests:

npm test

Environment Variables

  • RSS_MCP_DB_PATH: SQLite path (default: <project-root>/data/rss.sqlite)
  • RSS_MCP_REQUEST_TIMEOUT_MS: fetch timeout in milliseconds (default: 15000)
  • RSS_MCP_DEFAULT_LIMIT_PER_FEED: default return limit per feed (default: 20)
  • RSS_MCP_MAX_FEEDS_PER_REQUEST: max feed count for each call (default: 50)
  • RSS_MCP_USER_AGENT: custom request User-Agent
  • RSS_MCP_DEBUG: set 1 or true to enable debug logs
  • RSS_MCP_DEBUG_PREVIEW_LENGTH: preview length of response body for debug (default: 300)

MCP Tool

update_news

Fetch configured feeds and update local entries/feeds state.

Input:

{
  "feedUrls": ["https://example.com/rss.xml", "rsshub://deeplearning/the-batch"]
}

Output:

  • ok: whether tool call completed
  • resolvedFeedUrls: actual feed list used by this call
  • summary: aggregate update stats (feedsTotal, successFeeds, errorFeeds, fetchedTotal, insertedTotal, skipped304Feeds)
  • errors: per-feed error list (feedUrl, message)
  • updatedAt: ISO timestamp

fetch_latest_news

Input:

{
  "feedUrls": ["https://example.com/rss.xml", "rsshub://deeplearning/the-batch"],
  "limit": 20,
  "sinceMinutes": 120,
  "includeDelivered": false,
  "markAsRead": true
}

Output:

  • items: globally latest news sorted by timestamp (across all selected feeds)
  • includeDelivered: when true, return all news in time window
  • markAsRead: when false, do not mark fetched undelivered items as read
  • resolvedFeedUrls: actual feed list used by this call
  • limit: global result limit (not per feed)

Notes:

  • feedUrls is now optional. If omitted, server uses all known RSS sources from the database.
  • Default mode is includeDelivered: false (only undelivered news).
  • Default mode is markAsRead: true (fetched undelivered items are marked read/delivered).
  • fetch_latest_news no longer pulls remote RSS by itself; call update_news first to refresh data.

get_news_count

Count news in the past N hours.

Input:

{
  "pastHours": 24,
  "includeDelivered": false,
  "feedUrls": ["https://example.com/rss.xml"]
}

Output fields:

  • countType: undelivered or all
  • totalCount: summed count
  • countsByFeed: per-feed count map

set_read_status_by_time_range

Set read/unread status in a date range.

Input:

{
  "startDate": "2026-02-20",
  "endDate": "2026-02-23",
  "status": "read",
  "feedUrls": ["https://example.com/rss.xml"]
}

Behavior:

  • status: "read": mark matched entries as read (insert into deliveries)
  • status: "unread": mark matched entries as unread (delete from deliveries)

MCP Config Example

Add this server to your MCP config:

{
  "mcpServers": {
    "rss-news": {
      "command": "npx",
      "args": ["-y", "@max1ab/rss-news"]
    }
  }
}

If you want to keep the SQLite file in a custom location:

RSS_MCP_DB_PATH=/ABSOLUTE/PATH/rss-news/data/rss.sqlite npx -y @max1ab/rss-news

Incremental Delivery Model

  • Database file is created lazily on first repository usage if it does not exist.
  • entries: stores fetched entries (feed_url + entry_uid is unique)
  • deliveries: stores which entries were already returned to agent
  • Tool returns only entries not present in deliveries, then marks them delivered