weibo-mcp-server

weibo-mcp-server

3.2

If you are the rightful owner of weibo-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Weibo-MCP-Server is a service designed to fetch the top N trending topics on Weibo, supporting both stdio and SSE modes.

weibo-mcp-server

一个获取前N微博热搜的MCP服务,支持stdio和sse模式调用。

配置方式

安装依赖

git clone https://github.com/bossdong955/weibo-mcp-server.git

cd weibo-mcp-server

conda create -n weibo-mcp-server python=3.11
conda activate weibo-mcp-server
pip install -r requirements.txt

stdio模式

配置文件内容如下:

{
  "mcpServers": {
    "weiboresou": {
      "disabled": false,
      "timeout": 60,
      "command": "conda",
      "args": [
        "run",
        "-n",
        "mcp",
        "--no-capture-output",
        "mcp",
        "run",
        "文件的绝对路径/resou_stdio.py"
      ],
      "transportType": "stdio"
    }
  }
}

在vscode中下载cline插件并配置Installed服务 ,将上面json粘贴到配置文件即可。

sse模式

首先运行python程序

python resou_sse.py

在vscode中下载cline插件并配置Remote Servers服务 ,ip和端口根据实际情况设置。

制作不易,如果对你有帮助的话,请给作者点个stars