news-mcp-server
Aggregates news from multiple sources including Hacker News and RSS feeds, with caching, search, and easy configuration.
README
News MCP Server
A Model Context Protocol (MCP) server that aggregates news from multiple sources:
- Hacker News (top, best, new stories)
- RSS Feeds (configurable)
- Twitter (planned)
- Bluesky (planned)
Features
- š° Multiple news sources in one place
- š¾ SQLite caching for fast access and offline reading
- š Search across all cached items
- āļø Easy configuration via JSON
- š Automatic feed refresh
Installation
cd ~/src/news-mcp-server
npm install
npm run build
Configuration
Project-Specific Setup (Recommended)
This project includes a .claude/mcp_settings.json file that automatically enables the news MCP server when you open Claude Code in this directory.
To use:
- Open a new terminal
- Navigate to this directory:
cd ~/src/news-mcp-server - Start Claude Code in this directory
- The news MCP server will be automatically available!
Global Configuration (Optional)
If you want the news server available in all Claude Code sessions, add this to your global Claude Code MCP settings:
{
"mcpServers": {
"news": {
"command": "node",
"args": ["/Users/norm.provost/src/news-mcp-server/build/index.js"]
}
}
}
RSS Feed Configuration
Create config/feeds.json (see config/feeds.json.example for template):
{
"rss_feeds": [
{
"name": "techcrunch",
"url": "https://techcrunch.com/feed/",
"refresh_interval_minutes": 30
}
]
}
Usage
Available Resources
Access feeds directly as resources:
feed://hackernews- Hacker News top storiesfeed://rss:techcrunch- Specific RSS feedfeed://all- All sources combined
Available Tools
list_sources
List all configured feed sources.
get_feed
Fetch latest items from sources.
Parameters:
- source (optional): "hackernews", "rss:techcrunch", or "all"
- limit (optional): Max items to return (default: 30)
- hours_ago (optional): Only return items from last N hours
refresh_cache
Refresh cached data by fetching from sources.
Parameters:
- source (optional): Specific source to refresh, or all if not specified
search_all
Search across all cached items.
Parameters:
- query (required): Search query
- limit (optional): Max results (default: 50)
add_rss_feed
Add a new RSS feed source.
Parameters:
- name (required): Feed name (e.g., "techcrunch")
- url (required): RSS feed URL
remove_rss_feed
Remove an RSS feed source.
Parameters:
- name (required): Feed name to remove
Examples
In Claude Code
# Refresh Hacker News cache and read it
refresh_cache with source=hackernews
get_feed with source=hackernews limit=10
# Add a new RSS feed
add_rss_feed with name=arstechnica url=https://feeds.arstechnica.com/arstechnica/index
# Search for AI-related articles
search_all with query=AI limit=20
# Get recent items from all sources
get_feed with source=all hours_ago=24
Database
Feed items are cached in cache.db (SQLite). Old items are automatically cleaned after 7 days.
Development
# Build
npm run build
# Watch mode for development
npm run watch
Future Enhancements
- [ ] Twitter integration (requires API key)
- [ ] Bluesky AT Protocol integration
- [ ] Automatic periodic refresh
- [ ] Custom filters and rules
- [ ] Export functionality
- [ ] Web interface for configuration
Architecture
src/
āāā index.ts # Main MCP server
āāā types.ts # TypeScript types
āāā sources/
ā āāā base.ts # Source interface
ā āāā hackernews.ts # Hacker News API
ā āāā rss.ts # RSS parser
āāā storage/
āāā database.ts # SQLite operations
āāā config.ts # Feed configuration
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.