article
README
🚀 The Verge新闻MCP服务器
The Verge新闻MCP服务器是一个强大的工具,它能从The Verge的RSS feeds获取新闻,并支持搜索功能,帮助用户快速找到所需的新闻资讯。
🚀 快速开始
安装
# 克隆仓库
git clone https://github.com/manimohans/verge-news-mcp.git
cd verge-news-mcp
# 安装依赖项
npm install
# 构建项目
npm run build
运行服务器
npm start
✨ 主要特性
- 获取今日新闻:获取今天的The Verge新闻。
- 随机选择过往新闻:随机选择过去一周的The Verge新闻。
- 关键词搜索:根据关键词搜索新闻文章。
📦 安装指南
克隆与安装依赖
# 克隆仓库
git clone https://github.com/manimohans/verge-news-mcp.git
cd verge-news-mcp
# 安装依赖项
npm install
# 构建项目
npm run build
💻 使用示例
与Claude桌面版一起使用
- 安装Claude桌面版。
- 打开你的Claude桌面版配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- 添加以下配置:
{
"mcpServers": {
"verge-news": {
"command": "node",
"args": ["/absolute/path/to/verge-news-mcp/build/index.js"]
}
}
}
- 重启Claude桌面版。
与Smithery一起使用
你也可以通过Smithery使用此MCP服务器,它允许你轻松分享和使用MCP服务器:
- 确保已安装Smithery:
npm install -g @anthropic-ai/smithery
- 要通过Smithery使用此服务器,请运行:
smithery use https://github.com/manimohans/verge-news-mcp
- 安装完成后,你可以将其与Claude或其他MCP兼容的应用程序一起使用。
可用工具
get-daily-news
获取The Verge在过去24小时内发布的最新新闻文章。 示例查询:“今天的The Verge新闻有哪些?”
get-weekly-news
获取The Verge在过去7天内发布的新闻文章。 示例查询:“显示The Verge过去一周的新闻。”
注意:此工具会从过去一周中随机选择10篇新闻,每次使用时都会提供不同的内容。
search-news
根据关键词搜索包含特定关键词的新闻文章。 参数:
keyword:要搜索的术语days(可选):回溯天数(默认:30) 示例查询:“查找The Verge关于AI的新闻文章。”
开发
# 以开发模式运行
npm run dev
📄 许可证
ISC
Scan to contact