mcp-rss

by buhe

Integrations

  • Uses MySQL as the database backend for storing and managing RSS feed data, articles, and user preferences.

  • Provides tools for parsing and interacting with RSS feeds, including importing subscriptions from OPML files, automatically fetching and updating articles, filtering content by source and status, and marking articles as favorites.

MCP RSS

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

特征

  • 解析 OPML 文件以导入 RSS 订阅
  • 自动从 RSS 源获取和更新文章
  • 通过 MCP API 公开 RSS 内容
  • 将文章标记为收藏
  • 按来源和状态过滤文章

安装

先决条件

  • 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" }

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

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

  1. Features
    1. Installation
      1. Prerequisites
      2. Setup MySQL
      3. Install MCP
    2. Configuration
      1. Configuration Options
    3. MCP API Reference
      1. get_content
      2. get_sources
      3. set_tag
    4. License
      ID: h241s0f6y5