Skip to main content
Glama
JessYan0913

xiaohongshu-mcp

by JessYan0913

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XHS_PROXYNoProxy address (e.g., http://127.0.0.1:7890)
XHS_HEADLESSNoSet to 'false' to show browser window for all operations (default: headless)
XHS_COOKIES_PATHNoPath to the cookies file for login state (default: ~/.xiaohongshu-mcp/cookies.json)
XHS_USER_DATA_DIRNoBrowser profile directory (default temporary directory, login state managed by cookies)
PUPPETEER_EXECUTABLE_PATHNoSpecify the Chrome/Edge executable path (auto-detected by default)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
xhs_loginA

登录小红书:打开浏览器窗口弹出登录二维码,等待扫码。扫码成功后自动保存登录态,后续无需重复登录。

xhs_check_loginA

检查小红书登录状态:验证本地保存的登录态是否有效,已登录时返回当前账号昵称并刷新登录态。

xhs_logoutA

退出登录:清除本地保存的小红书登录态。

xhs_search_feedsA

搜索小红书笔记:按关键词搜索,返回笔记列表(含笔记 ID、xsecToken、标题、作者、互动数据)。返回的 id + xsecToken 可用于 xhs_get_feed_detail / xhs_like_feed / xhs_favorite_feed。

xhs_get_recommend_feedsA

获取小红书首页推荐笔记列表(返回笔记 ID、xsecToken、标题、作者、互动数据)。

xhs_get_feed_detailA

获取小红书笔记详情:返回笔记标题、正文、图片列表、作者信息、互动数据与前若干条评论。需要笔记 ID 与 xsecToken(两者缺一不可,从搜索/推荐结果获取)。

xhs_publish_noteA

发布图文笔记到小红书:需要标题(最多 20 字)、正文、至少 1 张图片(本地绝对路径或 HTTP 图片链接),可选话题标签。发布前需已登录。

xhs_like_feedA

为笔记点赞或取消点赞:智能检测当前状态,已处于目标状态时自动跳过。需要笔记 ID 与 xsecToken。

xhs_favorite_feedA

为笔记收藏或取消收藏:智能检测当前状态,已处于目标状态时自动跳过。需要笔记 ID 与 xsecToken。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JessYan0913/xiaohongshu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server