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 and is prohibited for other uses. Any use for commercial profit purposes is not allowed, and the risk is borne by the user.
You Might Also Like
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

NextChat
NextChat is a light and fast AI assistant supporting Claude, DeepSeek, GPT4...

cherry-studio
Cherry Studio is a multilingual project for creative collaboration.

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 your codebase into AI-friendly formats for easy use.