xiaohongshu-skill
Provides tools to automate Xiaohongshu (小红书/RED) operations, including publishing image and video posts, searching content with filters, managing engagement through likes and comments, and retrieving user profile and analytics data.
Install
pip install redbook-cliOr from source:
git clone https://github.com/Youhai020616/xiaohongshu.git
cd xiaohongshu && bash setup.shOptional: API Server
To use the REST API server (xhs api), install additional dependencies:
pip install redbook-cli[api]Related MCP server: xiaohongshu-mcp-py
Quick Start
xhs init # Guided setup (first time)
xhs search "美食" # Search → results cached
xhs read 1 # Read 1st result (short index)
xhs like 1 # Like 1st result
xhs fav 2 # Favorite 2nd result
xhs comment 1 -c "好文!" # Comment on 1st result
xhs publish -t "标题" -c "内容" -i img.jpg # Publish image postFeatures
🔍 Search — keyword search with sort/type/time filters, export to CSV/JSON
📝 Publish — image & video posts with tags, scheduling, visibility control
💬 Interact — like, favorite, comment, reply (short index support)
📊 Analytics — creator dashboard data export (CDP)
🔔 Notifications — mentions and interaction notifications
👤 Profile — user info and post listing
🔢 Short Index —
xhs search → xhs read 1 → xhs like 1📦 Export —
xhs search "AI" -o results.csv🔐 Login — MCP QR scan + CDP browser login
👥 Multi-Account — isolated Chrome profiles per account
🏗️ Dual Engine — MCP server (fast) + CDP scripts (full features)
Commands
Search & Read
xhs search "关键词" # Basic search
xhs search "旅行" --sort 最多点赞 # Sort by likes
xhs search "穿搭" --type 图文 # Filter by type
xhs search "AI" -o results.csv # Export to CSV
xhs read 1 # Read by short index
xhs detail FEED_ID -t TOKEN # Read by ID + tokenPublish
xhs publish -t "标题" -c "正文" -i photo.jpg # Image post
xhs publish -t "标题" -c "正文" -v video.mp4 # Video post
xhs publish -t "标题" -c "正文" -i img.jpg --tags 旅行 --tags 美食 # With tags
xhs publish -t "测试" -c "内容" -i img.jpg --visibility 仅自己可见 # Private
xhs pub -t "标题" -c "正文" -i img.jpg --dry-run # PreviewInteract
xhs like 1 # Like (short index)
xhs like FEED_ID -t TOKEN --unlike # Unlike
xhs fav 1 # Favorite
xhs comment 1 -c "写得好!" # Comment
xhs reply 1 --comment-id X --user-id Y -c "回复" # ReplyAnalytics & Feed
xhs analytics # Creator dashboard
xhs analytics --csv data.csv # Export CSV
xhs notifications # Messages
xhs feeds # Recommendation feedProfile
xhs me # My info
xhs profile USER_ID -t TOKEN # User profileAccount & Config
xhs login # MCP QR scan
xhs login --cdp # CDP browser login
xhs status # Login status
xhs server start # Start MCP server
xhs server stop # Stop MCP server
xhs account list # List accounts
xhs config show # Show config
xhs config set mcp.proxy http://... # Set proxyAliases
Short | Command | Short | Command | |
|
|
|
| |
|
|
|
| |
|
|
|
| |
|
|
|
|
Architecture
Engine | Used for | Technology |
MCP Server | Publish, search, like, comment, profile | Go binary, JSON-RPC |
CDP Scripts | Analytics, notifications, advanced search | Python, Chrome DevTools |
MCP is the primary engine (always-on daemon). CDP is used for features MCP doesn't support.
Unique features (vs competitors): video publish, scheduled publish, visibility control, analytics dashboard, multi-account isolation.
Platform Support
Component | macOS ARM64 | macOS x86 | Linux | Windows |
xhs CLI | ✅ | ✅ | ✅ | ✅ |
MCP Server | ✅ | ❌ | ❌ | ❌ |
CDP Scripts | ✅ | ✅ | ✅ | ✅ |
Non-ARM64 users: xhs init auto-detects missing MCP and switches to CDP-only mode.
License
🔗 Ecosystem
Project | Description |
Self-learning memory system for AI agents | |
Anti-detection browser CLI powered by Camoufox | |
Stealth X/Twitter automation | |
Douyin/TikTok CLI | |
AI social media management |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server: AI-agent access to Chinese social & trend signals — Douyin, Weibo, Xiaohongshu/RedNote,
Remote MCP server for China brand visibility, destination demand, and KOL discovery workflows.
MCP server for QPost — lets AI agents publish video and image posts to YouTube, TikTok, Instagram.
All HasData scraping tools in one MCP server: Google, TikTok, Instagram, maps, e-commerce and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server enabling AI assistants to search, analyze, and generate content for Xiaohongshu (RedNote), China's leading lifestyle social media platform.69MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for Xiaohongshu automation, enabling feed browsing, search, note publishing, and interaction via Playwright and FastMCP.4-
- AlicenseAqualityDmaintenanceA lightweight MCP server that provides read-only access to Xiaohongshu (Little Red Book) data, enabling search, note details, user profiles, and trending feeds via direct HTTP APIs.5141MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for automatically publishing text, image, and video notes to Xiaohongshu (Little Red Book).1MIT