Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install xiaohongshu-mcp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install xiaohongshu-mcp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/xiaohongshu-mcp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: xiaohongshu-mcp description: > Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management. ---
Automate content operations on Xiaohongshu (小红书) using a bundled Python script that interacts with the xpzouying/xiaohongshu-mcp server (8.4k+ stars).
Project: xpzouying/xiaohongshu-mcp
This skill requires the xiaohongshu-mcp server to be running on your local machine.
Download the appropriate binaries for your system from the GitHub Releases page.
| Platform | MCP Server | Login Tool | | -------- | ---------- | ---------- | | macOS (Apple Silicon) | xiaohongshu-mcp-darwin-arm64 | xiaohongshu-login-darwin-arm64 | | macOS (Intel) | xiaohongshu-mcp-darwin-amd64 | xiaohongshu-login-darwin-amd64 | | Windows | xiaohongshu-mcp-windows-amd64.exe | xiaohongshu-login-windows-amd64.exe | | Linux | xiaohongshu-mcp-linux-amd64 | xiaohongshu-login-linux-amd64 |
Grant execute permission to the downloaded files:
chmod +x xiaohongshu-mcp-darwin-arm64 xiaohongshu-login-darwin-arm64
Run the login tool. It will open a browser window with a QR code. Scan it with your Xiaohongshu mobile app.
./xiaohongshu-login-darwin-arm64
> Important: Do not log into the same Xiaohongshu account on any other web browser, as this will invalidate the server's session.
Run the MCP server in a separate terminal window. It will run in the background.
# Run in headless mode (recommended)
./xiaohongshu-mcp-darwin-arm64
# Or, run with a visible browser for debugging
./xiaohongshu-mcp-darwin-arm64 -headless=false
The server will be available at http://localhost:18060.
This skill includes a Python client (scripts/xhs_client.py) to interact with the local server. You can use it directly from the shell.
| Command | Description | Example | | --- | --- | --- | | status | Check login status | python scripts/xhs_client.py status | | search | Search for notes | python scripts/xhs_client.py search "咖啡" | | detail | Get note details | python scripts/xhs_client.py detail "note_id" "xsec_token" | | feeds | Get recommended feed | python scripts/xhs_client.py feeds | | publish | Publish a note | python scripts/xhs_client.py publish "Title" "Content" "url1,url2" |
```shell python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py status ```
feed_id and xsec_token needed for the next step.```shell python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py search "户外电源" ```
feed_id and xsec_token from the search results to get the full content and comments of a specific note.```shell python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py detail "64f1a2b3c4d5e6f7a8b9c0d1" "security_token_here" ```
安装 Xiaohongshu (小红书) Automation 后,可以对 AI 说这些话来触发它
Show me the top-performing posts in my Xiaohongshu account this month
Fetches account analytics, ranks posts by engagement rate, and returns a table with views, likes, saves, and comments
Draft a Xiaohongshu post for this skincare product with trending hashtags
Analyzes current trending hashtags in the beauty category, writes an engaging post in the Xiaohongshu style, and suggests 5 relevant tags
Analyze the comments on my latest Xiaohongshu post for sentiment
Reads all comments, classifies them as positive/neutral/negative, and surfaces the most common themes and actionable feedback
将技能文件夹放到 ~/.claude/skills/xiaohongshu-mcp/ 目录(个人级,所有项目可用),或 .claude/skills/xiaohongshu-mcp/(项目级)。重启 AI 客户端后,用 /xiaohongshu-mcp 主动调用,或让 AI 根据上下文自动发现并使用。
Xiaohongshu (小红书) Automation 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Xiaohongshu (小红书) Automation 可免费安装使用。请查阅仓库了解许可证信息。
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.
Xiaohongshu (小红书) Automation 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。