@mcpflow.io/mcp-hotnews-mcp-server

1.0.2 • Public • Published

HotNews MCP Server

此包由 MCPFlow 打包并发布到npm仓库。

HotNews MCP Server是一个基于 Model Context Protocol (MCP) 的实时热点话题聚合服务,可以为 AI 助手提供来自中国主要社交平台和新闻网站的热点话题。支持知乎热榜、36氪热榜、百度热点、B站热榜、微博热搜、抖音热点、虎扑热榜、豆瓣热榜、IT新闻等9个主要中文平台的热点话题,提供带热度指数的可点击链接,方便 AI 模型获取最新热点资讯。

安装与使用

直接使用npx运行:

npx @mcpflow.io/mcp-hotnews-mcp-server

或者先安装后使用:

# 安装
npm install @mcpflow.io/mcp-hotnews-mcp-server

# 使用
npx @mcpflow.io/mcp-hotnews-mcp-server

使用方法

Installation

工具函数

generateSourcesDescription

Generates a description of available hot news sources.

参数:

getMaxSourceId

Retrieves the maximum source ID from the available hot news sources.

参数:

testEndpoint

Tests the API endpoint for a given source.

参数:

  • source: The source object containing name and description.

runTests

Runs tests on all available sources.

参数:

原始信息

原始README

HotNews MCP Server

A Model Context Protocol (MCP) server that provides real-time hot trending topics from major Chinese social platforms and news sites.

Features

  • Real-time hot topics from 9 major Chinese platforms
  • MCP protocol compatible
  • Easy integration with AI models
  • Markdown formatted output with clickable links
  • Heat index support (where available)

Supported Platforms

  1. Zhihu Hot List (知乎热榜)
  2. 36Kr Hot List (36氪热榜)
  3. Baidu Hot Discussion (百度热点)
  4. Bilibili Hot List (B站热榜)
  5. Weibo Hot Search (微博热搜)
  6. Douyin Hot List (抖音热点)
  7. Hupu Hot List (虎扑热榜)
  8. Douban Hot List (豆瓣热榜)
  9. IT News (IT新闻)

API Source, This project uses the api.vvhan.com service for fetching hot topics data.

Available Tools

  • get_hot_news
    • sources - Required arguments: Platform ID list
  • Example usage:
    • get_hot_news([3]) : Get Baidu Hot Discussion only
    • get_hot_news([1,3,7]) : Get hot lists from zhihuHot, Baidu, and huPu
    • get_hot_news([1,2,3,4]) : Get hot lists from zhihuHot, 36Kr, Baidu, and Bilibili`

Installation

NPX

{
  "mcpServers": {
    "mcp-server-hotnews": {
      "command": "npx",
      "args": [
        "-y",
        "@wopal/mcp-server-hotnews"
      ]
    }
  }
}

Docker

( Docker image not uploaded to Docker Hub, need to build it yourself. )

{
  "mcpServers": {
    "mcp-server-hotnews": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "wopal/mcp-server-hotnews"
      ]
    }
  }
}

Development

# Install dependencies
npm install

# Watch mode
npm run watch

# Build
npm run build

# Test URLs
npm run test:urls

Docker build:

docker build -t wopal/mcp-server-hotnews:latest -f Dockerfile .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Package Sidebar

Install

npm i @mcpflow.io/mcp-hotnews-mcp-server

Weekly Downloads

6

Version

1.0.2

License

未指定

Unpacked Size

15.7 kB

Total Files

6

Last publish

Collaborators

  • mcpflow.io