logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

weibo_hotsearch_mcp

Provides real-time access to the top 10 trending topics on Weibo without authentication. Integrates trending data into AI workflows for analysis of popular social media topics.

Author

weibo_hotsearch_mcp logo

RusianHu

MIT License

Quick Info

GitHub GitHub Stars 1
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

weibo_hotsearch_mcpweibosocialtopics weiboautomation socialsocial media

微博热搜 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 文件

  3. 路径通常为:C:\Users\<用户名>\AppData\Roaming\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json

  4. 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

See Also

`