# Xiaohongshu MCP

使用本机 browser-first xiaohongshu-mcp 只读搜索小红书、下载候选首图、补全用户选择的笔记详情，并把脱敏证据写入调用方 Memory。用于...

- Repository: https://github.com/tsingyuai/growth-lab (1975 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-09-28
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add tsingyuai/growth-lab --skill xiaohongshu-mcp -g -a claude-code -y`
Codex: `npx skills add tsingyuai/growth-lab --skill xiaohongshu-mcp -g -a codex -y`
Cursor: `npx skills add tsingyuai/growth-lab --skill xiaohongshu-mcp -g -a cursor -y`
Gemini CLI: `npx skills add tsingyuai/growth-lab --skill xiaohongshu-mcp -g -a gemini-cli -y`

## Description

使用本机 browser-first xiaohongshu-mcp 只读搜索小红书、下载候选首图、补全用户选择的笔记详情，并把脱敏证据写入调用方 Memory。用于 xhs-replicate 的选题和视觉参考研究，取代小红书 MediaCrawler 路径。

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Xiaohongshu browser-first collection

Read [runtime.md](references/runtime.md) before startup and [cover-screening.md](references/cover-screening.md) before visual selection.

## First-run conversation

Before collection, tell the user:

- the recommended first-run batch is 25 notes;
- the count is adjustable, but 25 is recommended;
- collection is read-only and saves sanitized research evidence and requested images locally;
- login does not authorize likes, saves, comments, follows, uploads, or publication.

If required settings are missing, stop and invoke `onboard-growth-lab`. Give the user the exact configuration file and fields from [`CONFIGURATION.md`](../../CONFIGURATION.md); never ask them to paste a key, cookie, or signed URL into the conversation.

## Runtime

```powershell
powershell -ExecutionPolicy Bypass -File collectors/xiaohongshu-mcp/scripts/start_xiaohongshu_service.ps1
python collectors/xiaohongshu-mcp/scripts/collect_xiaohongshu.py "<topic>" `
  --limit 25 --cover-pool 25 `
  --out "memory/xhs-replicate/<run>/xiaohongshu-search.json"
```

The service must be local HTTP only. If it is not logged in, explain the boundary, ask before opening the visible login window, run `login_xiaohongshu.ps1`, verify once, and resume. Stop on timeout, risk-control, login loss, or repeated empty responses; do not loop around platform controls.

## Visual selection

The rest: https://github.com/tsingyuai/growth-lab/blob/HEAD/collectors/xiaohongshu-mcp/SKILL.md
