Skip to main content

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

mcp_server_weibo-1.3.0.tar.gz (100.0 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.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

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

Hashes for mcp_server_weibo-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9dfb959b86a5b14fdd61f9cd480471f09847c5697a4bad33c3ae47960a9484cf
MD5 bca1dabb137293b3113fb4908f279489
BLAKE2b-256 4f9501a4b36b4ea6d998afd9cc97d8507abc4e313bac4d781eb42b6c69aed459

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mcp_server_weibo-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2212440a2826db87a8ae9003d4280ce860ef01560b8e421519c7ae3b7bbf7961
MD5 aba42d100f8b63e40910c0dfa8c31285
BLAKE2b-256 aa85887fb7a2e39103f8f0dd662f263770820290ef425cb1ec2e53d8c20a39ed

See more details on using hashes here.

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

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

1.3.1

2 files

This release

1.3.0 This release

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