
News MCP Server
A smart news search server that automatically switches between multiple news APIs when one reaches its limit, enabling reliable searching across 20+ languages without worrying about API quotas.
Tools
search_news
Search for news articles using multiple news APIs with automatic failover. The system intelligently switches between different news APIs when one reaches its limit or fails.
README
📰 News MCP Server
A smart news search MCP (Model Context Protocol) server with automatic API switching for reliable news fetching. Never worry about API limits again!
<a href="https://glama.ai/mcp/servers/@guangxiangdebizi/news-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@guangxiangdebizi/news-mcp/badge" alt="News Server MCP server" /> </a>
✨ Features
- 🔄 Smart API Switching: Automatically switches between multiple news APIs when one reaches its limit
- 🆓 Multiple Free APIs: Supports 5+ free news APIs with generous daily quotas
- 📊 Quota Management: Intelligent tracking of daily API usage limits
- 🌍 Multi-language Support: Search news in 20+ languages
- ⚡ Fast & Reliable: Failover mechanism ensures you always get results
- 🛠️ Easy Setup: Simple configuration with environment variables
🚀 Quick Start
1. Installation
# Clone the repository
git clone https://github.com/guangxiangdebizi/news-mcp.git
cd news-mcp
# Install dependencies
npm install
# Copy environment template
cp .env.example .env
2. API Configuration
Get free API keys from any of these services (you only need one, but more = better reliability):
Service | Daily Limit | Sign Up Link | Priority |
---|---|---|---|
TheNewsAPI | Unlimited* | Get Key | 🥇 Highest |
NewsData.io | ~200 requests | Get Key | 🥈 High |
NewsAPI.org | 100 requests | Get Key | 🥉 Medium |
GNews | 100 requests | Get Key | 🏅 Medium |
Twingly | Trial available | Get Key | 🎖️ Low |
*Claimed unlimited for free tier
3. Configure Environment
Edit .env
file and add your API keys:
# Add at least one API key (more is better for reliability)
THE_NEWS_API_KEY=your_api_key_here
NEWSDATA_IO_KEY=your_api_key_here
NEWSAPI_ORG_KEY=your_api_key_here
GNEWS_API_KEY=your_api_key_here
TWINGLY_API_KEY=your_api_key_here
4. Build & Run
# Build the project
npm run build
# Start the MCP server
npm start
# Or run in development mode
npm run dev
🔧 Usage
With Claude Desktop
Add to your Claude Desktop configuration:
Stdio Mode (Local Development):
{
"mcpServers": {
"news-mcp": {
"command": "node",
"args": ["path/to/news-mcp/build/index.js"]
}
}
}
SSE Mode (Web Access):
# Start SSE server
npm run sse
{
"mcpServers": {
"news-mcp": {
"type": "sse",
"url": "http://localhost:3100/sse",
"timeout": 600
}
}
}
Available Tools
search_news
Search for news articles with automatic API switching.
Parameters:
query
(required): Search keywords or topicslanguage
(optional): Language code (default: "en")limit
(optional): Number of articles (1-10, default: 5)
Example:
// Search for technology news
{
"query": "artificial intelligence",
"language": "en",
"limit": 5
}
// Search for Chinese news
{
"query": "科技新闻",
"language": "zh",
"limit": 3
}
🧠 How Smart Switching Works
- Priority Order: APIs are tried in order of reliability and quota limits
- Quota Tracking: System tracks daily usage for each API
- Automatic Failover: When an API fails or reaches limit, automatically tries the next one
- Success Guarantee: Continues until successful response or all APIs exhausted
TheNewsAPI (∞) → NewsData.io (200) → NewsAPI.org (100) → GNews (100) → Twingly (50)
📊 Supported Languages
- English (en) - All APIs
- Chinese (zh) - Most APIs
- Spanish (es) - Most APIs
- French (fr) - Most APIs
- German (de) - Most APIs
- And 15+ more languages
🛠️ Development
Project Structure
src/
├── index.ts # MCP server entry point
├── config.ts # API configuration management
└── tools/
└── newsSearch.ts # Smart news search tool
Scripts
npm run build # Build TypeScript
npm run dev # Development mode with watch
npm start # Start built server
npm run sse # Start SSE server on port 3100
Adding New APIs
- Add API configuration to
src/config.ts
- Implement API-specific request logic in
src/tools/newsSearch.ts
- Add environment variable to
.env.example
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
📝 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
👨💻 Author
Xingyu Chen
- 🌐 Website: GitHub Profile
- 📧 Email: guangxiangdebizi@gmail.com
- 💼 LinkedIn: Xingyu Chen
- 📦 NPM: @xingyuchen
🙏 Acknowledgments
- Model Context Protocol for the amazing MCP framework
- All the news API providers for their generous free tiers
- The open-source community for inspiration and support
⭐ If this project helped you, please give it a star!
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.