Weibo MCP Server
通过微博访客接口提供用户、微博、热搜、评论、话题及社交关系数据。默认自动申请访客 Cookie,不读取用户手工提供的 Cookie;CLI 可通过扫码登录保存本机登录会话。
选择适合你的方式
| 你的目标 | 选择 |
|---|---|
| 让支持 Skill 的编码代理按项目约定调用 CLI | Weibo CLI Skill |
| 让 Claude、Cursor 或其他 AI 客户端自主调用微博工具 | MCP 接入指南 |
| 在终端、脚本或管道中直接取得 JSON 数据 | CLI 使用指南 |
快速开始
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
- 本项目与微博官方无关,仅用于学习和研究。
Metadata
Release files for mcp-server-weibo 1.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_weibo-1.3.4.tar.gz | 1.5 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_weibo-1.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / mcp_server_weibo-1.3.4.tar.gz
| Download URL | mcp_server_weibo-1.3.4.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
616b2674ec7007c4cdf94429060bb8fd9ded4b811ab978b02c50708ee1df712c
|
|
BLAKE2b-256 checksum How to use checksums |
d53767476de0bf0f7ecd0b36e4f478eec65f84a7e52c898d988d7b73fa0afb89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / mcp_server_weibo-1.3.4-py3-none-any.whl
| Download URL | mcp_server_weibo-1.3.4-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8606a10bf3b933a7e61269bfed4b863d60e0f8e2804536ba6b8ab87998ce8ad7
|
|
BLAKE2b-256 checksum How to use checksums |
938d86f46043b0a78b05c3666b7e73dd64ab8e7b515dcdf179549c9e25688165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logSecurity for mcp-server-weibo 1.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mcp_server_weibo-1.3.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.