Skip to main content

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

要求与声明

  • 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.2.tar.gz (109.9 kB 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.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_weibo-1.3.2.tar.gz
  • Upload date:
  • Size: 109.9 kB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 30b0b5ed74b31e0662823f834f94d6746279da53d577e1ca7c80b1094bc146e7
MD5 2cd9180884fc56b8edd0c9c028e11f3f
BLAKE2b-256 0a2b691e58e915008cbc5875f0c8380b272292fa025ca935b26f801ed35a93a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_weibo-1.3.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_weibo-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc63c2ff6e26a4bcc319c2200b1459c9a0eb17681b9d8d8f18eefa2938c810ac
MD5 75f72f893a6ff7acb8bc0d1e5d41f609
BLAKE2b-256 ad1659d09cec40007ccba80d42a78d609724130b7270a3f10f4cb8448742269d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_weibo-1.3.2-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

1.3.3

2 files

This release

1.3.2 This release

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