skills/xiaohongshu/SKILL.md
小红书搜索、发布、获取帖子详情。使用本地 MCP 服务器访问小红书内容,需要先登录。适用于搜索旅游攻略、美食推荐、获取帖子详情等场景。
npx skillsauth add stvlynn/skills xiaohongshuInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过本地 MCP 服务器访问小红书内容。
需要部署 xiaohongshu-mcp 服务。
首次使用必须先登录:
cd /path/to/xiaohongshu-mcp
./xiaohongshu-login
登录成功后会保存 cookies 到 cookies/cookies.json。
cd /path/to/xiaohongshu-mcp
./start.sh
服务会在后台运行,监听 http://localhost:18060/mcp。
curl -X POST http://localhost:18060/api/search \
-H "Content-Type: application/json" \
-d '{"keyword": "弥勒旅游"}'
返回搜索结果,包括帖子 ID、标题、用户信息、点赞数等。
curl -X POST http://localhost:18060/api/feed/detail \
-H "Content-Type: application/json" \
-d '{
"note_id": "帖子ID",
"xsec_token": "从搜索结果获取"
}'
返回完整帖子内容,包括图片、文字、评论等。
curl -X POST http://localhost:18060/api/feeds
返回小红书首页推荐内容。
curl http://localhost:18060/api/check-login
# CLI 搜索
python3 scripts/xhs_search.py "弥勒旅游景点"
# 限制结果数
python3 scripts/xhs_search.py "美食推荐" 5
# 1. 搜索
curl -X POST http://localhost:18060/api/search \
-H "Content-Type: application/json" \
-d '{"keyword": "弥勒旅游景点"}' | jq .
# 2. 获取帖子详情(从搜索结果中选择)
curl -X POST http://localhost:18060/api/feed/detail \
-H "Content-Type: application/json" \
-d '{
"note_id": "从搜索结果获取",
"xsec_token": "从搜索结果获取"
}' | jq .
note_id 和 xsec_token 获取完整内容./xiaohongshu-login| 问题 | 解决方法 |
|------|----------|
| 服务无法启动 | lsof -i :18060 检查端口占用 |
| 搜索返回空结果 | curl http://localhost:18060/api/check-login 检查登录状态 |
| Cookies 过期 | 删除 cookies/cookies.json 后重新运行 ./xiaohongshu-login |
{
"items": [
{
"id": "帖子ID",
"note_card": {
"display_title": "标题",
"user": { "nickname": "作者昵称" },
"interact_info": { "liked_count": "点赞数" }
},
"xsec_token": "用于获取详情的 token"
}
]
}
{
"note_card": {
"title": "标题",
"desc": "正文内容",
"image_list": [{ "url": "图片URL" }],
"interact_info": {
"liked_count": "点赞数",
"collected_count": "收藏数",
"comment_count": "评论数"
}
},
"comments": {
"comments": [
{ "content": "评论内容", "sub_comments": [] }
]
}
}
tools
Manage Telegram sticker packs via tsticker CLI. Init, push, sync, download, and trace sticker packs. Use when user wants to create/update Telegram sticker packs, push stickers to Telegram, sync packs, or manage sticker collections. Integrates with create-sticker for end-to-end sticker generation → publish workflow.
tools
Reuse local Youtu-Tip GUI capabilities through a safe adapter CLI so OpenClaw/Codex-style agents can inspect desktop GUI state and perform guarded single-step actions on macOS.
development
Privacy-respecting web search powered by a local SearXNG instance. Use when searching the web, looking up information, researching topics, or needing quick answers. Supports multiple categories including general, images, videos, news, and more. Aggregates results from 70+ search engines without tracking.
development
Use this skill whenever the user wants iOS-style scroll fades, gradient masks, scroll-edge overlays, or top/bottom indicators on a scrollable list, dropdown, sidebar, modal, chat log, or panel. It implements a reusable wrapper-based scroll fade mask pattern across React, Vue, Svelte, and vanilla JavaScript, and it is also the right skill when the user says the fade masks broke scrolling, do not show, or do not match the background.