360 Secure SkillHub
360 安全技能中心

Skill Xhs Mcp

该 Skill 通过本地 MCP 服务提供小红书自动化能力,共 13 个工具,覆盖登录状态与二维码检查、Cookie 删除、首页与笔记搜索浏览、笔记详情、点赞、收藏、评论、用户资料,以及图文和视频发布;要求 Node.js >= 18 并运行 xhs-mcp-service。

weznai
weznai
热度 87.10
最近更新 2026-05-18 12:24:35
分类:营销依赖:代码执行 / MCP 服务应用场景:社交媒体 / 自动化脚本 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-xhs-mcp
Metadata
name
skill-xhs-mcp-oper
description
XiaoHongShu (RED/XHS) automation assistant via local MCP service

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

  1. check_login_status - Check login status
  2. get_login_qrcode - Get login QR code
  3. delete_cookies - Delete login state
  4. list_feeds - Get home feed
  5. search_feeds - Search notes
  6. get_feed_detail - Get note details
  7. like_feed - Like/unlike note
  8. favorite_feed - Favorite/unfavorite note
  9. post_comment_to_feed - Post comment
  10. reply_comment_in_feed - Reply to comment
  11. user_profile - Get user profile
  12. publish_content - Publish image note
  13. 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