Install
openclaw skills install dragon-xiaohongshu自动发布内容到小红书平台。支持发布图文、检查登录状态、获取登录二维码。使用场景:自动化小红书内容发布、批量发布、定时发布等。
openclaw skills install dragon-xiaohongshu自动化发布内容到小红书平台,支持图文发布、登录管理和批量操作。
小红书 MCP 服务端
xiaohongshu-mcp-windows-amd64.exemcporter CLI
npm install -g mcporter
已登录小红书账号
# 在 xiaohongshu-mcp 目录下运行
.\xiaohongshu-mcp-windows-amd64.exe
node scripts/publish.js --check
# 使用默认配置
node scripts/publish.js
# 自定义内容
node scripts/publish.js \
--title "我的标题" \
--content "正文内容..." \
--image "C:\\path\\to\\image.png" \
--tags "tag1,tag2,tag3"
配置文件:~/.mcporter/mcporter.json
{
"mcpServers": {
"xiaohongshu": {
"url": "http://localhost:18060/mcp"
}
}
}
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| title | string | 是 | 标题(最多20字) |
| content | string | 是 | 正文内容(最多1000字) |
| images | array | 是 | 图片路径数组 |
| tags | array | 否 | 标签数组 |
const publish = require('./scripts/publish');
await publish({
title: '新品推荐!超好用',
content: '今天给大家推荐一款超好用的产品...',
images: ['C:\\product.jpg'],
tags: ['好物推荐', '新品', '种草']
});
node scripts/publish.js \
--title "今天的心情日记" \
--content "今天天气真好,出去散步..." \
--image "C:\\photos\\today.jpg" \
--tags "生活,日常,心情"
解决:
解决:
node scripts/publish.js --check 检查状态node scripts/login.js 获取二维码解决:
references/config.md