npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-trends-hub

v1.6.2

Published

🔥 基于 Model Context Protocol (MCP) 协议的全网热点趋势一站式聚合服务

Readme

🔥 Trends Hub

smithery badge NPM Version NPM License

基于 Model Context Protocol (MCP) 协议的全网热点趋势一站式聚合服务

示例效果

✨ 特性

  • 📊 一站式聚合 - 聚合全网热点资讯,20+ 优质数据源
  • 🔄 实时更新 - 保持与源站同步的最新热点数据
  • 🧩 MCP 协议支持 - 完全兼容 Model Context Protocol,轻松集成到 AI 应用
  • 🔌 易于扩展 - 简单配置即可添加自定义 RSS 源
  • 🎨 灵活定制 - 通过环境变量轻松调整返回字段

📖 使用指南

首先需要了解 MCP 协议,然后按照以下配置添加 Trends Hub 服务

不同的 MCP 客户端实现可能有所不同,以下是一些常见的配置示例:

JSON 配置

{
  "mcpServers": {
    "trends-hub": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}

命令行配置

npx -y [email protected]

安装

使用 Smithery 安装

通过 Smithery 安装 Trends Hub,适用于 Claude Desktop 客户端:

npx -y @smithery/cli install @baranwang/mcp-trends-hub --client claude

(以下仅适用于 MCP 模型客户端)

配置环境变量

TRENDS_HUB_HIDDEN_FIELDS - 隐藏的字段列表

通过此环境变量可控制返回数据中的字段显示:

  • 作用于所有工具:{field-name},例如 cover
  • 作用于特定工具:{tool-name}:{field-name},例如 get-toutiao-trending:cover

多个配置用西文逗号分隔,例如:

{
  "mcpServers": {
    "trends-hub": {
      "command": "npx",
      "args": ["-y", "mcp-trends-hub"],
      "env": {
        "TRENDS_HUB_HIDDEN_FIELDS": "cover,get-nytimes-news:description" // 隐藏所有工具的封面返回和纽约时报新闻的描述
      }
    }
  }
}

TRENDS_HUB_CUSTOM_RSS_URL - 自定义 RSS 订阅源

Trend Hub 支持通过环境变量添加自定义 RSS 源:

{
  "mcpServers": {
    "trends-hub": {
      "command": "npx",
      "args": ["-y", "mcp-trends-hub"],
      "env": {
        "TRENDS_HUB_CUSTOM_RSS_URL": "https://news.yahoo.com/rss" // 添加 Yahoo 新闻 RSS
      }
    }
  }
}

配置后将自动添加custom-rss工具,用于获取指定的 RSS 订阅源内容

🛠️ 支持的工具

| 工具名称 | 描述 | | --- | --- | | get-36kr-trending | 获取 36 氪热榜,提供创业、商业、科技领域的热门资讯,包含投融资动态、新兴产业分析和商业模式创新信息 | | get-9to5mac-news | 获取 9to5Mac 苹果相关新闻,包含苹果产品发布、iOS 更新、Mac 硬件、应用推荐及苹果公司动态的英文资讯 | | get-bbc-news | 获取 BBC 新闻,提供全球新闻、英国新闻、商业、政治、健康、教育、科技、娱乐等资讯 | | get-bilibili-rank | 获取哔哩哔哩视频排行榜,包含全站、动画、音乐、游戏等多个分区的热门视频,反映当下年轻人的内容消费趋势 | | get-douban-rank | 获取豆瓣实时热门榜单,提供当前热门的图书、电影、电视剧、综艺等作品信息,包含评分和热度数据 | | get-douyin-trending | 获取抖音热搜榜单,展示当下最热门的社会话题、娱乐事件、网络热点和流行趋势 | | get-gcores-new | 获取机核网游戏相关资讯,包含电子游戏评测、玩家文化、游戏开发和游戏周边产品的深度内容 | | get-ifanr-news | 获取爱范儿科技快讯,包含最新的科技产品、数码设备、互联网动态等前沿科技资讯 | | get-infoq-news | 获取 InfoQ 技术资讯,包含软件开发、架构设计、云计算、AI等企业级技术内容和前沿开发者动态 | | get-juejin-article-rank | 获取掘金文章榜,包含前端开发、后端技术、人工智能、移动开发及技术架构等领域的高质量中文技术文章和教程 | | get-netease-news-trending | 获取网易新闻热点榜,包含时政要闻、社会事件、财经资讯、科技动态及娱乐体育的全方位中文新闻资讯 | | get-nytimes-news | 获取纽约时报新闻,包含国际政治、经济金融、社会文化、科学技术及艺术评论的高质量英文或中文国际新闻资讯 | | get-smzdm-rank | 获取什么值得买热门,包含商品推荐、优惠信息、购物攻略、产品评测及消费经验分享的实用中文消费类资讯 | | get-sspai-rank | 获取少数派热榜,包含数码产品评测、软件应用推荐、生活方式指南及效率工作技巧的优质中文科技生活类内容 | | get-tencent-news-trending | 获取腾讯新闻热点榜,包含国内外时事、社会热点、财经资讯、娱乐动态及体育赛事的综合性中文新闻资讯 | | get-thepaper-trending | 获取澎湃新闻热榜,包含时政要闻、财经动态、社会事件、文化教育及深度报道的高质量中文新闻资讯 | | get-theverge-news | 获取 The Verge 新闻,包含科技创新、数码产品评测、互联网趋势及科技公司动态的英文科技资讯 | | get-toutiao-trending | 获取今日头条热榜,包含时政要闻、社会事件、国际新闻、科技发展及娱乐八卦等多领域的热门中文资讯 | | get-weibo-trending | 获取微博热搜榜,包含时事热点、社会现象、娱乐新闻、明星动态及网络热议话题的实时热门中文资讯 | | get-weread-rank | 获取微信读书排行榜,包含热门小说、畅销书籍、新书推荐及各类文学作品的阅读数据和排名信息 | | get-zhihu-trending | 获取知乎热榜,包含时事热点、社会话题、科技动态、娱乐八卦等多领域的热门问答和讨论的中文资讯 |

更多数据源正在持续增加中

鸣谢