Skip to main content

Weibo MCP Server

mcp-server-weibo cover

通过微博访客接口提供用户、微博、热搜、评论、话题及社交关系数据。默认自动申请访客 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
  • 本项目与微博官方无关,仅用于学习和研究。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_weibo-1.3.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_weibo-1.3.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_weibo-1.3.3.tar.gz.

File metadata

  • Download URL: mcp_server_weibo-1.3.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mcp_server_weibo-1.3.3.tar.gz
Algorithm Hash digest
SHA256 d9940cc9d47a1fbebf76db8a86bb87dacd70cd81b11ea71f49875a5f865181dc
MD5 754e1492ffc4fa108d8729a80706abe5
BLAKE2b-256 d85e5b7ad54b38ca85d2f1f6c78353f93805537dd3e46828615851798518b844

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_weibo-1.3.3.tar.gz:

Publisher: publish.yml on qinyuanpei/mcp-server-weibo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_weibo-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_weibo-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cdb2928890b1738fbf8364c80d750e6738817082b183656f5147867d5009f251
MD5 73cf98e2088bdd99b68d7cea17ca0c6e
BLAKE2b-256 0a3fd239c89c80cdfdbb51257e278a944a1c8e2300fcc58817b334e5376f2038

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_weibo-1.3.3-py3-none-any.whl:

Publisher: publish.yml on qinyuanpei/mcp-server-weibo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.3.4

2 files

This release

1.3.3 This release

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.10

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page