xiaohongshu-mcp logo

xiaohongshu-mcp

github.com/xpzouying/xiaohongshu-mcp

MCP server enabling AI assistants to access Xiaohongshu data.

git clone https://github.com/xpzouying/xiaohongshu-mcp
Stars
17k
Rank in field
Top 16%#74 of 471 by stars
Forks
…
Open issues
…
Contributors
…
Language
Go
License
Apache-2.0
Last push
25 Nov 2026

What is xiaohongshu-mcp?

xiaohongshu-mcp is an MCP server that lets AI assistants access Xiaohongshu (xiaohongshu.com) data and actions. It is aimed at developers and operators who want to automate Xiaohongshu through an AI assistant such as Claude Code. It works by logging into a Xiaohongshu account and exposing tools for publishing, searching, reading posts and interacting with content.

Install & use

Install
git clone https://github.com/xpzouying/xiaohongshu-mcp.git
Usage
["/Users/username/Pictures/image1.jpg", "/home/user/images/image2.png"]

xpzouying/xiaohongshu-mcp is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.

Features

  • Log in and check current login status
  • Publish image-text posts with titles, descriptions and images
  • Publish video posts from local video files
  • Search content by keyword and fetch the home recommendation feed
  • Get post details including interaction data and comments
  • Like, favorite, comment and reply to posts

Best for

  • Automating Xiaohongshu posting from an AI assistant
  • Searching and reading Xiaohongshu posts and comments
  • Managing likes, favorites and replies on notes
  • Fetching user profile and note lists

Pros

  • Supports both HTTP API and MCP tool calls
  • Accepts image links or local absolute image paths
  • Automatically waits for video processing before publishing
  • Detects existing like and favorite state to avoid duplicate actions

Cons

  • Login is required before most features can be used
  • Post details and interactions need both post ID and xsec token
  • Video publishing only supports local files, not HTTP links

Stars over time