Skip to main content
Glama

MCP RSS

MCP RSS 是一个用于与 RSS 提要交互的模型上下文协议 (MCP) 服务器。

特征

  • 解析 OPML 文件以导入 RSS 订阅

  • 自动从 RSS 源获取和更新文章

  • 通过 MCP API 公开 RSS 内容

  • 将文章标记为收藏

  • 按来源和状态过滤文章

Related MCP server: freshrss-mcp-server

安装

先决条件

  • Node.js(v14 或更高版本)

  • MySQL 数据库

安装 MySQL

$ docker run -itd --name mysql-test -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql

安装 MCP

此 MCP 使用 stdio 进行通信。命令中填写npx mcp_rss ,环境变量中填写需要自定义的配置,至少使用自己的 opml 文件。

在克劳德桌面中使用

{
  "key": "rss",
  "command": "npx",
  "args": [
    "mcp_rss"
  ],
  "env": {
    "OPML_FILE_PATH": "/Users/guyanhua/feeds.opml"
  }
}

配置

设置以下环境变量来配置 MCP RSS:

配置选项

选项

描述

默认值

DB_HOST

数据库主机

本地主机

数据库端口

数据库端口

3306

DB_用户名

数据库用户名

数据库密码

数据库密码

123456

数据库

数据库名称

mcp_rss

OPML_FILE_PATH

包含 RSS 源的 OPML 文件的路径

“./feeds.opml”

RSS更新间隔

获取 RSS 更新的间隔(分钟)

1

MCP API 参考

MCP RSS 服务器公开以下 API 方法:

获取内容

从订阅的 RSS 源中获取文章。

参数:

范围

类型

描述

必需的

地位

细绳

按文章状态过滤(“正常”或“收藏”)

来源

细绳

按来源(提要标题)过滤

限制

数字

返回的最大文章数

否(默认值:10)

回复:

{
  "articles": [
    {
      "id": 1,
      "title": "Article Title",
      "content": "Article content...",
      "link": "https://example.com/article",
      "pubDate": "2023-01-01T12:00:00Z",
      "fetchDate": "2023-01-01T12:30:00Z",
      "status": "normal",
      "feedTitle": "Example Feed",
      "feedCategory": "Technology"
    }
  ],
  "success": true
}

获取源

获取所有可用的 RSS 提要源。

**参数:**

回复:

{
  "sources": [
    {
      "id": 1,
      "title": "Example Feed",
      "category": "Technology"
    }
  ],
  "success": true
}

设置标签

设置文章的状态(正常或收藏)。

参数:

范围

类型

描述

必需的

地位

细绳

文章状态(“正常”或“收藏”)

是的

文章编号

数字

需要更新的文章ID

是的

回复:

{
  "success": true,
  "message": "Article 1 status has been updated to favorite"
}

执照

麻省理工学院

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    MCP server for fetching, parsing, and managing RSS feeds. Features Fetch and parse RSS/Atom feeds In-memory caching with TTL Batch fetching of multiple feeds Monitor feeds for new items Search content across multiple feeds Extract and format feed content
    6
    43 npm
    12
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server for managing and querying RSS/news feeds, enabling real-time fetching, searching, and retrieval of feed items.
    5
    7 npm
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Secure MCP server for RSS/Atom feed reading with SQLite backend. Enables feed management, entry search, and OPML import/export.
    17
    AGPL 3.0