pozansky/news-mcp-server
3.1
If you are the rightful owner of news-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The News MCP Server is designed to fetch and search news articles using the MCP protocol, offering features like hot news retrieval and news search.
News MCP Server
基于MCP协议的新闻获取服务器,支持热点新闻获取和新闻搜索功能。
功能特性
- 🔥 获取热点新闻(多个分类)
- 🔍 搜索新闻
- 🌐 RESTful API 接口
- 🐳 Docker 容器化部署
- 📊 健康检查
API接口
健康检查
GET /health
获取新闻分类
GET /news/categories
获取热点新闻
GET /news/hot?category=general&limit=10
搜索新闻
GET /news/search?keyword=科技&limit=10
MCP接口
/mcp
本地测试
- 安装依赖:
pip install -r requirements.txt
运行测试:
bash
python src/mcp_server.py
启动服务器:
bash
python app.py