执行流程
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 ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 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.