Skip to content
Back to skills

Weibo Cli

ASecurity

Query public Weibo data from a terminal with the bundled weibo-cli command. Use for direct JSON retrieval in scripts or shell sessions; do not use when an MCP client should call tools itself.

  • 62 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 20, 2026
ai-agentsgoshellbashdocumentation

Works with

  • terminal
  • cli
  • mcp

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add qinyuanpei/mcp-server-weibo --skill weibo-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Weibo Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Weibo Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qinyuanpei-weibo-cli/badge)](https://www.skillsdirectory.com/skills/qinyuanpei-weibo-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: weibo-cli
description: Query public Weibo data from a terminal with the bundled weibo-cli command. Use for direct JSON retrieval in scripts or shell sessions; do not use when an MCP client should call tools itself.
---

# Weibo CLI

Use `weibo-cli` for direct terminal access. It automatically generates visitor cookies; do not configure or supply user cookies. If authenticated access is needed, instruct the user to run `weibo-cli login` and scan its QR code themselves.

## Install and run

```bash
# Install once for ongoing use
uv tool install mcp-server-weibo
weibo-cli --help

# Run commands directly after installation
weibo-cli trending -n 3

# Optional, interactive: saves this user's QR-login session locally
weibo-cli login
```

Use `uvx` only for an ad-hoc command when the package should not remain installed:

```bash
uvx --from mcp-server-weibo weibo-cli --help
```

## Choose a command

- Look up a user ID: `weibo-cli users "keyword" -n 5`
- Get a known user's details: `weibo-cli profile <uid>`
- Get posts: `weibo-cli feeds <uid> -n 10`
- Search posts or topics: `weibo-cli search "keyword"` or `weibo-cli topics "keyword"`
- Get heat, comments, social graph: `trending`, `comments`, `followers`, or `fans`

Use a feed `id` from `feeds` or `search` as the input to `comments`.

## Output contract

`profile` returns one JSON object. Every collection command returns one valid JSON array, including `[]` for an empty result. This makes outputs suitable for JSON parsers and shell pipelines.

`login` is CLI-only. It waits for the user to scan and confirm a QR code, then stores the session at `~/.config/mcp-server-weibo/cookies.json`; treat that file as sensitive. Do not ask users to paste cookies or attempt password or CAPTCHA login.

For `feeds` and `search`, `pics` is included by default and nested `user` is excluded by default. Use `--no-include-pics` to omit picture metadata or `--include-profile` to include each post's author data.

## Further documentation

Read [CLI usage](../../docs/CLI.md) for the full command list. For AI-client integration rather than terminal use, read [MCP usage](../../docs/MCP.md).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…