mcp server weibo

Local 2025-09-01 00:13:37 0

A Model Context Protocol server for scraping Weibo that provides tools to search users, retrieve detailed user profiles, and fetch user feeds.


This is a server based on the Model Context Protocol for scraping Weibo user information, feeds, and search functionality. This server can help retrieve detailed information about Weibo users, feed content, and perform user searches.

Weibo Server MCP server

Installation

Install from source code:

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

Install from package manager:

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

Components

Tools

  • search_users(keyword, limit): 根据关键词搜索微博用户
  • get_profile(uid): 获取用户详细资料信息
  • get_feeds(uid, limit): 获取用户微博动态
  • get_hot_search(limit): 获取微博热搜榜
  • search_content(keyword, limit, page?): 根据关键词搜索微博内容

Resources

None

Prompts

None

Requirements

  • Node.js >= 18.0.0

License

MIT License

Disclaimer

This project is not affiliated with Weibo and is for learning and research purposes only.

[
  {
    "inputSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": false,
      "properties": {
        "keyword": {
          "description": "查找用户的搜索词",
          "type": "string"
        },
        "limit": {
          "description": "返回的最大用户数量",
          "type": "number"
        }
      },
      "required": [
        "keyword",
        "limit"
      ],
      "type": "object"
    },
    "name": "search_users"
  },
  {
    "inputSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": false,
      "properties": {
        "uid": {
          "description": "微博用户的唯一标识符",
          "type": "number"
        }
      },
      "required": [
        "uid"
      ],
      "type": "object"
    },
    "name": "get_profile"
  },
  {
    "inputSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": false,
      "properties": {
        "limit": {
          "description": "返回的最大动态数量",
          "type": "number"
        },
        "uid": {
          "description": "微博用户的唯一标识符",
          "type": "number"
        }
      },
      "required": [
        "uid",
        "limit"
      ],
      "type": "object"
    },
    "name": "get_feeds"
  }
]