XHS MCP Skill
XiaoHongShu automation skill via MCP protocol.
Features
- - 13 complete tools
- Login management
- Content search and browsing
- Social interactions (like, favorite, comment)
- Content publishing (images and videos)
Requirements
- - Node.js >= 18
- xhs-mcp-service running on localhost:18060
Installation
CODEBLOCK0
Tools
- 1. checkloginstatus - Check login status
- getloginqrcode - Get login QR code
- deletecookies - Delete login state
- listfeeds - Get home feed
- searchfeeds - Search notes
- getfeeddetail - Get note details
- likefeed - Like/unlike note
- favoritefeed - Favorite/unfavorite note
- postcommenttofeed - Post comment
- replycommentinfeed - Reply to comment
- userprofile - Get user profile
- publishcontent - Publish image note
- publishwith_video - Publish video note
Usage
CODEBLOCK1
License
MIT
XHS MCP 技能
通过 MCP 协议实现的小红书自动化技能。
功能特性
- - 13 个完整工具
- 登录管理
- 内容搜索与浏览
- 社交互动(点赞、收藏、评论)
- 内容发布(图片和视频)
环境要求
- - Node.js >= 18
- xhs-mcp-service 运行在 localhost:18060
安装步骤
bash
git clone https://github.com/weznai/xhs-mcp-service.git
cd xhs-mcp-service
npm install
npm run login
npm start
工具列表
- 1. checkloginstatus - 检查登录状态
- getloginqrcode - 获取登录二维码
- deletecookies - 删除登录状态
- listfeeds - 获取首页信息流
- searchfeeds - 搜索笔记
- getfeeddetail - 获取笔记详情
- likefeed - 点赞/取消点赞笔记
- favoritefeed - 收藏/取消收藏笔记
- postcommenttofeed - 发表评论
- replycommentinfeed - 回复评论
- userprofile - 获取用户资料
- publishcontent - 发布图文笔记
- publishwith_video - 发布视频笔记
使用示例
javascript
import { searchFeeds, likeFeed } from ./src/xhs-tools.js;
const results = await searchFeeds(咖啡);
await likeFeed(results.feeds[0].id, results.feeds[0].xsec_token);
许可证
MIT