
Xhs Interact
- 5 installs
- 244 repo stars
- Updated March 5, 2026
- autoclaw-cc/xiaohongshu-mcp-skills
xhs-interact is a Claude skill that likes, favorites, comments on, and replies to Xiaohongshu notes through the xiaohongshu-mcp service.
About
This skill performs interactions on Xiaohongshu notes: liking or unliking, favoriting or unfavoriting, commenting, and replying to comments. A user invokes it to engage with a note. Likes and favorites run directly and idempotently, while comments and replies are shown for confirmation first because they post publicly and cannot be undone. Every action needs a feed_id and xsec_token obtained from search or feed results.
- Interacts with Xiaohongshu notes: like/unlike, favorite/unfavorite, comment, reply
- Requires feed_id and xsec_token; likes/favorites are idempotent and reversible
- Shows comment and reply content for user confirmation before the public, irreversible post
Xhs Interact by the numbers
- 5 all-time installs (skills.sh)
- Ranked #1,723 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
xhs-interact capabilities & compatibility
Free; needs a local xiaohongshu-mcp service and a logged-in Xiaohongshu account.
- Capabilities
- social engagement · note interaction · comment posting
- Use cases
- marketing
- Runs
- Runs locally
- Pricing
- Free
What xhs-interact says it does
对小红书笔记进行互动:点赞/取消点赞、收藏/取消收藏、发表评论、回复评论。
所有操作都需要 `feed_id` + `xsec_token`(来自搜索或详情结果,编造会导致报错)
npx skills add https://github.com/autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-interactAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5 |
|---|---|
| repo stars | ★ 244 |
| Last updated | March 5, 2026 |
| Repository | autoclaw-cc/xiaohongshu-mcp-skills ↗ |
What it does
Like, favorite, comment on, or reply to Xiaohongshu notes via the MCP service.
Who is it for?
Engaging with Xiaohongshu notes through likes, favorites, comments, and replies.
Skip if: Publishing new notes (use post-to-xhs) or read-only browsing (use xhs-explore).
When should I use this skill?
The user wants to like, favorite, comment on, or reply to a Xiaohongshu note.
What you get
The chosen like, favorite, comment, or reply action is applied to the target Xiaohongshu note.
- applied like, favorite, comment, or reply on a Xiaohongshu note
By the numbers
- 4 interaction types (like, favorite, comment, reply)
Files
输入判断
根据用户意图路由:
- 点赞/取消点赞 → 点赞流程
- 收藏/取消收藏 → 收藏流程
- 发表评论 → 评论流程
- 回复评论 → 回复流程
约束
- 评论和回复执行前展示内容让用户确认(评论以用户身份公开发表,无法撤回)
- 点赞和收藏可直接执行(操作可逆,MCP 服务有幂等处理)
- 所有操作都需要
feed_id+xsec_token(来自搜索或详情结果,编造会导致报错)
执行流程
点赞
调用 like_feed:
feed_id(string,必填)xsec_token(string,必填)unlike(bool,可选)— true 取消点赞,默认 false 点赞
已点赞时再点赞会自动跳过,反之同理。
收藏
调用 favorite_feed:
feed_id(string,必填)xsec_token(string,必填)unfavorite(bool,可选)— true 取消收藏,默认 false 收藏
已收藏时再收藏会自动跳过,反之同理。
发表评论
调用 post_comment_to_feed:
feed_id(string,必填)xsec_token(string,必填)content(string,必填)— 评论内容
发送前展示评论内容让用户确认。
回复评论
调用 reply_comment_in_feed:
feed_id(string,必填)xsec_token(string,必填)comment_id(string,可选)— 目标评论 IDuser_id(string,可选)— 目标评论作者 IDcontent(string,必填)— 回复内容
comment_id 和 user_id 至少提供一个。
发送前展示回复内容让用户确认。
失败处理
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 缺少 feed_id/xsec_token | 提示先搜索或浏览获取笔记信息 |
| 笔记不可评论 | 告知用户该笔记已关闭评论 |
Related skills
FAQ
Which actions need confirmation?
Comments and replies, because they post publicly and cannot be retracted; likes and favorites run directly and are reversible.
What is required for every action?
A feed_id and xsec_token from search or note-detail results; fabricating them causes errors.