skills$openclaw/Xiaohongshu Uploader
pxfeng7.9k

by pxfeng

Xiaohongshu Uploader – OpenClaw Skill

Xiaohongshu Uploader is an OpenClaw Skills integration for ai ml workflows. Upload images and videos to Xiaohongshu Creator Platform using a local MCP server with browser automation. Features enhanced title validation and improved draft saving.

7.9k stars3.6k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026ai ml

Skill Snapshot

nameXiaohongshu Uploader
descriptionUpload images and videos to Xiaohongshu Creator Platform using a local MCP server with browser automation. Features enhanced title validation and improved draft saving. OpenClaw Skills integration.
ownerpxfeng
repositorypxfeng/xiaohongshu-mcp
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @pxfeng/xiaohongshu-mcp
last updatedFeb 7, 2026

Maintainer

pxfeng

pxfeng

Maintains Xiaohongshu Uploader in the OpenClaw Skills directory.

View GitHub profile
File Explorer
12 files
.
.clawhub
origin.json
147 B
_meta.json
460 B
CHANGELOG.md
343 B
optimization_report.md
1.8 KB
optimized_xiaohongshu.ts
6.6 KB
publish_github_method.md
1.7 KB
publish_to_clawdhub.md
1.9 KB
README.md
1.1 KB
SKILL.md
2.5 KB
update_summary.md
1.8 KB
workflow_documentation.md
1.8 KB
SKILL.md

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

  1. Navigate to the server directory:

    cd server
    npm install
    npm run build
    npx playwright install chromium
    
  2. 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/TO with 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 install was 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 "存草稿".
README.md

Xiaohongshu Upload Skill for Clawdbot

This skill integrates Xiaohongshu (Little Red Book) publishing capabilities into Clawdbot using a local MCP server.

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.

Version 1.1.0 Updates

  • Added title length validation (automatically truncates to 20 characters if needed)
  • Prioritized "暂存离开" (Save and Exit) button for more reliable draft saving
  • Improved timing between operations to prevent failures
  • Enhanced error handling with multiple fallback selectors
  • Better success verification after saving

Installation

See SKILL.md for detailed setup instructions.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

- Node.js installed. - Playwright browsers installed (the setup script will handle this).

FAQ

How do I install Xiaohongshu Uploader?

Run openclaw add @pxfeng/xiaohongshu-mcp in your terminal. This installs Xiaohongshu Uploader into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/pxfeng/xiaohongshu-mcp. Review commits and README documentation before installing.