使用说明
RSS MCP服务器
用于RSS源管理和分析的模型上下文协议(MCP)服务器。此服务器提供用于发现、解析、过滤和分析RSS提要的工具。
我一直很喜欢了解科学技术的最新消息和发展,我很好奇用法学硕士来探索这些信息会是什么样子。与其让模型进行广泛的、自定义的网络搜索,我想让它访问我已经关注的经过精心策划、值得信赖的RSS源。
这个项目是我尝试这个想法的方式:使用结构化、高质量的输入来帮助法学硕士总结、分析和突出可靠来源的新兴趋势。
我如何使用它
以下是配置MCP服务器后,您可以在Claude Desktop中使用的一些示例提示(如下所述):
Find the top RSS feeds that publish technology / scientific papers using the web and then use those feeds to get me the top 5 emerging technology breakthroughs in the last week. Give me a short summary and cite your sources.
What are the top trending technology topics this week from various feeds? Cite your sources.
Get top stories from Google News in the last hour. Cite your sources.
通过将精心策划的RSS数据与LLM相结合,这种设置可以生成更透明、更有针对性的摘要——这是一种更清晰的方式,可以在保持对信息来源的控制的同时保持知情。
特性
- 饲料发现:浏览来自不同来源的预定义RSS源
- 提要解析:解析任何RSS提要URL并提取内容
- 内容过滤:按关键字、发布日期或类别筛选文章
- 饲料验证:检查RSS URL是否可访问且有效
- 元数据访问:获取可用的出版物和类别
安装
-
克隆存储库:
git clone <repository-url> cd rss-mcp -
安装依赖项:
# Using uv (recommended) uv sync # Or using pip pip install -r requirements.txt -
测试服务器:
# Using uv uv run python -m src.server # Or using python directly python -m src/server.py
使用Claude Desktop进行设置
1.配置克劳德桌面
将RSS MCP服务器添加到您的Claude Desktop配置中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
视窗: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"rss-feed": {
"command": "uv",
"args": ["run", "python", "/absolute/path/to/rss-mcp/src/server.py"],
"env": {}
}
}
}
备注:替换
/absolute/path/to/rss-mcp带有项目目录的实际路径。
2.替代设置(无紫外线)
如果你不使用 uv,你可以直接用Python运行:
{
"mcpServers": {
"rss-feed": {
"command": "python",
"args": ["/absolute/path/to/rss-mcp/src/server.py"],
"env": {}
}
}
}
3.重新启动克劳德桌面
更新配置后,重新启动Claude Desktop以加载MCP服务器。
可用工具
RSS MCP服务器提供7个工具:
| 工具 | 说明 |
|---|---|
get_feeds |
通过可选的类别筛选获取所有可用的RSS源 |
parse_feed |
解析任何RSS源URL并返回结构化内容 |
validate_feed_url |
检查RSS源URL是否有效且可访问 |
get_feed_categories |
从预定义提要中获取所有可用类别 |
get_publications |
获取所有可用的出版物名称 |
get_recent_entries |
按发布时间(过去N小时)筛选提要条目 |
filter_entries_by_keywords |
按关键字筛选条目(包括/排除) |
发展
项目结构
rss-mcp/
├── src/
│ ├── feed/
│ │ ├── base.py # Core Feed class and parsing logic
│ │ ├── constants.py # Predefined RSS feeds
│ │ ├── models.py # Pydantic data models
│ │ └── google.py # Google News specific implementation
│ ├── tools.py # MCP business logic functions
│ └── server.py # MCP server and tool definitions
├── pyproject.toml # Project dependencies
└── README.md
添加新订阅源
要添加新的RSS源,请编辑 src/feed/constants.py:
Feed(
publication="New Source",
category="Technology",
url="https://newsource.com/rss.xml",
),