MCP News Server
Fetches news from trusted global sources using NewsAPI and RSS feeds, enabling search, headline retrieval, and source listing.
README
MCP News Server
A Model Context Protocol (MCP) server that fetches news from trusted global sources.
🗞️ Supported News Sources
| Source | ID |
|---|---|
| Reuters | reuters |
| BBC News | bbc |
| Associated Press | associated-press |
| Al Jazeera | al-jazeera |
| The Hindu | the-hindu |
| Times of India | times-of-india |
| CNN | cnn |
| The Guardian | the-guardian |
| New York Times | nytimes |
| Washington Post | washington-post |
🛠️ Available Tools
1. search_news
Search for news articles by keywords.
Keywords: "iran israel" or "climate change"
Sources: Optional filter (e.g., ["reuters", "bbc"])
Max Results: Up to 25 articles
2. get_top_headlines
Get latest headlines from trusted sources.
3. list_news_sources
List all available news sources.
📦 Installation
Step 1: Install Dependencies
cd mcp-news-server
pip install -r requirements.txt
Step 2: Get NewsAPI Key (Recommended)
- Go to https://newsapi.org/register
- Sign up for a free account
- Copy your API key
Step 3: Configure API Key
# Copy example env file
copy .env.example .env
# Edit .env and add your API key
NEWS_API_KEY=your_actual_api_key
Note: The server works without an API key using RSS feeds, but NewsAPI provides better search results.
⚙️ Configuration for VS Code (Copilot)
Add this to your VS Code settings.json:
{
"mcp": {
"servers": {
"news-server": {
"command": "python",
"args": ["c:\\Users\\om.katyarmal.NEUREALM\\Desktop\\New folder (5)\\mcp-news-server\\server.py"],
"env": {
"NEWS_API_KEY": "your_api_key_here"
}
}
}
}
}
⚙️ Configuration for Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"news-server": {
"command": "python",
"args": ["c:\\Users\\om.katyarmal.NEUREALM\\Desktop\\New folder (5)\\mcp-news-server\\server.py"],
"env": {
"NEWS_API_KEY": "your_api_key_here"
}
}
}
}
🚀 Usage Examples
Once configured, you can use these tools in your conversations:
Search for specific news:
"Search news about iran israel conflict"
Get headlines from specific sources:
"Get top headlines from reuters and bbc"
List available sources:
"What news sources are available?"
🔄 How It Works
- Primary Method: Uses NewsAPI.org for comprehensive search across sources
- Fallback Method: If NewsAPI is unavailable, fetches from RSS feeds directly
The server automatically filters results from only trusted, reputable news sources.
📝 License
MIT License - Free to use and modify.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。