CLI tool for direct access to Weibo content and user data.
Install
mkdir -p .claude/skills/skills-qinyuanpei && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13430" && unzip -o skill.zip -d .claude/skills/skills-qinyuanpei && rm skill.zipInstalls to .claude/skills/skills-qinyuanpei
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
The `weibo-cli` is a command-line interface tool for interacting with Weibo data without using the MCP protocol. It provides direct access to all Weibo functionality through simple terminal commands.Key capabilities
- →Search for Weibo users by keyword to get UIDs
- →Retrieve user profile information using a UID
- →Fetch user posts (feeds) by UID
- →Search for posts containing specific keywords
- →Search for Weibo topics (hashtags)
- →Get current trending/hot search items
How it works
The weibo-cli tool provides direct command-line access to Weibo functionality, allowing users to search, retrieve, and interact with Weibo data without using the MCP protocol. It follows specific workflows for user-related operations and content searches.
Inputs & outputs
When to use skills
- →Fetching user feed history
- →Searching trending topics
- →Retrieving comments from posts
- →Finding user followers
About this skill
Weibo CLI Skills
Overview
The weibo-cli is a command-line interface tool for interacting with Weibo data without using the MCP protocol. It provides direct access to all Weibo functionality through simple terminal commands.
Installation
# Run with uvx (recommended)
uvx --from mcp-server-weibo weibo-cli --help
# Or run with uv tool
uv tool install mcp-server-weibo
weibo-cli --help
Workflows
User-Related Operations
For operations involving users (profile, feeds, followers, fans), you need to first search for the user to get their UID:
1. Search users → Get UID
↓
2. Use UID for subsequent operations
Example: Get a specific user's feeds
# Step 1: Search for user to get UID
weibo-cli users "雷军" -n 5
# Step 2: Use the UID (1749127163) to get feeds
weibo-cli feeds 1749127163 -n 10
Example: Get someone's followers
# Step 1: Search users
weibo-cli users "科技博主" -n 5
# Step 2: Use UID to get followers
weibo-cli followers <UID> -n 20
Content Search
For searching posts/content by keyword, use the search command directly:
# Search posts containing keywords
weibo-cli search "人工智能" -n 20
Topic Search
For searching hashtags/topics:
# Search topics
weibo-cli topics "演唱会" -n 10
Trending Hot Searches
Get current trending topics directly:
# Get trending hot searches
weibo-cli trending -n 15
Comments
Getting comments requires a feed_id, which can be obtained from feed results:
1. Search users → Get UID
↓
2. Get feeds → Get feed IDs
↓
3. Use feed_id to get comments
Example: Get comments on a specific post
# Step 1: Get the user's feeds
weibo-cli feeds 1749127163 -n 10
# Step 2: Use the feed id from results to get comments
weibo-cli comments <FEED_ID> -p 1
CLI Commands
profile
Get user profile information by UID.
weibo-cli profile <UID>
Example:
weibo-cli profile 1749127163
Output: JSON object with user details (id, screen_name, description, followers_count, etc.)
feeds
Get user posts (weibo feeds).
weibo-cli feeds <UID> [-n LIMIT]
Example:
weibo-cli feeds 1749127163 -n 10
Output: JSON array of feed items with text, source, created_at, comments_count, attitudes_count, reposts_count, etc.
search
Search for posts containing specific keywords.
weibo-cli search <KEYWORD> [-n LIMIT] [-p PAGE]
Example:
weibo-cli search "人工智能" -n 20 -p 1
Output: JSON array of matching posts with user info, timestamps, and engagement metrics.
users
Search for Weibo users by keyword.
weibo-cli users <KEYWORD> [-n LIMIT] [-p PAGE]
Example:
weibo-cli users "科技" -n 10
Output: JSON array of user profiles matching the search term.
topics
Search for Weibo topics (hashtags).
weibo-cli topics <KEYWORD> [-n LIMIT] [-p PAGE]
Example:
weibo-cli topics "演唱会" -n 10
Output: JSON array of topic items with title, description, and URL.
trending
Get current trending/hot search items.
weibo-cli trending [-n LIMIT]
Example:
weibo-cli trending -n 15
Output: JSON array of trending items with rank, description, and热度值.
comments
Get comments for a specific post.
weibo-cli comments <FEED_ID> [-p PAGE]
Example:
weibo-cli comments 5173507416919189 -p 1
Output: JSON array of comments with user info, text, and timestamps.
followers
Get a user's followers.
weibo-cli followers <UID> [-n LIMIT] [-p PAGE]
Example:
weibo-cli followers 1749127163 -n 20
Output: JSON array of user profiles who follow this user.
fans
Get a user's fans (people who follow this user).
weibo-cli fans <UID> [-n LIMIT] [-p PAGE]
Example:
weibo-cli fans 1749127163 -n 20
Output: JSON array of user profiles who are fans of this user.
Common Options
| Option | Description | Default |
|---|---|---|
-n, --limit | Maximum number of results | varies by command |
-p, --page | Page number for pagination | 1 |
Exit Codes
0: Success1: Error (network failure, invalid arguments, etc.)
Error Handling
All errors are logged to stderr and displayed as error messages. The CLI will exit with code 1 if any operation fails.
Tips
- User Operations: Always start with
usersto get the UID before usingprofile,feeds,followers, orfans - Comments: Get
feed_idfromfeedsresults before usingcomments - Pagination: Use
-poption to navigate through multiple pages of results - Result Limits: Use
-noption to control how many results to fetch - JSON Output: All results are output as formatted JSON for easy parsing
See Also
- MCP Server README - MCP protocol usage
- Weibo API Documentation
When not to use it
- →When interacting with Weibo data using the MCP protocol
- →When a graphical user interface for Weibo is preferred
- →When the user needs to perform actions not supported by the CLI (e.g., posting content)
Limitations
- →Requires searching for users to get UIDs before performing user-specific operations
- →Requires feed_id from feed results to get comments
- →All results are output as formatted JSON
How it compares
This skill offers a command-line interface for Weibo data interaction, providing direct access to information through terminal commands, which differs from using a web interface or a complex API integration.
Compared to similar skills
skills side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| skills (this skill) | 0 | 4mo | Review | Beginner |
| baoyu-post-to-x | 5 | 2mo | Review | Intermediate |
| 0 | 4mo | Review | Intermediate | |
| x | 0 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
baoyu-post-to-x
JimLiu
Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X".
svenflow
Post tweets, read timeline, follow/unfollow, upload media, search on X/Twitter. Trigger words - twitter, tweet, x.com, post tweet, timeline, follow on x.
x
sigcli
Interact with X (Twitter) — view profiles, read tweets and threads, search posts, check trending topics, view followers, post tweets, like, retweet, follow users, and bookmark tweets. Use this skill whenever the user mentions X, Twitter, tweets, @handles, wants to browse X posts, search X, view user
x
alanalvestech
Post and manage tweets on X (formerly Twitter) via API v2
clawshot
LeoYeAI
Instagram for AI agents. Build your following, grow your influence. Share screenshots, get likes & comments, engage with @mentions. Be a creator, not just a coder.
social-media-generator
ailabs-393
This skill should be used when the user requests social media content creation for Twitter, Instagram, LinkedIn, or Facebook. It generates platform-optimized posts and saves them in an organized folder structure with meaningful filenames based on event details.