chenningling/Redbook-Search-Comment-MCP2.0
这是一款基于 Playwright 开发的小红书自动搜索和评论工具,作为 MCP Server,可通过特定配置接入 MCP Client(如Claude for Desktop),帮助用户自动完成登录小红书、搜索关键词、获取笔记内容及发布AI生成评论等操作。
9ff7bb85c167Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- MEDIUM3 production dependencies have known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
python-dotenv1.2.2 or later,requests2.33.0 or later,tqdm4.66.3 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 7 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (7: 7 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
analyze_notetool 获取并分析笔记内容,返回笔记的详细信息供AI生成评论
获取并分析笔记内容,返回笔记的详细信息供AI生成评论
Args:
url: 笔记 URLget_note_commentstool 获取笔记评论
获取笔记评论
Args:
url: 笔记 URLget_note_contenttool 获取笔记内容
获取笔记内容
Args:
url: 笔记 URLlogintool 登录小红书账号
登录小红书账号
post_commenttool 发布评论到指定笔记
发布评论到指定笔记
Args:
url: 笔记 URL
comment: 要发布的评论内容post_smart_commenttool 根据帖子内容发布智能评论,增加曝光并引导用户关注或私聊
根据帖子内容发布智能评论,增加曝光并引导用户关注或私聊
Args:
url: 笔记 URL
comment_type: 评论类型,可选值:
"引流" - 引导用户关注或私聊
"点赞" - 简单互动获取好感
"咨询" - 以问题形式增加互动
"专业" - 展示专业知识建立权威
Returns:
dict: 包含笔记信息和评论类型的字典,供MCP客户端(如Claude)生成评论search_notestool 根据关键词搜索笔记
根据关键词搜索笔记
Args:
keywords: 搜索关键词
limit: 返回结果数量限制Text the model reads (7)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
login tool
登录小红书账号
search_notes tool
根据关键词搜索笔记
Args:
keywords: 搜索关键词
limit: 返回结果数量限制get_note_content tool
获取笔记内容
Args:
url: 笔记 URLget_note_comments tool
获取笔记评论
Args:
url: 笔记 URLanalyze_note tool
获取并分析笔记内容,返回笔记的详细信息供AI生成评论
Args:
url: 笔记 URLpost_smart_comment tool
根据帖子内容发布智能评论,增加曝光并引导用户关注或私聊
Args:
url: 笔记 URL
comment_type: 评论类型,可选值:
"引流" - 引导用户关注或私聊
"点赞" - 简单互动获取好感
"咨询" - 以问题形式增加互动
"专业" - 展示专业知识建立权威
Returns:
dict: 包含笔记信息和评论类型的字典,供MCP客户端(如Claude)生成评论post_comment tool
发布评论到指定笔记
Args:
url: 笔记 URL
comment: 要发布的评论内容What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 7 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 7 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 7 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 7 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 7 tool handlers traced
- Tools that start processesNot seen in the traced code of 7 capabilities; 7 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 7 capabilities; 7 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 7 capabilities; 7 more call code the scanner could not follow, where it may happen
Where the code is: 7 handlers in 1 file at commit 9ff7bb85c167
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: requirements.txt: 7 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependencies MEDIUM3 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 7 capabilities; 7 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (3 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
requestsPyPI 2.31.0 MEDIUM 6 advisories 2.32.02.32.42.33.0
- MEDIUMGHSA-gc5v-m9x4-r6x2 CVE-2026-25645 PYSEC-2026-2275Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
- MEDIUMGHSA-9wx4-h78v-vm56 CVE-2024-35195 PYSEC-2026-1873Requests `Session` object does not verify requests after making first request with verify=False
- MEDIUMPYSEC-2026-1872 CVE-2024-47081 GHSA-9hjg-9r4m-mvj7Requests vulnerable to .netrc credentials leak via malicious URLs
- MEDIUMGHSA-9hjg-9r4m-mvj7 CVE-2024-47081 PYSEC-2026-1872Requests vulnerable to .netrc credentials leak via malicious URLs
- MEDIUMPYSEC-2026-2275 CVE-2026-25645 GHSA-gc5v-m9x4-r6x2Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
- MEDIUMPYSEC-2026-1873 CVE-2024-35195 GHSA-9wx4-h78v-vm56Requests `Session` object does not verify requests after making first request with verify=False
python-dotenvPyPI 1.0.0 MEDIUM 2 advisories 1.2.2
- MEDIUMPYSEC-2026-2270 CVE-2026-28684 GHSA-mf9w-mj56-hr94python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.
- MEDIUMGHSA-mf9w-mj56-hr94 CVE-2026-28684 PYSEC-2026-2270python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
tqdmPyPI 4.66.1 MEDIUM 2 advisories 4.66.3
- MEDIUMPYSEC-2026-1976 CVE-2024-34062 GHSA-g7vv-2v7x-gj9ptqdm CLI arguments injection attack
- LOWGHSA-g7vv-2v7x-gj9p CVE-2024-34062 PYSEC-2026-1976tqdm CLI arguments injection attack
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp |
| Servers in the code | 1 (xiaohongshu_scraper) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2025-06-21 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 5 catalogs (awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org) |
|---|---|
| License | not stated |
| Created | 2025-04-22 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.