# xiaohongshu-mcp

> MCP server enabling AI assistants to access Xiaohongshu data.

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/xpzouying/xiaohongshu-mcp
- GitHub stars: 17359
- Licence: Apache-2.0
- Language: Go
- Last push: 2026-11-25
- Page: https://imutechz.in/agents/xiaohongshu-mcp

## What it is
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.

## 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

## Usage
```
["/Users/username/Pictures/image1.jpg", "/home/user/images/image2.png"]
```

Tags: xiaohongshu, mcp, ai-assistant, social-media, automation, content-publishing, scraping
