Redbook Poster

by myzxlin

314 downloads
Not rated
GitHub

About

A Xiaohongshu Content Publishing MCP Server that uses Selenium WebDriver for browser automation, supporting the publishing of both text-and-image notes and video notes.

Details

Author
myzxlin
Downloads
314
Categories
Automation

- Publish image-text notes (supported tool: create_note)
- Publish video notes (supported tool: create_video_note)
- Browser automation via Selenium WebDriver
- Persistent cookie and token storage for repeat logins

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Redbook Poster
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Configure the server in your MCP settings with environment variables for your phone number, a local file path to store tokens and cookies, and a verification code. Run npm run start to launch a browser; on first use, enter the verification code to log in. The server saves cookies and tokens for subsequent runs.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "redbook poster": {
            "redbook-poster": {
                "command": "node",
                "args": [
                    ".../redbook-publish-mcp/index.js"
                ],
                "env": {
                    "phone": "your phone number",
                    "jsonPath": "your local file path to store token and cookies",
                    "verificationCode": "your verification code"
                }
            }
        }
    }
}

McpServers

{
    "redbook-poster": {
        "command": "node",
        "args": [
            ".../redbook-publish-mcp/index.js"
        ],
        "env": {
            "phone": "your phone number",
            "jsonPath": "your local file path to store token and cookies",
            "verificationCode": "your verification code"
        }
    }
}

Redbook-Publish-MCP

小红书内容发布 MCP 服务器,使用 Selenium WebDriver 进行浏览器自动化操作,支持发布图文笔记和视频笔记。

MCP Settings

{
  "mcpServers": {
    "redbook-poster": {
      "command": "node",
      "args": [".../redbook-publish-mcp/index.js"],
      "env": {
        "phone": "your phone number",
        "jsonPath": "your local file path to store token and cookies",
        "verificationCode": "your verification code"
      }
    }
  }
}

项目启动

npm run start

执行后会打开浏览器,首次使用需要登录获取 cookies,在 mcp settings 环境变量中输入验证码完成登录流程。
登录成功后,cookies 和 token 将保存在 jsonPath 目录下。后续登录将使用保存的 cookies 和 token。

tool 示例

- 发布图文笔记 create_note

{
  "title": "测试标题",
  "content": "这是一条图文笔记",
  "images": ["https://example.com/image.jpg", "/path/to/image.jpg"]
}

- 发布视频笔记 create_video_note

{
  "title": "测试标题",
  "content": "这是一条视频笔记",
  "videos": ["https://example.com/video.mp4"]
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.