npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

rednote-pic-mcp

v1.0.1

Published

MCP server for generating Xiaohongshu (RedNote) content using remote webhooks

Readme

Xiaohongshu (RedNote) MCP Tool

一个基于 MCP (Model Context Protocol) 的工具,用于自动化生成小红书文案及配图。

功能介绍

本工具提供三个主要功能,通过 HTTP Webhook 与后端服务交互:

  1. 文案生成 (generate_copy):

    • 功能描述: 根据用户提供的主题或详细文档,生成符合小红书风格的营销种草文案。
    • 输入参数: topic (string) - 文案主题或详细需求文档。
    • 输出内容: 生成的文案内容。
  2. 图片生成 (generate_images):

    • 功能描述: 根据确认的文案内容,启动后台工作流生成 3 套不同风格或构图的图片。
    • 输入参数: content (string) - 用于生成图片的确定版文案内容。
    • 输出内容: 工作流 ID (workflow_id) - 用于后续查询结果。
  3. 结果获取 (get_results):

    • 功能描述: 根据工作流 ID 异步查询生图任务的状态和结果。如果生成完成,返回文案和 3 套图片的下载地址。
    • 输入参数: workflow_id (string) - 生图工具返回的任务 ID。
    • 输出内容: 包含文案和图片 URL 的 JSON 数据。

使用指南 (Usage)

方式 1: 在 Claude Desktop 中使用 (推荐)

你不需要下载源码,只需配置 Claude Desktop 即可直接使用已发布的 npm 包。

编辑你的配置文件:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

添加如下配置:

{
  "mcpServers": {
    "rednote": {
      "command": "npx",
      "args": [
        "-y",
        "rednote-pic-mcp"
      ]
    }
  }
}

保存文件并重启 Claude Desktop 即可。

方式 2: 开发者手动安装

如果你想进行二次开发或本地调试:

  1. 克隆代码并安装依赖:
git clone <your-repo-url>
cd rednote-mcp
npm install
  1. 编译项目:
npm run build
  1. 调试运行:
# 开发模式
npx @modelcontextprotocol/inspector node src/index.ts

方式 3: 快速测试 (无需安装)

如果你想直接测试已发布的包,可以使用 MCP Inspector:

npx @modelcontextprotocol/inspector npx -y rednote-pic-mcp

这将启动一个本地网页调试界面,让你可以在浏览器中直接测试所有工具。

使用流程示例

  1. 用户: "帮我写一篇关于'秋季穿搭'的小红书文案"
  2. 模型: 调用 generate_copy(topic="秋季穿搭")
  3. 工具: 返回生成好的文案文本。
  4. 用户: "这个文案不错,帮我生成图片"
  5. 模型: 调用 generate_images(content="[刚才生成的文案...]")
  6. 工具: 返回 {"workflow_id": "12345..."}
  7. 模型: (等待片刻后) 调用 get_results(workflow_id="12345...")
  8. 工具: 返回最终的图片 URL 和文案。