article
README
🚀 新闻 MCP 服务器
本项目是一个快速MCP服务器,借助 NewsAPI.org 服务来提供新闻文章。它公开了 get_news() 工具,可依据搜索查询、日期范围和新闻来源获取新闻。
🚀 快速开始
本服务器借助 NewsAPI.org 服务获取新闻文章,公开了 get_news() 工具用于获取新闻。
✨ 主要特性
- 可根据 关键词 (
q) 搜索新闻文章。 - 能依据 日期范围 (
from,to) 过滤新闻。 - 可按照特定的 新闻来源 (
sources) 进行筛选, 默认为abc-news。
📦 安装指南
从 NewsAPI.org 获取 API Key。
使用与 Claude Desktop 结合
在你的 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"news": {
"command": "uv",
"args": [
"--directory",
"/PATH/TO/YOUR/news",
"run",
"news.py"
]
}
}
}
Scan to join WeChat group