Skip to content

API 概览

小红书 MCP 服务器提供以下工具:

账号管理

工具说明
xhs_list_accounts列出所有账号
xhs_add_account开始登录流程(返回二维码)
xhs_check_login_session检查登录状态(扫码后调用)
xhs_check_auth_status检查账号是否已登录(同步用户资料)
xhs_submit_verification提交短信验证码
xhs_remove_account删除账号
xhs_set_account_config修改账号配置
xhs_get_account_prompt获取账号 Prompt(人设/选择/评论)
xhs_set_account_prompt更新账号 Prompt
xhs_delete_cookies删除会话

内容查询

工具说明
xhs_search搜索笔记
xhs_get_note获取笔记详情
xhs_user_profile获取用户资料
xhs_list_feeds获取首页推荐

内容发布

工具说明
xhs_publish_content发布图文笔记
xhs_publish_video发布视频笔记

互动功能

工具说明
xhs_like_feed点赞/取消点赞
xhs_favorite_feed收藏/取消收藏
xhs_post_comment发表评论
xhs_reply_comment回复评论
xhs_like_comment点赞/取消点赞评论

数据统计

工具说明
xhs_get_account_stats获取账号统计
xhs_get_operation_logs查询操作日志

下载

工具说明
xhs_download_images下载笔记图片
xhs_download_video下载笔记视频

AI 创作与草稿

工具说明
xhs_create_draft创建笔记草稿(AI 自动处理截图生成配图)
xhs_list_drafts列出所有草稿
xhs_get_draft获取草稿详情
xhs_update_draft更新草稿
xhs_delete_draft删除草稿
xhs_publish_draft发布草稿

创作者中心

工具说明
xhs_get_my_notes获取已发布笔记列表(从创作者中心获取并缓存)
xhs_query_my_notes查询已缓存的笔记(支持多条件过滤)

通知

工具说明
xhs_get_notifications获取通知(提及、点赞、关注)

自动浏览

工具说明
xhs_explore自动浏览探索页(AI 选择笔记、概率点赞评论)
xhs_stop_explore停止正在运行的 explore 会话

Released under the MIT License.