技术新闻简报服务

一个通过MCP服务器获取最新技术新闻并生成简洁晨报的服务,适用于前端/Vue.js/WordPress开发者。

  • by ChrisGibe
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 ChrisGibe/mcp-morning-tech-news

使用说明

晨报-MCP服务器

MCP(模型上下文协议)服务器,用于获取最新的技术新闻并生成简洁的早间简报。与官方合作建造 @modelcontextprotocol/sdk.

特性

  • 工具: get_morning_news --从技术来源(目前是Anthropic)中抓取最新文章,并返回一个包含标题、日期、网址和摘要的格式化列表。
  • 提示: morning_tech_brief --预构建的提示,调用该工具并将结果格式化为面向前端/WordPress/Vue.js开发人员的结构化早间简报。
  • 具有类型的可扩展架构 NewsSource 界面——易于添加新源。

项目结构

src/
├── index.ts                  # MCP server entry point (tool + prompt registration)
├── types.ts                  # NewsArticle & NewsSource interfaces
├── tools/
│   └── get_morning_news.ts   # Aggregates news from all sources
└── sources/
    ├── anthropic.ts          # Scrapes anthropic.com/news using Cheerio
    └── openai.ts             # Scrapes openai.com/news using Cheerio

先决条件

  • Node.js >= 18

在Claude桌面中配置

将服务器添加到Claude Desktop配置文件中(claude_desktop_config.json):

{
  "mcpServers": {
    "morning-tech-news": {
      "command": "npx",
      "args": ["-y", "mcp-morning-tech-news"]
    }
  }
}

然后重新启动Claude Desktop。您现在可以:

  1. 使用 get_morning_news 获取原始科技新闻的工具。
  2. 使用 morning_tech_brief 提示获取格式化的每日简报。

技术栈

  • TypeScript --严格模式,ES2022目标
  • @模型上下文协议/sdk --MCP服务器框架
  • 再见 --HTML解析/网页抓取

许可证

麻省理工学院