RedBook-Search-Comment-MCP logo

RedBook-Search-Comment-MCP

Free

(v1.0版本) 基于 Playwright 的搜索与评论工具,帮助用户完成基础的自动化操作。

FreeFree tier
Inputs: url
Type
Open Source

About RedBook-Search-Comment-MCP

RedBook-Search-Comment-MCP is an open-source MCP (Model Context Protocol) server built on Playwright for automating interactions with Xiaohongshu (Little Red Book), a Chinese social media and e-commerce platform. It enables users to perform automated login via QR code scanning, search for notes by keywords, retrieve detailed note content and comments, and post intelligent comments with multiple predefined types (traffic generation, likes, consultation, professional). The tool is designed to integrate with MCP clients such as Claude for Desktop, allowing AI assistants to directly execute these operations. It uses a saved login state to avoid repeated scanning and leverages the client's AI capabilities to generate natural-sounding comments. The project is actively maintained with a version 2.0 that improves note fetching and comment generation.

Key Features

Automatic login with QR code scanning and session persistence
Keyword search for Xiaohongshu notes with configurable result count
Fetch note content (title, author, publish time, body) via URL
Fetch note comments (commenter, content, time) via URL
Post intelligent comments with four types: 引流 (traffic), 点赞 (like), 咨询 (consultation), 专业 (professional)
Integrates as MCP Server with clients like Claude for Desktop
Modular architecture in v2.0 separating note analysis, comment generation, and comment publishing

Pros & Cons

Pros
  • Fully open source and free to use
  • Automates repetitive browsing and commenting tasks
  • Smart comment generation leverages AI for natural responses
  • Multiple comment strategies to suit different interaction goals
  • Easy integration with MCP-compatible AI clients
  • Login state is saved for reuse across sessions
Cons
  • Requires manual QR code scanning on first login
  • Dependent on Playwright and browser installation
  • Only supports the Xiaohongshu platform (no multi-platform)
  • May encounter browser session issues requiring restart
  • Python environment and dependencies must be set up correctly

Best For

Automating social media engagement and marketing on XiaohongshuContent analysis and competitive research for brands and creatorsCommunity management by posting context-aware commentsData collection for research on Xiaohongshu trendsIntegration with AI assistants to perform Xiaohongshu tasks via natural language

FAQ

ModuleNotFoundError 错误如何处理?
确保在虚拟环境中安装了所有依赖(pip install -r requirements.txt 和 pip install fastmcp),并使用正确的Python解释器路径。