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

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

mcp_server_weibo-1.3.1.tar.gz (103.3 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.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_weibo-1.3.1.tar.gz
  • Upload date:
  • Size: 103.3 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.1.tar.gz
Algorithm Hash digest
SHA256 71cca0556c108eaeaa2366d43e2ba2f53c7c6b2ac879b2707bacd97eef5e2dac
MD5 8fc5d1fb7c35538d32a2970548dc5a8f
BLAKE2b-256 03b9609a6a93fb40ac6d2257eda75353c638623b351fb0656779d29a3ffcc3f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_server_weibo-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60e680ad9d11036e5282e19af0aeb1f0fd6b3def03ca8f8ec6d9061b8543ef26
MD5 c0dce92fd9f8070fb4a11c0b0ccc6627
BLAKE2b-256 981f8fbb5403b0f224c022608f0b40ed4606d3221c0fbb5de9880a6a960b53cf

See more details on using hashes here.

Provenance

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

1.3.2

2 files

This release

1.3.1 This release

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