xpzouying/xiaohongshu-mcp
MCP for xiaohongshu.com
bb6fa2e20871Paths 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
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 18 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGHTool
publish_contentrequests any address by design: an agent steered by prompt injection can use it that way. - MEDIUM1 production dependency has 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.
- Limit where it can connect
publish_contentcan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
publish_content, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
golang.org/x/crypto0.58.1-0.20261009181718-2f1f834330b2 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 18 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.
favorite_feed, get_login_qrcode, get_my_profile, get_unread_count, like_feed, like_notification and 7 morefavorite_feed, get_login_qrcode, get_my_profile, get_unread_count, like_feed, like_notification and 7 morefavorite_feed, get_login_qrcode, get_my_profile, get_unread_count, like_feed, like_notification and 7 moredelete_cookies, favorite_feed, get_login_qrcode, get_my_profile, get_unread_count, like_feed and 8 moreNo tool was seen to: read passwords, tokens or keys; touch sensitive locations.
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.
1 request address could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files13 tools · favorite_feed, get_login_qrcode, get_my_profile +10
- web or API responses1 tool · publish_content
Tool annotations
9 of 18 tools declare annotations. readOnlyHint 9.
Tools, prompts and resources (18: 18 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
publish_contenttool 发布小红书图文内容ProcessesFilesNetworkEnv varsoutside textRequests any address
发布小红书图文内容
check_login_statustool 检查小红书登录状态read-only (declared)
检查小红书登录状态
delete_cookiestool 删除 cookies 文件,重置登录状态。删除后需要重新登录。Env vars
删除 cookies 文件,重置登录状态。删除后需要重新登录。
favorite_feedtool 收藏指定笔记或取消收藏(如已收藏将跳过收藏,如未收藏将跳过取消收藏)ProcessesFilesNetworkEnv varsoutside text
收藏指定笔记或取消收藏(如已收藏将跳过收藏,如未收藏将跳过取消收藏)
get_feed_detailtool 获取小红书笔记详情,返回笔记内容、图片、作者信息、互动数据(点赞/收藏/分享数)及评论列表。视频笔记额外返回 video 字段,含各编码档位的视频直链与字幕地址(均带签名、有时效)。默认返回前10条一级评论,如需更多评论请设置load_all_comments=trueread-only (declared)
获取小红书笔记详情,返回笔记内容、图片、作者信息、互动数据(点赞/收藏/分享数)及评论列表。视频笔记额外返回 video 字段,含各编码档位的视频直链与字幕地址(均带签名、有时效)。默认返回前10条一级评论,如需更多评论请设置load_all_comments=true
get_login_qrcodetool 获取登录二维码(返回 Base64 图片和超时时间)ProcessesFilesNetworkEnv varsoutside textread-only (declared)
获取登录二维码(返回 Base64 图片和超时时间)
get_my_profiletool 获取当前登录用户的主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(自己发的笔记,默认)、fav(自己收藏的)、liked(自己点赞的)ProcessesFilesNetworkEnv varsoutside textread-only (declared)
获取当前登录用户的主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(自己发的笔记,默认)、fav(自己收藏的)、liked(自己点赞的)
get_unread_counttool 获取通知未读数,返回「评论和@」「赞和收藏」「新增关注」三个分区各自的未读条数。不会清除未读标记。查看具体内容用 list_notifications。ProcessesFilesNetworkEnv varsoutside textread-only (declared)
获取通知未读数,返回「评论和@」「赞和收藏」「新增关注」三个分区各自的未读条数。不会清除未读标记。查看具体内容用 list_notifications。
like_feedtool 为指定笔记点赞或取消点赞(如已点赞将跳过点赞,如未点赞将跳过取消点赞)ProcessesFilesNetworkEnv varsoutside text
为指定笔记点赞或取消点赞(如已点赞将跳过点赞,如未点赞将跳过取消点赞)
like_notificationtool 给「评论和@」里的一条评论点赞或取消点赞。comment_id 从 list_notifications 获取(其 liked 字段是当前状态)。已是目标状态时跳过。ProcessesFilesNetworkEnv varsoutside text
给「评论和@」里的一条评论点赞或取消点赞。comment_id 从 list_notifications 获取(其 liked 字段是当前状态)。已是目标状态时跳过。
list_feedstool 获取首页 Feeds 列表ProcessesFilesNetworkEnv varsoutside textread-only (declared)
获取首页 Feeds 列表
list_notificationstool 获取通知列表。返回评论内容、评论者、以及对应笔记的 feed_id 和 xsec_token(可用于 get_feed_detail 读原帖)。已删除或不可见的条目会被过滤,过滤数量见 filtered 字段。注意:会清除该分区的未读标记,只需要未读数时用 get_unread_count。ProcessesFilesNetworkEnv varsoutside textread-only (declared)
获取通知列表。返回评论内容、评论者、以及对应笔记的 feed_id 和 xsec_token(可用于 get_feed_detail 读原帖)。已删除或不可见的条目会被过滤,过滤数量见 filtered 字段。注意:会清除该分区的未读标记,只需要未读数时用 get_unread_count。
post_comment_to_feedtool 发表评论到小红书笔记ProcessesFilesNetworkEnv varsoutside text
发表评论到小红书笔记
publish_with_videotool 发布小红书视频内容(仅支持本地单个视频文件)
发布小红书视频内容(仅支持本地单个视频文件)
reply_comment_in_feedtool 回复小红书笔记下的指定评论ProcessesFilesNetworkEnv varsoutside text
回复小红书笔记下的指定评论
reply_notificationtool 回复「评论和@」里的一条评论。comment_id 从 list_notifications 获取。适合处理收到的评论,无需先定位笔记。ProcessesFilesNetworkEnv varsoutside text
回复「评论和@」里的一条评论。comment_id 从 list_notifications 获取。适合处理收到的评论,无需先定位笔记。
search_feedstool 搜索小红书内容(需要已登录)ProcessesFilesNetworkEnv varsoutside textread-only (declared)
搜索小红书内容(需要已登录)
user_profiletool 获取指定的小红书用户主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(笔记,默认)、fav(收藏)、liked(点赞),后两者可能被对方设为不公开read-only (declared)
获取指定的小红书用户主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(笔记,默认)、fav(收藏)、liked(点赞),后两者可能被对方设为不公开
Text the model reads (18)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
check_login_status tool
检查小红书登录状态
get_login_qrcode tool
获取登录二维码(返回 Base64 图片和超时时间)
delete_cookies tool
删除 cookies 文件,重置登录状态。删除后需要重新登录。
publish_content tool
发布小红书图文内容
list_feeds tool
获取首页 Feeds 列表
search_feeds tool
搜索小红书内容(需要已登录)
get_feed_detail tool
获取小红书笔记详情,返回笔记内容、图片、作者信息、互动数据(点赞/收藏/分享数)及评论列表。视频笔记额外返回 video 字段,含各编码档位的视频直链与字幕地址(均带签名、有时效)。默认返回前10条一级评论,如需更多评论请设置load_all_comments=true
user_profile tool
获取指定的小红书用户主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(笔记,默认)、fav(收藏)、liked(点赞),后两者可能被对方设为不公开
post_comment_to_feed tool
发表评论到小红书笔记
reply_comment_in_feed tool
回复小红书笔记下的指定评论
publish_with_video tool
发布小红书视频内容(仅支持本地单个视频文件)
like_feed tool
为指定笔记点赞或取消点赞(如已点赞将跳过点赞,如未点赞将跳过取消点赞)
favorite_feed tool
收藏指定笔记或取消收藏(如已收藏将跳过收藏,如未收藏将跳过取消收藏)
get_my_profile tool
获取当前登录用户的主页,返回用户基本信息,关注、粉丝、获赞量,以及指定 tab 下的内容。tab 可选 note(自己发的笔记,默认)、fav(自己收藏的)、liked(自己点赞的)
get_unread_count tool
获取通知未读数,返回「评论和@」「赞和收藏」「新增关注」三个分区各自的未读条数。不会清除未读标记。查看具体内容用 list_notifications。
list_notifications tool
获取通知列表。返回评论内容、评论者、以及对应笔记的 feed_id 和 xsec_token(可用于 get_feed_detail 读原帖)。已删除或不可见的条目会被过滤,过滤数量见 filtered 字段。注意:会清除该分区的未读标记,只需要未读数时用 get_unread_count。
reply_notification tool
回复「评论和@」里的一条评论。comment_id 从 list_notifications 获取。适合处理收到的评论,无需先定位笔记。
like_notification tool
给「评论和@」里的一条评论点赞或取消点赞。comment_id 从 list_notifications 获取(其 liked 字段是当前状态)。已是目标状态时跳过。
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 — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any address2 findings the scanner could not decide; see the findings below
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processes13 of 18 capabilities start processes; 5 more call code the scanner could not follow, where it may happen
- Tools that touch files13 of 18 capabilities touch files; 5 more call code the scanner could not follow, where it may happen
- Tools that call the network13 of 18 capabilities call the network; 5 more call code the scanner could not follow, where it may happen
Where the code is: 18 handlers in 1 file at commit bb6fa2e20871
- 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: go.mod
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies MEDIUM1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/modelcontextprotocol/go-sdk v1.8.0
- 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 18 capabilities; 18 more call code the scanner could not follow, where it may happen
- Environment variables14 capabilities read environment variables (often API keys)
- 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 (1 in production)
golang.org/x/cryptoGo v0.58.0 MEDIUM 1 advisory 2026-10-09
- MEDIUMGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
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 | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/modelcontextprotocol/go-sdk v1.8.0 |
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 | 2026-11-10 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-08-03 |
| Topics | mcp mcp-server xiaohongshu-mcp |
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.