执行流程
1. 获取用户信息
调用 user_profile:
user_id(string,必填)— 用户 ID(来自笔记详情或搜索结果)xsec_token(string,必填)
2. 展示结果
- 基本信息:昵称、头像、简介、性别、地区
- 数据:粉丝数、关注数、获赞与收藏数
- 最近发布的笔记列表(含 feed_id 和 xsec_token)
提示用户可以查看某条笔记详情或进行互动。
失败处理
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 用户不存在 | 告知用户该主页无法访问 |
安裝
npx skills add https://github.com/autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-profilegit clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-mcp-skills.git /tmp/xiaohongshu-mcp-skills && mkdir -p ~/.claude/skills && cp -r /tmp/xiaohongshu-mcp-skills/skills/xhs-profile ~/.claude/skills/xhs-profile請幫我安裝這個 Agent Skill:https://github.com/autoclaw-cc/xiaohongshu-mcp-skills/tree/c79206ce4191fdb5f4c72d62155ed8ac49e7d0ae/skills/xhs-profile ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。簡介
SKILL.md
GitHub 原文 ↗c79206c),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Auto-Claw-CC 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。调用 user_profile:
user_id(string,必填)— 用户 ID(来自笔记详情或搜索结果)xsec_token(string,必填)提示用户可以查看某条笔记详情或进行互动。
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 用户不存在 | 告知用户该主页无法访问 |
MIT License Copyright (c) 2026 Auto-Claw-CC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.