小红书自动评论工具(MCP Server)

by chenningling

42 stars
726 downloads
Not rated
GitHub

About

这是一款基于 Playwright 开发的小红书自动搜索和评论工具,作为 MCP Server,可通过特定配置接入 MCP Client,帮助用户自动完成登录小红书、搜索关键词、获取笔记内容及发布智能评论等操作。

Details

Author
chenningling
GitHub stars
42
Downloads
726
Categories
Search, Web Scraping, Other, Productivity, Knowledge Base

- 自动登录,支持首次扫码并保存登录状态
- 关键词搜索笔记,可指定返回结果数量
- 获取笔记详细内容(标题、作者、时间、正文)
- 获取笔记评论信息(评论者、内容、时间)
- 发布智能评论,支持引流、点赞、咨询、专业四种类型

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 小红书自动评论工具(MCP Server)
    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

确保已安装 Python 3.8+,克隆项目后创建虚拟环境并安装依赖(pip install -r requirements.txtpip install fastmcpplaywright install)。在 MCP Client 配置文件中填写虚拟环境 Python 解释器和 xiaohongshu_mcp.py 的完整绝对路径。连接后通过自然语言指令调用各工具函数,如“帮我登录小红书”。

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "\u5c0f\u7ea2\u4e66\u81ea\u52a8\u8bc4\u8bba\u5de5\u5177\uff08mcp server\uff09": {
            "RedBook-Search-Comment-MCP": {
                "command": "python3",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "RedBook-Search-Comment-MCP": {
        "command": "python3",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

注:Redbook-Search-Comment-MCP2.0已经发布!直接点击前往使用即可!

2.0主要优化内容如下: - 优化了搜索笔记时,标题不显示的问题 - 新增了多类获取笔记的方法,确保能完整获取笔记内容 - 重构了评论功能,利用MCP客户端(如Claude)的AI能力生成更自然的评论 - 将功能模块化,分为笔记分析、评论生成和评论发布三个独立模块
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.