MCP ExplorerExplorer

Redbook Mcp

@myzxlinon a year ago
1 MIT
FreeCommunity
AI Systems
# Xiaohongshu Content Publishing MCP Server This server uses Selenium WebDriver for browser automation, supporting the publishing of both image-text notes and video notes.

Overview

What is Redbook Mcp

redbook-mcp is a content publishing MCP server designed for Xiaohongshu (Little Red Book). It utilizes Playwright for browser automation, enabling users to publish both image-text notes and video notes seamlessly.

Use cases

Use cases for redbook-mcp include automating the process of publishing promotional content, managing multiple accounts for social media marketing, and streamlining the workflow for content creators who regularly post on Xiaohongshu.

How to use

To use redbook-mcp, first set up the MCP settings with your phone number, local file path for storing tokens and cookies, and verification code. Start the server with ‘npm run start’, log in to obtain cookies, and follow the prompts to complete the login process. After successful login, you can publish notes using the provided JSON format for image-text and video notes.

Key features

Key features of redbook-mcp include browser automation with Playwright, support for publishing both image-text and video notes, and the ability to store session cookies and tokens for future logins.

Where to use

redbook-mcp is primarily used in social media content creation and management, specifically for platforms like Xiaohongshu that require automated posting of multimedia content.

Content

Redbook-Publish-MCP

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

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"
  ]
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers