MCP for RedNote (Xiaohongshu) platform.
📌 Please read before submitting a PR: Contributing Guide
If you encounter any issues, be sure to check Common Issues and Solutions first.
After checking the Common Issues list, if you still can't resolve your deployment problems, we strongly recommend using another tool I've created: xpzouying/x-mcp. This tool doesn't require deployment - you only need a browser extension to drive your MCP, making it more user-friendly for non-technical users.
All donations received for this project will be used for charitable giving. For all charitable donation records, please refer to DONATIONS.md.
When donating, please note "MCP" and your name. If you need to correct/withdraw your name attribution, please open an Issue or contact via email.
Alipay (QR code not displayed):
Donate via Alipay to xpzouying@gmail.com.
WeChat:

Main Features
💡 Tip: Click on the feature titles below to expand and view video demonstrations
1. Login and Check Login Status
The first step is required - RedNote needs to be logged in. You can check current login status.
Login Demo:
https://github.com/user-attachments/assets/8b05eb42-d437-41b7-9235-e2143f19e8b7
Check Login Status Demo:
https://github.com/user-attachments/assets/bd9a9a4a-58cb-4421-b8f3-015f703ce1f9
2. Publish Image and Text Content
Supports publishing image and text content to RedNote, including title, content description, and images.
Image Support Methods:
Supports two image input methods:
["https://example.com/image1.jpg", "https://example.com/image2.png"]
["/Users/username/Pictures/image1.jpg", "/home/user/images/image2.png"]Why Local Paths are Recommended:
Publish Image-Text Post Demo:
https://github.com/user-attachments/assets/8aee0814-eb96-40af-b871-e66e6bbb6b06
3. Publish Video Content
Supports publishing video content to RedNote, including title, content description, and local video files.
Video Support Methods:
Only supports local video file absolute paths:
"/Users/username/Videos/video.mp4"
Features:
Important Notes:
4. Search Content
Search RedNote content by keywords.
Search Posts Demo:
https://github.com/user-attachments/assets/03c5077d-6160-4b18-b629-2e40933a1fd3
5. Get Recommendation List
Get RedNote homepage recommendation content list.
Get Recommendation List Demo:
https://github.com/user-attachments/assets/110fc15d-46f2-4cca-bdad-9de5b5b8cc28
6. Get Post Details (Including Interaction Data and Comments)
Get complete details of RedNote posts, including:
⚠️ Important Note:
Get Post Details Demo:
https://github.com/user-attachments/assets/76a26130-a216-4371-a6b3-937b8fda092a
7. Post Comments to Posts
Supports automatically posting comments to RedNote posts.
Feature Description:
⚠️ Important Note:
Post Comment Demo:
https://github.com/user-attachments/assets/cc385b6c-422c-489b-a5fc-63e92c695b80
8. Get User Profile
Get RedNote user's personal profile information, including basic user information and note content.
Feature Description:
⚠️ Important Note:
Returned Information Includes:
9. Reply to Comments
Reply to a specific comment under a note, supporting precise replies to specific users' comments.
Feature Description:
⚠️ Important Note:
10. Like / Unlike
Like or unlike a note, with smart detection of current status to avoid duplicate operations.
Feature Description:
⚠️ Important Note:
11. Favorite / Unfavorite
Favorite a note or unfavorite it, with smart detection of current status to avoid duplicate operations.
Feature Description:
⚠️ Important Note:
RedNote Basic Operation Knowledge
Risk Explanation
This project is for learning purposes only. All illegal activities are prohibited.
Practical Results
First day likes/favorites reached 999+,
Results after about a week
Method 1: Download Pre-compiled Binaries
Download pre-compiled binaries for your platform directly from GitHub Releases:
Main Program (MCP Service):
xiaohongshu-mcp-darwin-arm64xiaohongshu-mcp-darwin-amd64xiaohongshu-mcp-windows-amd64.exexiaohongshu-mcp-linux-amd64Login Tool:
xiaohongshu-login-darwin-arm64xiaohongshu-login-darwin-amd64xiaohongshu-login-windows-amd64.exexiaohongshu-login-linux-amd64Usage Steps:
# 1. First run the login tool
chmod +x xiaohongshu-login-darwin-arm64
./xiaohongshu-login-darwin-arm64
# 2. Then start the MCP service
chmod +x xiaohongshu-mcp-darwin-arm64
./xiaohongshu-mcp-darwin-arm64
⚠️ Important Note: The headless browser will be automatically downloaded on first run (about 150MB), please ensure a stable network connection. Subsequent runs will not require re-downloading.
Method 2: Build from Source
Build from Source Details
Requires Golang environment. For installation instructions, please refer to Golang Official Documentation.
Set Go domestic proxy source:
# Configure GOPROXY environment variable, choose one of the following three
# 1. Qiniu CDN
go env -w GOPROXY=https://goproxy.cn,direct
# 2. Alibaba Cloud
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
# 3. Official
go env -w GOPROXY=https://goproxy.io,direct
Method 3: Using Docker Container (Simplest)
Docker Deployment Details
Using Docker deployment is the simplest method, requiring no development environment installation.
1. Pull Image from Docker Hub (Recommended)
We provide pre-built Docker images that can be directly pulled from Docker Hub:
# Pull the latest image
docker pull xpzouying/xiaohongshu-mcp
Docker Hub URL: https://hub.docker.com/r/xpzouying/xiaohongshu-mcp
2. Start with Docker Compose (Recommended)
We provide a pre-configured docker-compose.yml file that can be used directly:
# Download docker-compose.yml
wget https://raw.githubusercontent.com/xpzouying/xiaohongshu-mcp/main/docker/docker-compose.yml
# Or if you've already cloned the project, enter the docker directory
cd docker
# Start service
docker compose up -d
# View logs
docker compose logs -f
# Stop service
docker compose stop
3. Build Image Yourself (Optional)
If you need to customize or modify the code, you can build the image yourself:
# Run in project root directory
docker build -t xpzouying/xiaohongshu-mcp .
4. Configuration Notes
The Docker version automatically:
./data for storing cookies and runtime data directories./images for storing publish imagesFor detailed instructions, please refer to: Docker Deployment Guide
For Windows issues, check here first: Windows Installation Guide
First time requires manual login to save RedNote login status.
Using Binary Files:
# Run the login tool for your platform
./xiaohongshu-login-darwin-arm64
Using Source Code:
go run cmd/login/main.go
Start xiaohongshu-mcp service.
Using Binary Files:
# Default: Headless mode, no browser interface
./xiaohongshu-mcp-darwin-arm64
# Non-headless mode, with browser interface
./xiaohongshu-mcp-darwin-arm64 -headless=false
Using Source Code:
```bash
$ claude mcp add xiaohongshu-mcp \
-- python -m otcore.mcp_server <graph>