xiaohongshu-mcp
MCP for xiaohongshu.com
A connector that lets AI assistants automate Xiaohongshu (Little Red Book), publishing posts, searching content, reading feeds, commenting, liking, and bookmarking, using the MCP standard interface.
This repository provides a connector that lets AI assistants interact directly with Xiaohongshu, also known as Little Red Book or RED, a Chinese social media platform focused on lifestyle content, short videos, and product reviews. The connector follows the MCP protocol, a standard interface for giving AI tools access to external services. The project is written in Go.
The primary purpose is automation: once connected, an AI assistant can log into a Xiaohongshu account, publish posts containing images or video, search for content by keyword, retrieve the recommendation feed, read post details including comments and engagement numbers, post comments, reply to specific users, like or unlike posts, and bookmark content. The README states that all of these features were tested running stably for several weeks before the code was released.
Three deployment options are provided. The simplest is a browser extension called x-mcp that requires no server setup at all. The second is a pre-compiled binary downloaded from the releases page, with builds available for macOS (Intel and Apple Silicon), Windows, and Linux. The third option is a Docker container that can be pulled and run with a single command. Building from source using Go is also supported.
The README, written primarily in Chinese, includes practical notes on Xiaohongshu's own content rules: post titles must be under 20 characters, body text must be under 1,000 characters, and the same account cannot be signed into multiple browser sessions simultaneously without being logged out of the MCP session. The project notes that all donations received from supporters are given to charitable organizations.
A caution is included stating that the project is intended for learning purposes and that illegal uses are prohibited.
The full README is longer than what was shown.
Where it fits
- Connect an AI assistant to a Xiaohongshu account to automatically publish posts with images or video through conversation
- Use an AI assistant to search Xiaohongshu for trending keywords and retrieve post details including engagement numbers
- Automate replying to comments on Xiaohongshu posts through an AI assistant using the MCP interface