
xiaohongshu-mcp
by xpzouying·★ 13,616·Score 59
MCP server for automating Xiaohongshu operations including content posting, commenting, and user interaction.
Overview
xiaohongshu-mcp is a comprehensive MCP server written in Go that enables AI assistants to interact with Xiaohongshu (Little Red Book), a popular Chinese social media platform. The server implements MCP protocol through HTTP transport, allowing clients to authenticate, publish posts (both images and videos), search content, retrieve post details, manage user profiles, and perform engagement actions like liking and commenting. The project includes multiple deployment options including precompiled binaries, Docker containers, and source code compilation, making it accessible for both technical and non-technical users.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you need to automate interactions with Xiaohongshu platform and prefer a self-hosted solution over the browser plugin alternative.
When NOT to choose this
Avoid this if you need write access to other social platforms, as it's specifically designed for Xiaohongshu only. Also consider the browser plugin version if you prefer zero configuration.
Tools this server exposes
11 tools extracted from the READMEcheck_login_statusCheck if the user is currently logged in to xiaohongshu.com
publish_postPublish a text and image post to xiaohongshu.com
publish_videoPublish a video post to xiaohongshu.com with title and description
search_contentSearch for content on xiaohongshu.com based on keywords
get_recommendationsGet the recommended content feed from xiaohongshu homepage
get_post_detailGet detailed information about a specific post including comments
comment_on_postLeave a comment on a specific xiaohongshu post
get_user_profileRetrieve a user's profile information and their posts
reply_to_commentReply to a specific comment on a post
like_postLike or unlike a specific post on xiaohongshu
bookmark_postBookmark or unbookmark a specific post on xiaohongshu
Comparable tools
Installation
Installation Options
**Option 1: Download Precompiled Binary**
- Download the binary for your platform from [GitHub Releases](https://github.com/xpzouying/xiaohongshu-mcp/releases)
- Run the login tool first:
chmod +x xiaohongshu-login-darwin-arm64 && ./xiaohongshu-login-darwin-arm64 - Start the MCP service:
chmod +x xiaohongshu-mcp-darwin-arm64 && ./xiaohongshu-mcp-darwin-arm64
**Option 2: Use Docker (Recommended)**
docker pull xpzouying/xiaohongshu-mcp
docker compose up -d```
**Option 3: Build from Source**
1. Clone the repository
2. Run `go run cmd/login/main.go` for login
3. Run `go run .` to start the MCP service
### Claude Desktop Configuration
Add to your `claude_desktop_config.json`:
```json
"mcpServers": {
"xiaohongshu": {
"command": "path/to/xiaohongshu-mcp",
"args": []
}
}FAQ
- Is using this MCP server against Xiaohongshu terms of service?
- The developer mentions this is for learning purposes and includes risk warnings. Users should check Xiaohongshu's terms of service before deploying in production.
- Can this MCP handle multiple accounts?
- The README specifically warns against multiple web logins for the same account as it will 'kick out' the current MCP session, though mobile app viewing is still possible.
Compare xiaohongshu-mcp with
Last updated · Auto-generated from public README + GitHub signals.