Back to MCP directory
publicPublicdnsLocal runtime

Weibo

基于MCP协议的微博数据抓取服务器

article

README

🚀 微博 MCP 服务器

本项目是一个基于 Model Context Protocol 的服务器,主要用于抓取微博用户信息、动态,同时具备搜索功能。借助该服务器,能够轻松获取微博用户的详细信息、动态内容,还能进行用户搜索。

🚀 快速开始

本服务器可助力你获取微博用户的详细信息、动态内容以及开展用户搜索。

📦 安装指南

从源代码安装

{
    "mcpServers": {
        "weibo": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/qinyuanpei/mcp-server-weibo.git",
                "mcp-server-weibo"
            ]
        }
    }
}

从包管理器安装

{
    "mcpServers": {
        "weibo": {
            "command": "uvx",
            "args": ["mcp-server-weibo"],
        }
    }
}

✨ 主要特性

工具

  • search_users(keyword, limit): 用于搜索微博用户
  • get_profile(uid): 获取用户详细信息
  • get_feeds(uid, limit): 获取用户动态

🔧 技术细节

依赖要求

  • Python >= 3.10
  • httpx >= 0.24.0

📄 许可证

本项目采用 MIT 许可证,详见 LICENSE 文件。

⚠️ 重要提示

本项目与微博官方无关,仅用于学习和研究目的。

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