Weibo MCP Server
The Weibo MCP Server allows you to interact with Weibo user data in three main ways:
Search for Weibo Users: Find users by specific keywords
Retrieve User Profiles: Fetch detailed profile information using a user's ID
Fetch User Feeds: Access a user's latest posts/updates with options to limit the number retrieved
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weibo MCP Server search for users named '雷军' and show me their profiles"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weibo MCP Server

通过微博访客接口提供用户、微博、热搜、评论、话题及社交关系数据。默认自动申请访客 Cookie,不读取用户手工提供的 Cookie;CLI 可通过扫码登录保存本机登录会话。
选择适合你的方式
你的目标 | 选择 |
让支持 Skill 的编码代理按项目约定调用 CLI | |
让 Agent 抓取微博数据并生成人格画像报告 | |
让 Claude、Cursor 或其他 AI 客户端自主调用微博工具 | |
在终端、脚本或管道中直接取得 JSON 数据 |
Related MCP server: Pulse CN MCP Server
快速开始
MCP
{
"mcpServers": {
"weibo": {
"command": "uvx",
"args": ["--from", "mcp-server-weibo", "mcp-server-weibo"]
}
}
}HTTP 模式使用 Streamable HTTP 端点 http://localhost:4200/mcp。完整配置、工具清单与测试方法见 MCP 接入指南。
CLI
uvx --from mcp-server-weibo weibo-cli trending -n 3
uvx --from mcp-server-weibo weibo-cli users "雷军" -n 5
uvx --from mcp-server-weibo weibo-cli feeds 1749127163 -n 10 --no-include-pics
# 可选:扫码创建本机 CLI 登录会话
uvx --from mcp-server-weibo weibo-cli login
# 校验当前本机 CLI 登录会话
uvx --from mcp-server-weibo weibo-cli session集合查询命令输出一个完整 JSON 数组;profile 输出对象,session 输出登录会话对象或 null。完整命令、分页和精简输出选项见 CLI 使用指南。
从源码运行
git clone https://github.com/qinyuanpei/mcp-server-weibo.git
cd mcp-server-weibo
uv sync --extra dev
# MCP:stdio 或 HTTP
uv run mcp-server-weibo
uv run mcp-server-weibo http
# CLI
uv run weibo-cli --help致谢
CLI 二维码登录功能的协议实现参考并改编自 RicterZ/mcp-server-weibo。感谢其对微博二维码登录流程的实现与公开分享。
要求与声明
Python >= 3.10
MIT License,详见 LICENSE
本项目与微博官方无关,仅用于学习和研究。
Available Tools
10 toolsget_commentsC
Get comments for a specific Weibo post.
Returns:
list[dict]: List of dictionaries containing comments
Inputs: feed_id (required), page.
get_fansC
Get a Weibo user's fans.
Returns:
list[dict]: List of dictionaries containing fan information
Inputs: uid (required), limit, page.
get_feedsC
Get a Weibo user's feeds
Returns:
list[dict]: List of dictionaries containing feeds
Inputs: uid (required), limit.
get_followersC
Get a Weibo user's followers.
Returns:
list[dict]: List of dictionaries containing follower information
Inputs: uid (required), limit, page.
get_hot_feedsC
Get a Weibo user's hot feeds
Returns:
list[dict]: List of dictionaries containing hot feeds
Inputs: uid (required), limit.
get_profileC
Get a Weibo user's profile information.
Returns:
dict: Dictionary containing user profile information
Inputs: uid (required).
get_trendingsB
Get the current hot search topics on Weibo.
Returns:
list[dict]: List of dictionaries containing hot search items
Inputs: limit.
search_contentC
Search for content on Weibo based on a keyword.
Returns:
list[dict]: List of dictionaries containing search results
Inputs: keyword (required), limit, page.
search_topicsC
Search for topics on Weibo based on a keyword.
Returns:
list[dict]: List of dictionaries containing search results
Inputs: keyword (required), limit, page.
search_usersC
Search for Weibo users based on a keyword.
Returns:
list[dict]: List of dictionaries containing user information
Inputs: keyword (required), limit, page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes targeting specific resources like comments, fans, feeds, or searches, but get_feeds and get_hot_feeds could be confused as both retrieve feeds with unclear differentiation in their descriptions. The search tools (content, topics, users) are well-distinguished by their targets.
All tools follow a consistent verb_noun naming pattern (e.g., get_comments, search_users), using snake_case throughout. The naming is predictable and readable, with no deviations in style or convention across the set.
With 10 tools, the count is well-scoped for a Weibo server, covering key social media functions like user profiles, feeds, searches, and interactions. Each tool appears to earn its place without feeling excessive or insufficient for the domain.
The tool set covers read operations (get, search) well but lacks obvious write or update actions like posting, commenting, or following, which are core to social media platforms. This creates notable gaps that agents cannot perform full lifecycle management, though basic retrieval workflows are supported.
Maintenance
Related MCP Connectors
Weibo user/post search, suggestions, trends, details, comments, likes/reposts, transcript.
Weibo posts, hot search, comments and profiles to JSON. No login or cookies needed.
Weibo (微博) data without login: hot searches, posts by keyword, comments, creator profiles.
Remote MCP server for China brand visibility, destination demand, and KOL discovery workflows.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server for scraping Weibo that provides tools to search users, retrieve detailed user profiles, and fetch user feeds.5146 npm32MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI models with real-time trending content from 18 major Chinese internet platforms, including Weibo, Zhihu, and Bilibili.13ISC
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables web search with category support, website content scraping with citation metadata, and timezone-aware date/time tools.55MIT
- FlicenseCqualityNot gradedmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to search, retrieve, and analyze content from Xiaohongshu (Little Red Book), providing access to notes, user information, and trending topics.61-