Back to MCP directory
publicPublicdnsLocal runtime

weibo-mcp-server-it6

一个获取微博热搜的MCP服务,支持两种调用模式。

article

README

🚀 微博热搜 MCP 服务

本项目是一个用于获取前 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 resou_sse.py

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

image.png

💡 使用建议

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

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client