xiaohongshu-mcp is a Model Context Protocol service that lets AI assistants log in, search, read feeds, and publish on Xiaohongshu (Little Red Book).
Overview
xiaohongshu-mcp wraps Xiaohongshu web workflows in HTTP MCP tools so coding agents and other MCP clients can operate an account programmatically. After an initial interactive login, the service can check session state, publish image or video posts, search and browse feeds, read post details and comments, interact with likes and favorites, and fetch user profiles.
Publishing supports local image paths or HTTP image URLs, optional tags, scheduled posts, visibility controls, and product binding when the account allows it. Video posts require a local video file path. Reading posts and commenting requires feed identifiers and xsectoken values obtained from search or feed listings.
The server ships as platform binaries for macOS Apple Silicon, Windows x64, and Linux x64, with Docker images for headless or optional noVNC GUI setups. It connects to clients such as Claude Code, Cursor, VS Code, Cline, and Gemini CLI through standard HTTP MCP configuration. Optional AUTHTOKEN secures the listener in production, and proxy settings cover HTTP, HTTPS, or SOCKS5.
Operators are warned that one account should not stay logged in on multiple web sessions simultaneously and that content must follow platform rules; the author documents operational limits such as title and body length and daily posting expectations.
Key features
- Login status and QR login tools
- Image and video publishing
- Feed search with filters
- Post detail and comment APIs
- Like, favorite, and reply actions
- User profile retrieval
- Docker and native binaries
- Optional bearer token auth
Use cases
- AI-assisted Xiaohongshu content publishing
- Automated feed research and search
- Social posting from Claude Code or Cursor
- Workflow automation via n8n integrations
- Batch engagement monitoring on posts