Cover image
Try Now
2025-04-14

一个简单的获取微博热搜的 MCP 服务

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

微博热搜 MCP 服务

这是一个基于 fastmcp 创建的微博热搜 MCP 服务,可以在 Claude 等支持 MCP 协议的 AI 助手中使用。

功能

  • 获取微博热搜榜前10条内容
  • 无需提供 Cookie,使用微博移动版 API

安装方法

方法一:从 GitHub 安装

# 直接从 GitHub 安装
pip install git+https://github.com/RusianHu/weibo_hotsearch_mcp.git

# 如果需要使用代理
pip install git+https://github.com/RusianHu/weibo_hotsearch_mcp.git --proxy socks5://127.0.0.1:10808

方法二:从源码安装

# 克隆仓库
git clone https://github.com/RusianHu/weibo_hotsearch_mcp.git
cd weibo_hotsearch_mcp

# 安装依赖
pip install -e .

方法三:从本地构建安装

# 构建包
python build_package.py

# 从本地安装
pip install dist/weibo_hotsearch_mcp-1.0.0-py3-none-any.whl

安装到 Claude Desktop

推荐使用这种方式安装,它会创建一个隔离的环境,更加可靠:

# 安装到 Claude Desktop
fastmcp install weibo_hotsearch_mcp.py

安装成功后,您可以直接在 Claude Desktop 中使用这个服务。

在 Roo Code 插件中配置使用

  1. 安装 Roo Code VS Code 插件

  2. 打开 VS Code 设置,找到 mcp_settings.json 文件

    • 路径通常为:C:\Users\<用户名>\AppData\Roaming\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json
  3. mcpServers 对象中添加以下配置:

"weibo-hotsearch": {
  "command": "python",
  "args": [
    "-m", "weibo_hotsearch_mcp"
  ],
  "alwaysAllow": [
    "get_hot_search"
  ],
  "disabled": false
}
  1. 保存文件后,重启 VS Code

  2. 现在你可以在 Claude 中使用微博热搜 MCP 服务了

使用示例

在 Claude 中,你可以这样使用微博热搜 MCP 服务:

请获取当前微博热搜榜的内容,并分析一下热门话题的类别分布。

开发

如果你想修改或扩展这个 MCP 服务,可以按照以下步骤进行:

  1. 克隆仓库并安装依赖
  2. 修改 weibo_hotsearch_mcp.py 文件
  3. 使用 fastmcp dev weibo_hotsearch_mcp.py 命令测试你的修改
  4. 使用 fastmcp install weibo_hotsearch_mcp.py 命令安装到 Claude Desktop

许可证

MIT

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

    Reviews

    2.7 (6)
    Avatar
    user_no444l2J
    2025-04-24

    I have been using weibo_hotsearch_mcp by RusianHu for a while now, and I'm really impressed with its performance. The application makes it so easy to stay updated with what's trending on Weibo. The interface is user-friendly, and it integrates seamlessly with my daily routine. Highly recommend it to anyone who wants to keep up with the latest trends efficiently!

    Avatar
    user_lFxiL2X8
    2025-04-24

    As a devoted mcp user, I must say that the weibo_hotsearch_mcp by RusianHu is an impressive tool. It efficiently pulls the latest hot search topics from Weibo, keeping me updated in real-time. The seamless integration and user-friendly interface make it a must-have for anyone keen on staying ahead of trends. Highly recommended!

    Avatar
    user_VgeTHBIh
    2025-04-24

    As a loyal user of the weibo_hotsearch_mcp, I must say it's an incredibly useful tool for staying updated with the latest trends on Weibo. The seamless integration and user-friendly interface make it easy to navigate and access trending topics efficiently. Kudos to RusianHu for developing such an innovative product!

    Avatar
    user_XJyJtbCH
    2025-04-24

    I have been using weibo_hotsearch_mcp by RusianHu for a while now, and it has proven to be an indispensable tool for staying current with trending topics on Weibo. The ease of use and reliable updates make it a must-have for anyone who wants to track social media trends efficiently. Highly recommend for anyone interested in real-time insights!

    Avatar
    user_L9CS5V8h
    2025-04-24

    As a dedicated user of weibo_hotsearch_mcp, I find this application by RusianHu exceptionally useful for tracking trending topics on Weibo. Its seamless interface and efficient performance make it a must-have tool. I highly recommend it to anyone interested in staying updated with the latest buzz.

    Avatar
    user_5tir2m2L
    2025-04-24

    As a dedicated user of MCP applications, I find weibo_hotsearch_mcp incredibly useful. It's a fantastic tool by RusianHu that helps me keep track of the latest trends and hot searches on Weibo effortlessly. The interface is user-friendly, making it easy to navigate through the most popular topics in real-time. Highly recommended for anyone looking to stay updated with the latest buzz on Weibo!