weibo-mcp-server

weibo-mcp-server

2

weibo-mcp-server is a service that allows users to access the top N trending searches on Weibo. It supports communication through stdio and sse modes, providing flexibility in integration.

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粘贴到配置文件即可。

image2

sse模式

首先运行python程序

python resou_sse.py

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

image.png

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