Weibo MCP Server
通过微博访客接口提供用户、微博、热搜、评论、话题及社交关系数据。默认自动申请访客 Cookie,不读取用户手工提供的 Cookie;CLI 可通过扫码登录保存本机登录会话。
选择适合你的方式
| 你的目标 | 选择 |
|---|---|
| 让 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
除 profile 外,CLI 命令输出一个完整 JSON 数组。完整命令、分页和精简输出选项见 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
要求与声明
- Python >= 3.10
- MIT License,详见 LICENSE
- 本项目与微博官方无关,仅用于学习和研究。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_weibo-1.3.0.tar.gz.
File metadata
- Download URL: mcp_server_weibo-1.3.0.tar.gz
- Upload date:
- Size: 100.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dfb959b86a5b14fdd61f9cd480471f09847c5697a4bad33c3ae47960a9484cf
|
|
| MD5 |
bca1dabb137293b3113fb4908f279489
|
|
| BLAKE2b-256 |
4f9501a4b36b4ea6d998afd9cc97d8507abc4e313bac4d781eb42b6c69aed459
|
Provenance
The following attestation bundles were made for mcp_server_weibo-1.3.0.tar.gz:
Publisher:
publish.yml on qinyuanpei/mcp-server-weibo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_weibo-1.3.0.tar.gz -
Subject digest:
9dfb959b86a5b14fdd61f9cd480471f09847c5697a4bad33c3ae47960a9484cf - Sigstore transparency entry: 2582802897
- Sigstore integration time:
-
Permalink:
qinyuanpei/mcp-server-weibo@2b32d0ad4236148ccfea6b4bad61279b906121ad -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/qinyuanpei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b32d0ad4236148ccfea6b4bad61279b906121ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_server_weibo-1.3.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_weibo-1.3.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2212440a2826db87a8ae9003d4280ce860ef01560b8e421519c7ae3b7bbf7961
|
|
| MD5 |
aba42d100f8b63e40910c0dfa8c31285
|
|
| BLAKE2b-256 |
aa85887fb7a2e39103f8f0dd662f263770820290ef425cb1ec2e53d8c20a39ed
|
Provenance
The following attestation bundles were made for mcp_server_weibo-1.3.0-py3-none-any.whl:
Publisher:
publish.yml on qinyuanpei/mcp-server-weibo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_weibo-1.3.0-py3-none-any.whl -
Subject digest:
2212440a2826db87a8ae9003d4280ce860ef01560b8e421519c7ae3b7bbf7961 - Sigstore transparency entry: 2582802904
- Sigstore integration time:
-
Permalink:
qinyuanpei/mcp-server-weibo@2b32d0ad4236148ccfea6b4bad61279b906121ad -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/qinyuanpei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b32d0ad4236148ccfea6b4bad61279b906121ad -
Trigger Event:
push
-
Statement type: