OpenGathyr
An MCP server that enables managing and searching RSS feeds using tools like list, add, remove, get-feed, and search-feeds.
README
OpenGathyr
<img src="logo.svg" alt="OpenGathyr Logo" align="right" width="200" />
An open-source Model Context Protocol (MCP) server powered by RSS feeds.
What is OpenGathyr?
OpenGathyr transforms how you manage content feeds by providing a centralized hub that collects, processes, and distributes RSS/Atom feeds. Unlike traditional aggregators, OpenGathyr functions as a complete Model Context Protocol (MCP) server for your feed ecosystem.
Key Features
- MCP Tools Integration: Expose RSS feed functionality through standardized Model Context Protocol tools
- Automated Feed Refreshing: Configurable periodic fetching of RSS feeds to ensure fresh content
- Content Search: Search across all RSS feeds with a unified query interface
- Feed Management: Add, remove, and list RSS feeds dynamically
- Environment Configuration: Easy setup using environment variables for feed sources and settings
- Docker Ready: Containerized deployment support for both local and production environments
- Modular Architecture: Cleanly separated components for easier maintenance and extensibility
Getting Started
Prerequisites
- Node.js 22.x or higher
- npm 7.x or higher
- Docker (optional, for containerized deployment)
Installation
- Clone the repository:
git clone https://github.com/yourusername/opengathyr.git
cd opengathyr
- Install dependencies:
npm install
-
Create a
.envfile with your configuration (see Configuration section) -
Build the project:
npm run build
- Start the server:
npm start
For development with auto-reload:
npm run dev
Docker Deployment
To run the server in a Docker container:
# Build the Docker image
docker build -t opengathyr .
# Run the container
docker run -it opengathyr
Configuration
The server can be configured using environment variables:
MCP_SERVER_NAME: Name of the MCP serverMCP_SERVER_VERSION: Version of the MCP serverRSS_FEED_URL_1,RSS_FEED_URL_2, etc.: Individual RSS feed URLs (one URL per variable)RSS_REFRESH_INTERVAL: Refresh interval in milliseconds (default: 300000 = 5 minutes)RSS_MAX_ITEMS: Maximum number of items to keep per feed (default: 20)
Example .env file
MCP_SERVER_NAME=opengathyr
MCP_SERVER_VERSION=1.0.0
# RSS Feed URLs - one per line
RSS_FEED_URL_1=https://news.google.com/rss
RSS_FEED_URL_2=https://example.com/feed.xml
RSS_FEED_URL_3=https://another-site.org/rss
RSS_REFRESH_INTERVAL=300000
RSS_MAX_ITEMS=20
Available MCP Tools
get-feed
Retrieves the content from a specific feed.
Parameters:
feedName: Name of the feed to retrieve
search-feeds
Searches across all configured feeds for matching content.
Parameters:
query: Search term to look for in feed titles and content
list-feeds
Lists all currently configured feeds and their details.
Parameters: None
add-feed
Adds a new RSS feed to be monitored.
Parameters:
name: Identifier for the feedurl: URL of the RSS feedrefreshInterval(optional): Refresh interval in millisecondsmaxItems(optional): Maximum number of items to keep
remove-feed
Removes an RSS feed from monitoring.
Parameters:
feedName: Name of the feed to remove
Using with VS Code
GitHub Copilot Integration
To use OpenGathyr with GitHub Copilot in VS Code, you need to configure it as an MCP server in your Copilot settings.
Setup Steps
-
Build the MCP Server:
npm run build -
Configure Copilot MCP Settings:
Create or edit your Copilot configuration file. The location depends on your VS Code setup:
- Windows:
%APPDATA%\Code\User\globalStorage\github.copilot-chat\mcpServers.json - macOS:
~/Library/Application Support/Code/User/globalStorage/github.copilot-chat/mcpServers.json - Linux:
~/.config/Code/User/globalStorage/github.copilot-chat/mcpServers.json
Add your OpenGathyr server configuration:
{ "mcpServers": { "opengathyr": { "command": "node", "args": ["dist/index.js"], "cwd": "a:\\OpenGathyr", "env": { "MCP_SERVER_NAME": "opengathyr", "MCP_SERVER_VERSION": "1.0.0", "RSS_FEED_URL_1": "https://news.google.com/rss", "RSS_FEED_URL_2": "https://feeds.bbci.co.uk/news/rss.xml", "RSS_REFRESH_INTERVAL": "300000", "RSS_MAX_ITEMS": "20" } } } } - Windows:
-
Restart VS Code to apply the configuration changes.
-
Verify Connection:
Open GitHub Copilot Chat and try using the RSS feed tools:
@opengathyr list-feeds @opengathyr get-feed news @opengathyr search-feeds "technology"
Available Commands in Copilot Chat
Once configured, you can use these commands in GitHub Copilot Chat:
@opengathyr list-feeds- Lists all configured RSS feeds@opengathyr get-feed <feedName>- Gets content from a specific feed@opengathyr search-feeds <query>- Searches across all feeds@opengathyr add-feed <name> <url>- Adds a new RSS feed@opengathyr remove-feed <feedName>- Removes a feed
Example Usage
User: @opengathyr search-feeds "artificial intelligence"
Copilot: I'll search for AI-related content across your RSS feeds...
User: @opengathyr get-feed tech-news
Copilot: Here's the latest content from the tech-news feed...
Alternative: Direct MCP Client Usage
OpenGathyr includes a simple MCP client (src/client/mcp-client.ts) that can be used to interact with the MCP server for testing purposes.
Running the Client
Ensure the MCP server is not already running on the same port, then execute the client with:
npm run client
How It Works
The client:
- Spawns a new instance of the MCP server as a child process
- Sends a request to the
list-feedstool - Displays the formatted response
- Automatically terminates the server after receiving the response
Modifying the Client
You can easily modify the client to test other MCP tools:
// Change the request to use a different tool
const request = {
jsonrpc: '2.0',
id: 1,
method: 'tool',
params: {
name: 'get-feed', // Change to any of the available tools
params: {
feedName: 'example-feed' // Add required parameters for the tool
}
}
};
Available tools you can test:
list-feeds: Lists all configured feeds (no parameters needed)get-feed: Gets content from a specific feed (requiresfeedNameparameter)search-feeds: Searches across feeds (requiresqueryparameter)add-feed: Adds a new feed (requiresnameandurlparameters)remove-feed: Removes a feed (requiresfeedNameparameter)
Example for searching feeds:
const request = {
jsonrpc: '2.0',
id: 1,
method: 'tool',
params: {
name: 'search-feeds',
params: {
query: 'technology'
}
}
};
Use Cases
- AI Assistants: Integrate with LLM assistants via the Model Context Protocol to provide current news and information
- Content Aggregation: Centralize multiple RSS feeds into a single accessible interface
- News Monitoring: Track specific topics across multiple sources using the search functionality
- Headless CMS Integration: Feed dynamic content into websites and applications
- Research Tools: Collect and analyze content from multiple sources with a standardized API
Contributing
Contributions are welcome! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。