本项目是一个快速MCP服务器,借助 NewsAPI.org 服务来提供新闻文章。它公开了 get_news()
工具,可依据搜索查询、日期范围和新闻来源获取新闻。
本服务器借助 NewsAPI.org 服务获取新闻文章,公开了 get_news()
工具用于获取新闻。
q
) 搜索新闻文章。from
, to
) 过滤新闻。sources
) 进行筛选, 默认为 abc-news
。从 NewsAPI.org 获取 API Key。
在你的 claude_desktop_config.json
中添加以下内容:
{
"mcpServers": {
"news": {
"command": "uv",
"args": [
"--directory",
"/PATH/TO/YOUR/news",
"run",
"news.py"
]
}
}
}