最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
小红书上传助手:通过 MCP 自动发布内容 - Openclaw Skills
时间:2026-08-18 16:50:01 编辑:袖梨 来源:一聚教程网
什么是 小红书上传助手?
小红书上传助手是一款专门设计的技能,旨在连接 AI 智能体与小红书创作服务平台。通过利用模型上下文协议 (MCP) 和 Playwright,此技能使 Clawdbot 或 Claude Desktop 能够自主处理复杂的发布工作流。它通过管理浏览器会话、持久登录以及针对平台特定限制(如标题长度和草稿保存机制)的处理,确保了操作的可靠性。
对于使用 Openclaw Skills 优化社交媒体存在感的创作者和营销人员来说,此工具必不可少。它消除了手动操作网页界面的开销,允许用户直接通过自然语言命令发布内容,同时确保符合所有平台验证要求。
下载入口:https://github.com/openclaw/skills/tree/main/skills/pxfeng/xiaohongshu-mcp安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install xiaohongshu-mcp
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 xiaohongshu-mcp。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
小红书上传助手 应用场景
- 自动将营销素材发布到小红书。
- 通过 AI 驱动的内容管理保持一致的发布节奏。
- 将本地目录中的图片和视频内容同步到社交平台。
- 通过自动化的标题验证和保存流程简化草稿创建过程。
- 在您的 AI 环境中初始化 MCP 服务器以建立连接。
- 通过扫描一次二维码进行身份验证;该技能会持久化会话供以后使用。
- 发出指定媒体文件、标题和描述的自然语言命令。
- 该技能通过 Playwright 启动浏览器实例以访问创作平台。
- 执行标题验证,上传媒体,并利用高级选择器安全地保存内容。
小红书上传助手 配置指南
导航到服务器目录并安装依赖项:
cd server
npm install
npm run build
npx playwright install chromium
将以下内容添加到您的配置文件中:
{
"mcpServers": {
"xiaohongshu": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/xiaohongshu-upload-skill/server/build/index.js"
]
}
}
}
小红书上传助手 数据架构与分类体系
| 组件 | 描述 |
|---|---|
| 会话数据 | 登录 Cookie 的本地存储,用于持久访问 |
| 媒体支持 | 支持通过本地文件路径上传图片和视频 |
| 标题逻辑 | 自动截断至 20 个字符以符合平台合规性 |
| 元数据 | 映射到小红书平台字段的标题和描述字段 |
name: Xiaohongshu Uploader
description: Upload images and videos to Xiaohongshu Creator Platform using a local MCP server with browser automation. Features enhanced title validation and improved draft saving.
Xiaohongshu Uploader Skill
This skill provides a Model Context Protocol (MCP) server that allows Clawdbot to upload content to Xiaohongshu.
Features
- Smart Login: Automates login session persistence. Just scan the QR code once.
- Auto-Upload: Supports uploading images with titles and descriptions via natural language commands.
- Title Validation: Automatically validates and trims titles to under 20 characters to ensure proper saving.
- Enhanced Save Functionality: Uses "暂存离开" (Save and Exit) button for more reliable draft saving.
- Browser Automation: Leveraging Playwright for robust interaction with the Creator Platform.
- Improved Error Handling: Better fallback mechanisms and error reporting.
Prerequisites
- Node.js installed.
- Playwright browsers installed (the setup script will handle this).
Setup
-
Navigate to the
serverdirectory:cd server npm install npm run build npx playwright install chromium -
Add to your Clawdbot/Claude Desktop configuration:
{ "mcpServers": { "xiaohongshu": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/xiaohongshu-upload-skill/server/build/index.js" ] } } }Note: Replace
/ABSOLUTE/PATH/TOwith the actual full path to this skill folder.
Usage
1. Login
First time use requires login.
- Command: "Login to Xiaohongshu"
- Action: Scan the QR code in the popped-up browser.
- Confirmation: Wait for the browser to close or the tool to report success.
2. Upload
- Command: "Upload [file] to Xiaohongshu with title [title] and description [content]"
- Action: The agent will automate the upload process.
- Automatic Title Validation: If your title exceeds 20 characters, it will be automatically truncated to ensure proper saving.
Troubleshooting
- Login Failed: Ensure you didn't close the window manually before the success message.
- Browser not opening: Check if
npx playwright installwas run. - Draft not saving: Titles must be under 20 characters. The system will automatically truncate longer titles.
- Save button not found: The system now tries multiple save button variations including "暂存离开", "保存草稿", and "存草稿".