Skip to main content

MCP服务器:获取全网主流平台的新闻热点,支持20+平台 - BachStudio版本

Project description

超级今日热点 MCP 服务器 - BachStudio版

PyPI version Python Version License: MIT

一个功能强大的 MCP (Model Context Protocol) 服务器,用于获取全网主流平台的实时新闻热点。

原项目地址: 本项目基于原作者的工作进行优化和维护
GitHub: https://github.com/BACH-AI-Tools/hot-news-bachstudio

✨ 特性

  • 🌐 20+平台支持 - 覆盖社交、新闻、科技等多个领域
  • 📊 189条数据/次 - 丰富的热点内容
  • 🔍 跨平台搜索 - 一次搜索所有平台
  • 📝 简洁格式 - 标题+链接,清晰明了
  • 异步并发 - 高效获取数据
  • 🔄 实时更新 - 每次请求最新数据

🌐 支持的平台

视频社交 (2个)

  • ✅ 抖音热点 (30条)
  • ✅ B站热门 (30条)

新闻资讯 (5个)

  • ✅ 今日头条 (30条)
  • ✅ 澎湃新闻 (20条)
  • 微博热搜
  • 知乎热榜
  • 百度热搜

科技开发 (8个)

  • CSDN (30条) - 技术博客
  • 掘金 - 技术社区
  • 开源中国 - 开源社区
  • SegmentFault - 技术问答
  • 博客园 - 开发者博客
  • InfoQ - 技术资讯
  • 简书 - 创作社区
  • 前端早报 - 前端技术

技术社区 (5个)

  • ✅ GitHub (30条) - 开源项目
  • ✅ V2EX (9条) - 技术社区
  • ✅ 36氪 (10条) - 科技资讯
  • IT之家 - 科技新闻
  • 少数派 - 效率工具

📦 安装

pip install hot-news-bachstudio

或使用 uv(推荐):

uv pip install hot-news-bachstudio

🚀 快速开始

1. 配置 Claude Desktop

编辑配置文件:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

添加配置:

{
  "mcpServers": {
    "hot-news": {
      "command": "hot-news-bachstudio"
    }
  }
}

或者使用 Python 模块方式:

{
  "mcpServers": {
    "hot-news": {
      "command": "python",
      "args": ["-m", "hot_news_bachstudio.server"]
    }
  }
}

2. 重启 Claude Desktop

3. 开始使用

在 Claude Desktop 中输入:

获取抖音热点前5条
获取所有平台的热点
搜索包含"AI"的热点

💡 使用示例

获取单个平台

获取抖音热点
获取B站热门视频
获取CSDN热榜
获取GitHub热门项目

获取所有平台

获取所有平台的热点
现在有什么热点新闻?

搜索关键词

搜索包含"科技"的热点
搜索包含"AI"的热点
在GitHub和CSDN上搜索"Python"

分析和对比

对比抖音和B站的热点
分析今天的热点趋势
生成今日热点新闻摘要

🔧 开发使用

作为 Python 库使用

import asyncio
from hot_news_bachstudio import HotNewsAPI

async def main():
    api = HotNewsAPI()
    
    # 获取抖音热点
    douyin_hot = await api.get_douyin_hot()
    for item in douyin_hot[:5]:
        print(f"{item['rank']}. {item['title']}")
        print(f"   {item['url']}")
    
    # 获取所有平台
    all_hot = await api.get_all_hot()
    print(f"共获取 {sum(len(v) for v in all_hot.values())} 条数据")
    
    await api.close()

asyncio.run(main())

运行测试

# 测试所有平台
hot-news-bachstudio-test

# 或使用模块方式
python -m hot_news_bachstudio.test_server

📊 数据格式

所有平台返回统一格式:

{
  "title": "热点标题",
  "url": "链接地址",
  "platform": "平台名称",
  "rank": 排名
}

🎯 使用场景

  • 📰 新闻工作者 - 发现新闻线索
  • 📱 内容创作者 - 寻找创作灵感
  • 💼 市场营销 - 监测品牌热度
  • 🎓 研究学者 - 数据分析研究
  • 👤 个人用户 - 了解全网热点

📈 版本历史

v3.0.0 (2026-01-07)

  • ✅ 新增 CSDN 平台支持
  • ✅ 扩展到 20 个平台
  • ✅ 总数据量达到 189 条
  • ✅ 新增 7 个科技平台接口
  • ✅ BachStudio 维护版本发布

v2.0.0

  • ✅ 优化返回格式为简洁列表
  • ✅ 扩展到 13 个平台
  • ✅ 增强跨平台搜索功能

v1.0.0

  • ✅ 初始版本发布
  • ✅ 支持 6 大主流平台

🔗 链接

📄 许可证

MIT License

🤝 贡献

欢迎贡献代码、报告问题或提出建议!

👥 维护者

BachStudio 维护


如果觉得有用,欢迎 Star ⭐ 支持!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hot_news_bachstudio-3.0.1.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hot_news_bachstudio-3.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file hot_news_bachstudio-3.0.1.tar.gz.

File metadata

  • Download URL: hot_news_bachstudio-3.0.1.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for hot_news_bachstudio-3.0.1.tar.gz
Algorithm Hash digest
SHA256 617c17b55cf22b838303e72075c08d0bca834e3189359be76f1b829310cf31d9
MD5 7922957f0045a90d79ee681d781d47d1
BLAKE2b-256 d94f894055e4fa855d2871b7ec179e2da6c4c8abbe69adcf1f3e62f7e1ae3ffe

See more details on using hashes here.

File details

Details for the file hot_news_bachstudio-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hot_news_bachstudio-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfffd5f25bda4f568d67c7aebd3ba194a26ff6ca5abfe8fb0efe1cb6ba922202
MD5 991f3a9f7fdb5e91cec6cca33bcccf54
BLAKE2b-256 dd258a90bf543d69ee03021711a207df68af40ed4dcdd8e5e9837e710cf2d1ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page