执行流程
1. 获取用户信息
调用 user_profile:
user_id(string,必填)— 用户 ID(来自笔记详情或搜索结果)xsec_token(string,必填)
2. 展示结果
- 基本信息:昵称、头像、简介、性别、地区
- 数据:粉丝数、关注数、获赞与收藏数
- 最近发布的笔记列表(含 feed_id 和 xsec_token)
提示用户可以查看某条笔记详情或进行互动。
失败处理
| 场景 | 处理 |
|---|---|
| 未登录 | 引导使用 xhs-login |
| 用户不存在 | 告知用户该主页无法访问 |
Installation
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-profileBitte installiere diesen Agent Skill für mich: https://github.com/autoclaw-cc/xiaohongshu-mcp-skills/tree/c79206ce4191fdb5f4c72d62155ed8ac49e7d0ae/skills/xhs-profile – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.Zusammenfassung
SKILL.md
Original auf GitHub ↗c79206c) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026 Auto-Claw-CC. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.调用 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.