con un clic
小红书搜索、发布、获取帖子详情。使用本地 MCP 服务器访问小红书内容,需要先登录。适用于搜索旅游攻略、美食推荐、获取帖子详情等场景。
npx skills add https://github.com/stvlynn/skills --skill xiaohongshuCopia y pega este comando en Claude Code para instalar la habilidad
小红书搜索、发布、获取帖子详情。使用本地 MCP 服务器访问小红书内容,需要先登录。适用于搜索旅游攻略、美食推荐、获取帖子详情等场景。
npx skills add https://github.com/stvlynn/skills --skill xiaohongshuCopia y pega este comando en Claude Code para instalar la habilidad
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.
Bootstrap, operate, and troubleshoot `nelvko/clash-for-linux-install` on Linux hosts. Use when Codex needs to initialize Clash or Mihomo on a machine that may not already be installed, follow a daily-use SOP with `clashctl` and `clashsub`, inspect or edit `.env`, `resources/mixin.yaml`, or `resources/runtime.yaml`, manage subscriptions, Tun mode, Web UI secrets, upgrades, and uninstall, or quickly diagnose startup, port, service, subscription-conversion, or network-access problems. This skill vendors a trimmed upstream project copy under `scripts/upstream-project/` and should first try fetching the latest GitHub repository, then fall back to copying the bundled project files when GitHub access is slow or unavailable.
Operate the bundled PV Tool kinetic typography web app for lyric videos, promotional videos, and motion-graphics text overlays. Use this whenever the user mentions PV Tool, wants to run or preview the app locally, build it for distribution, experiment with PV templates and effects, or work with lyric text, media backgrounds, audio-reactive overlays, or LRC input inside PV Tool.
Use this skill whenever the user mentions Atlassian Design System, Atlaskit, Jira-style UI, Confluence-style UI, ADS components, design tokens, xcss, @atlaskit/css, primitives, navigation system, or wants to build/refactor React interfaces to match Atlassian patterns. This skill helps choose the right ADS component, combine multiple ADS patterns, and implement code grounded in the mirrored documentation under references/docs.
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.
Operate and control Claude Code CLI from within Clawdbot. Allows spawning Claude Code processes, executing commands in Claude Code, managing sessions, and deploying projects using Claude Code's capabilities.
| name | xiaohongshu |
| description | 小红书搜索、发布、获取帖子详情。使用本地 MCP 服务器访问小红书内容,需要先登录。适用于搜索旅游攻略、美食推荐、获取帖子详情等场景。 |
通过本地 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": [] }
]
}
}