xiaohongshu

Category: Content & Multimedia | Uploader: zhjiang22zhjiang22 | Downloads: 0 | Version: v1.0(Latest)

小红书(RedNote)内容工具。使用场景: - 搜索小红书笔记并获取详情 - 获取首页推荐列表 - 获取帖子详情(正文、图片、互动数据、评论) - 发表评论 / 回复评论 - 获取用户主页和笔记列表 - 点赞、收藏帖子 - 发布图文或视频笔记 - 热点话题跟踪与分析报告 - 帖子导出为长图 触发词示例: - "搜一下小红书上的XX" - "跟踪一下小红书上的XX热点" - "分析小红书上关于XX的讨论" - "小红书XX话题报告" - "生成XX的小红书舆情报告" --- # 小红书 MCP Skill 基于 [xiaohongshu-mcp](https://github.com/xpzouying/xiaohongshu-mcp) 封装的 shell 脚本工具集。 ## 前置条件 ```bash cd scripts/ ./install-check.sh # 检查依赖(xiaohongshu-mcp、jq、python3) ./start-mcp.sh # 启动 MCP 服务(默认端口 18060) ./status.sh # 确认已登录 ``` 未登录时需扫码:`mcp-call.sh get_login_qrcode` 获取二维码,用小红书 App 扫码。 服务端口可通过 `MCP_URL` 环境变量覆盖(默认 `http://localhost:18060/mcp`)。 ## 核心数据流 **重要:** 大多数操作需要 `feed_id` + `xsec_token` 配对。这两个值从搜索/推荐/用户主页结果中获取,**不可自行构造**。 ``` search_feeds / list_feeds / user_profile │ ▼ 返回 feeds 数组,每个 feed 包含: ├── id → 用作 feed_id ├── xsecToken → 用作 xsec_token └── noteCard → 标题、作者、封面、互动数据 │ ▼ get_feed_detail(feed_id, xsec_token) │ ▼ 返回完整笔记: 正文、图片列表、评论列表 评论中包含 comment_id、user_id(用于回复评论) ``` ## 脚本参考 | 脚本 | 用途 | 参数 | |------|------|------| | `search.sh <关键词>` | 搜索笔记 | 关键词 | | `recommend.sh` | 首页推荐 | 无 | | `post-detail.sh <feed_id> <xsec_token>` | 帖子详情+评论 | 从搜索结果获取 | | `comment.sh <feed_id> <xsec_token> <内容>` | 发表评论 | 从搜索结果获取 | | `user-profile.sh <user_id> <xsec_token>` | 用户主页+笔记 | 从搜索结果获取 | | `track-topic.sh <话题> [选项]` | 热点分析报告 | `--limit N` `--output file` `--feishu` | | `export-long-image.sh` | 帖子导出长图 | `--posts-file json -o output.jpg` | | `mcp-call.sh <tool> [json_args]` | 通用 MCP 调用 | 见下方工具表 | | `start-mcp.sh` | 启动服务 | `--headless=false` `--port=N` | | `stop-mcp.sh` | 停止服务 | 无 | | `status.sh` | 检查登录 | 无 | | `install-check.sh` | 检查依赖 | 无 | ## MCP 工具详细参数 ### search_feeds — 搜索笔记 ```json {"keyword": "咖啡", "filters": {"sort_by": "最新", "note_type": "图文", "publish_time": "一周内"}} ``` filters 可选字段: - `sort_by`: 综合 | 最新 | 最多点赞 | 最多评论 | 最多收藏 - `note_type`: 不限 | 视频 | 图文 - `publish_time`: 不限 | 一天内 | 一周内 | 半年内 - `search_scope`: 不限 | 已看过 | 未看过 | 已关注 - `location`: 不限 | 同城 | 附近 ### get_feed_detail — 帖子详情 ```j

Changelog: Source: GitHub https://github.com/zhjiang22/openclaw-xhs

Directory Structure

Current level: Root

SKILL.md

Login to download/like/favorite ❤ 46 | ★ 0
Comments 0

Please login before commenting.

No comments yet. Be the first one!