
Xiaohongshu
A comprehensive wrapper around the xiaohongshu-mcp service that handles the full lifecycle of interacting with China's RedNote platform. It manages the tricky authentication flow (QR code login, cookie management), provides ready-to-use scripts for searching posts, tracking trending topics, and publishing content, plus generates detailed markdown reports with engagement analytics. The feed_id and xsec_token pairing requirement makes this more complex than typical social media APIs, but the scripts handle that complexity well. Most useful for social media monitoring, competitor research, or automated content publishing workflows where you need programmatic access to RedNote's ecosystem without dealing with browser automation yourself.
- skills.sh installs
- 11.6K
- GitHub stars
- 127
- last updated
- Jul 14, 2026
Install
$ npx -y skills add zhjiang22/openclaw-xhs --skill xiaohongshu --agent claude-codeInstalls into .claude/skills of the current project.
Files
小红书 MCP Skill
基于 xiaohongshu-mcp 封装的 shell 脚本工具集。
前置条件
cd scripts/
./install-check.sh # 检查依赖(xiaohongshu-mcp、jq、python3)
./start-mcp.sh # 启动 MCP 服务(默认端口 18060)
./status.sh # 确认已登录
未登录时需扫码:mcp-call.sh get_login_qrcode 获取二维码,用小红书 App 扫码。
服务端口可通过 MCP_URL 环境变量覆盖(默认 http://localhost:18060/mcp)。
核心数据流
重要: 大多数操作需要 feed_id + xsec_token 配对。这两个值从搜索/推荐/用户主页结果中获取,不可自行构造。
search_feeds / list_feeds / user_profile
│
▼
返回 feeds 数组,每个 feed 包含:
├── id → 用作 feed_id
├── xsecToken → 用作 xsec_token
└── noteCard → 标题、作者、封面、互动数据
│
▼
get_feed_detail(feed_id, xsec_token)
│
▼
返回完整笔记: 正文、图片列表、评论列表
评论中包含 comment_id、user_id(用于回复评论)
脚本参考
Sponsors
Details
- Repository
- github.com/zhjiang22/openclaw-xhs
- Category
- AI & Agent Building