Skip to main content
Glama
Xiaohongshu (RedBook) MCP Server
by xeronsh

小红书 MCP Server

⚠️ 项目已过时 / Deprecated

本项目的功能已完全可以通过 Claude Code 的 skill 来实现,无需单独安装和配置 MCP 服务器。

推荐方式:直接在 Claude Code 中使用相关 skill(如内容生成、图片生成等功能),更简单、更强大、更易维护。

本仓库仅作为历史参考保留。


基于 MCP 的小红书图文内容生成服务。

功能

  • 智能大纲生成

  • 图片生成

  • 大纲编辑

  • 项目管理

Related MCP server: Xiaohongshu MCP Python

快速开始

编辑 Claude Desktop 配置文件:

  • macOS/Linux: ~/.config/claude/config.json

  • Windows: %APPDATA%\Claude\config.json

添加配置:

{
  "mcpServers": {
    "xiaohongshu": {
      "command": "npx",
      "args": ["-y", "@xeron688/xiaohongshu-mcp"],
      "env": {
        "IMAGE_API_URL": "your_api_url",
        "IMAGE_API_KEY": "your_api_key",
        "IMAGE_MODEL": "your_model_name",
        "ENDPOINTS": "/v1/images/generations",
        "DATA_DIR": "./data"
      }
    }
  }
}

重要说明:

  • 使用 npx -y 参数自动确认安装,避免 MCP 服务器启动时卡住

  • 替换 your_api_url、your_api_key、your_model_name 为你的实际配置

重启 Claude Desktop。

使用

在 Claude 中:

帮我生成一个关于"春季穿搭"的小红书图文,9页

示例

示例1

示例2

工具

  • generate_outline - 生成大纲

  • update_outline - 更新大纲

  • generate_images - 生成图片

  • get_project - 获取项目

资源

  • projects://list - 项目列表

  • project://{projectId} - 项目详情

  • project://{projectId}/images - 项目图片

开发

pnpm install       # 安装依赖
pnpm build         # 编译
pnpm test:run      # 测试

配置详情

见 MCP_CONFIG.md

项目来源

本项目改编自 RedInk

许可证

见 LICENSE 文件

Available Tools

5 tools
generate_imagesA

Generate images for a project (cover first, then others). Use the built-in prompt to generate images with Xiaohongshu style.

Inputs: projectId (required), pages.

generate_outlineA

Create a project and save the Xiaohongshu content outline generated by Claude. Use the built-in prompt to generate outlines with proper formatting.

Inputs: theme (required), outline (required), referenceImage.

get_projectC

Get complete project details

Inputs: projectId (required).

list_all_projectsA

List all created projects with their basic information

Inputs: no named parameters.

update_outlineB

Update an existing project outline

Inputs: outline (required), projectId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct action and resource: outlining, image generation, single-project retrieval, and project listing. There is no functional overlap or ambiguity between them.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern, such as generate_outline, update_outline, and list_all_projects. The naming is predictable and clear.

    Tool Count5/5

    Five tools is a well-scoped set for a Xiaohongshu content creation workflow. Each tool serves a necessary role without redundancy or bloat.

    Completeness4/5

    The core workflow of creating and updating outlines, generating images, and viewing projects is covered. A delete project or image regeneration operation is missing, but these are minor gaps that do not block the main workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables automated interaction with Xiaohongshu (Little Red Book) social media platform through browser automation. Supports login management, status checking, and publishing text content with images to Xiaohongshu accounts.
      3
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables content creators to manage, analyze, and publish Xiaohongshu (Little Red Book) content through browser automation, with built-in templates, data analytics, and scheduling capabilities accessible via CLI or AI assistants.
      48 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables automated interaction with Xiaohongshu (Little Red Book) platform including searching posts, retrieving content and comments, and posting AI-generated comments with persistent login support.
      458
      -