Content
# Xiaohongshu MCP Service
[](https://smithery.ai/server/@jobsonlook/xhs-mcp)
## Features
- [x] Uses JS reverse engineering to extract x-s and x-t, directly requests HTTP interfaces without the need for bulky playwright
- [x] Search notes
- [x] Retrieve note content
- [x] Get comments on notes
- [x] Post comments

## Quick Start
### 1. Environment
* node
* python 3.12
* uv (pip install uv)
### 2. Install Dependencies
```sh
git clone git@github.com:jobsonlook/xhs-mcp.git
cd xhs-mcp
uv sync
```
### 3. Obtain Xiaohongshu Cookie
[Open the web version of Xiaohongshu](https://www.xiaohongshu.com/explore)
After logging in, obtain the cookie and configure it in the XHS_COOKIE environment variable in step 4.

### 4. Configure MCP Server
```json
{
"mcpServers": {
"xhs-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/xxx/xhs-mcp",
"run",
"main.py"
],
"env": {
"XHS_COOKIE": "xxxx"
}
}
}
}
```
## Disclaimer
This project is for learning and communication purposes only. It is prohibited to use it for other purposes, and any use for commercial profit is not allowed. Any risks incurred are the user's responsibility.
You Might Also Like
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

NextChat
NextChat: A light and fast AI assistant supporting Claude, DeepSeek, GPT4 &...

cherry-studio
cherry-studio is a multilingual project showcasing various language options.

LibreChat
LibreChat is an open-source chat platform for seamless communication.

Continue
Continue is an open-source project for seamless server management.

repomix
Repomix packages codebases into AI-friendly formats for coding with multiple...