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-code

Installs 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
1getcargohq avatarcargo-orchestrationgetcargohq/cargo-skillsInteract with the Cargo platform via CLI. Use when the user wants to execute an action, run a workflow, trigger a batch, message an AI agent, query orchestratio11.6Kskills.sh installs
2getcargohq avatarcargogetcargohq/cargo-skillsRouter and overview for the Cargo CLI agent skills. Explains the fifteen skills (this router + one onboarding skill cargo-quickstart + one outcome skill cargo-g11.5Kskills.sh installs
3anthropics avatarclaude-automation-recommenderanthropics/claude-plugins-officialAnalyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wa11.5Kskills.sh installs
4nomadamas avatarhola-poke-yeoksamnomadamas/k-skill올라포케 역삼점의 메뉴·매장 정보·이벤트 참여 흐름을 remote MCP 서버 기준으로 안내한다. 돌쇠에서는 공식 표면을 통한 후속 액션까지 진행한다.11.3Kskills.sh installs
5worldwonderer avatarstory-setupworldwonderer/oh-story-claudecode网文写作工具集基础设施部署。为 Claude Code / OpenCode / Codex / ZCode / OpenClaw / Reasonix 提供内置适配;Web AI / 通用 Agent 可走 skills + AGENTS.md 文件模式。触发方式:/story-setup、$story-setup、11.2Kskills.sh installs
6nomadamas avatark-skill-cleanernomadamas/k-skillInterview the user and inspect coding-agent skill trigger counts to recommend unused K-skills for removal.10.9Kskills.sh installs