小红书自动评论工具(MCP Server)
@chenningling
About 小红书自动评论工具(MCP Server)
这是一款基于 Playwright 开发的小红书自动搜索和评论工具,作为 MCP Server,可通过特定配置接入 MCP Client,帮助用户自动完成登录小红书、搜索关键词、获取笔记内容及发布智能评论等操作。
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"RedBook-Search-Comment-MCP": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is 小红书自动评论工具(MCP Server)?
一款基于 Playwright 开发的小红书自动搜索和评论工具,作为 MCP Server 可接入 MCP Client(如 Claude for Desktop),帮助用户自动完成登录小红书、搜索关键词、获取笔记内容及发布智能评论等操作。
How to use 小红书自动评论工具(MCP Server)?
确保已安装 Python 3.8+,克隆项目后创建虚拟环境并安装依赖(pip install -r requirements.txt、pip install fastmcp、playwright install)。在 MCP Client 配置文件中填写虚拟环境 Python 解释器和 xiaohongshu_mcp.py 的完整绝对路径。连接后通过自然语言指令调用各工具函数,如“帮我登录小红书”。
Key features 小红书自动评论工具(MCP Server)
- 自动登录,支持首次扫码并保存登录状态
- 关键词搜索笔记,可指定返回结果数量
- 获取笔记详细内容(标题、作者、时间、正文)
- 获取笔记评论信息(评论者、内容、时间)
- 发布智能评论,支持引流、点赞、咨询、专业四种类型
Use cases 小红书自动评论工具(MCP Server)
- 营销人员批量搜索关键词并发布引流评论
- 内容创作者自动化管理笔记互动,提升曝光
- 研究人员收集热门笔记内容与评论数据
- 个人用户自动化日常互动,增加账号活跃度
FAQ from 小红书自动评论工具(MCP Server)
连接失败怎么办?
确保使用了虚拟环境中 Python 解释器的完整绝对路径,确认 MCP 服务器正在运行,可尝试重启服务器和客户端。
如何解决“Page.goto: Target page, context or browser has been closed”错误?
重启 MCP 服务器,重新连接并登录即可。
首次登录需要什么操作?
首次使用需要手动扫码登录,成功后会保存登录状态,后续无需重复扫码。
需要哪些环境依赖?
依赖 Python 3.8+、Playwright 浏览器及 fastmcp 包,具体依赖列表见项目中的 requirements.txt。
使用本工具有什么风险?
需严格遵守小红书平台规定,避免过度操作,防止账号被封禁;平台更新可能影响功能可用性。
Frequently asked questions
连接失败怎么办?
确保使用了虚拟环境中 Python 解释器的完整绝对路径,确认 MCP 服务器正在运行,可尝试重启服务器和客户端。
如何解决“Page.goto: Target page, context or browser has been closed”错误?
重启 MCP 服务器,重新连接并登录即可。
首次登录需要什么操作?
首次使用需要手动扫码登录,成功后会保存登录状态,后续无需重复扫码。
需要哪些环境依赖?
依赖 Python 3.8+、Playwright 浏览器及 fastmcp 包,具体依赖列表见项目中的 requirements.txt。
使用本工具有什么风险?
需严格遵守小红书平台规定,避免过度操作,防止账号被封禁;平台更新可能影响功能可用性。
Basic information
More Search MCP servers
duckduckgo-search MCP Server
zhsamaGoogle Search Console MCP Server
ahonnA Model Context Protocol (MCP) server providing access to Google Search Console
perplexity-mcp MCP server
jsonallenA Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API.
Tavily Mcp
tavily-aiProduction ready MCP server with real-time search, extract, map & crawl.
G-Search MCP
jae-jaeA powerful MCP server for Google search that enables parallel searching with multiple keywords simultaneously.
Comments