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
git clone https://github.com/weznai/xhs-mcp-service.git
cd xhs-mcp-service
npm install
npm run login
npm start
Tools
- check_login_status - Check login status
- get_login_qrcode - Get login QR code
- delete_cookies - Delete login state
- list_feeds - Get home feed
- search_feeds - Search notes
- get_feed_detail - Get note details
- like_feed - Like/unlike note
- favorite_feed - Favorite/unfavorite note
- post_comment_to_feed - Post comment
- reply_comment_in_feed - Reply to comment
- user_profile - Get user profile
- publish_content - Publish image note
- publish_with_video - Publish video note
Usage
import { searchFeeds, likeFeed } from './src/xhs-tools.js';
const results = await searchFeeds('coffee');
await likeFeed(results.feeds[0].id, results.feeds[0].xsec_token);
License
MIT