About blbl147-xhs-mcp
An MCP server for interacting with Xiaohongshu notes and comments. It searches notes, retrieves their content and comments, and can publish comments; requests use reversed JavaScript signatures rather than Playwright.
Key features
- 01Search Xiaohongshu notes
- 02Retrieve note content
- 03Retrieve note comments
- 04Post comments
- 05Direct HTTP requests with JS signatures
Use cases
- 01Finding notes about a topic
- 02Reviewing a note and its comments
- 03Posting a comment on a note
MCP support
Exposes Xiaohongshu note search, retrieval, and comment-posting capabilities to MCP clients. The README requires an authenticated Xiaohongshu cookie.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://server.smithery.ai/@blbl147/xhs-mcp/mcpclaude mcp add --transport http ai-smithery-blbl147-xhs https://server.smithery.ai/@blbl147/xhs-mcp/mcp{"mcpServers":{"ai-smithery-blbl147-xhs":{"type":"http","url":"https://server.smithery.ai/@blbl147/xhs-mcp/mcp"}}}Open in Cursor{"servers":{"ai-smithery-blbl147-xhs":{"type":"http","url":"https://server.smithery.ai/@blbl147/xhs-mcp/mcp"}}}Open in VS Code{"mcpServers":{"ai-smithery-blbl147-xhs":{"type":"http","url":"https://server.smithery.ai/@blbl147/xhs-mcp/mcp"}}}{"mcpServers":{"ai-smithery-blbl147-xhs":{"serverUrl":"https://server.smithery.ai/@blbl147/xhs-mcp/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://server.smithery.ai/@blbl147/xhs-mcp/mcpAuth requiredTools
Details
From the project README小红书MCP服务
特点
- 采用js逆向出x-s,x-t,直接请求http接口,无须笨重的playwright
- 搜索笔记
- 获取笔记内容
- 获取笔记的评论
- 发表评论

快速开始
1. 环境
- node
- python 3.12
- uv (pip install uv)
2. 安装依赖
git clone [email protected]:jobsonlook/xhs-mcp.git
cd xhs-mcp
uv sync
3. 获取小红书的cookie
打开web小红书
登录后,获取cookie,将cookie配置到第4步的 XHS_COOKIE 环境变量中

4. 配置mcp server
{
"mcpServers": {
"xhs-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/xxx/xhs-mcp",
"run",
"main.py"
],
"env": {
"XHS_COOKIE": "xxxx"
}
}
}
}
免责声明
本项目仅用于学习交流,禁止用于其他用途,任何涉及商业盈利目的均不得使用,否则风险自负。
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.