Xhs MCP
Xiaohongshu MCP server and CLI tool, supporting automated functions such as login, publishing, search, and recommendation, providing automatic download of picture URLs and precise title verification
2.5 points
5.5K

What is xhs-mcp?

xhs-mcp is an intelligent Xiaohongshu management tool that automates various operations on Xiaohongshu through an AI assistant. You can use natural language instructions to let the AI help you publish pictures and texts, search for content, manage comments, etc., without manual operation.

How to use xhs-mcp?

Simply configure xhs-mcp in an AI tool that supports the MCP protocol, and then you can tell the AI what you want to do on Xiaohongshu in natural language. For example: 'Help me publish a note about travel' or 'Search for recent fashion outfit recommendations'.

Applicable scenarios

Suitable for users such as content creators, social media operators, and marketers who need to frequently manage their Xiaohongshu accounts. It can greatly improve the efficiency of content publishing and enable batch operations and intelligent management.

Main Features

Intelligent Login Authentication
Supports secure login, logout, and status check of Xiaohongshu accounts to ensure account security
Publish Picture and Text Content
Publish content containing pictures, supporting 1 - 18 pictures, and automatically processes the title and content format
Publish Video Content
Publish video content, supporting multiple video formats (MP4, MOV, AVI, etc.)
Intelligent Image Download
Automatically download image URLs from the network, supporting HTTP/HTTPS links, and uses intelligent caching to avoid repeated downloads
Content Discovery and Search
Get recommended content, search for specific notes, view note details and comments
Intelligent Interaction
Post comments under notes and interact with fans
Advantages
Fully automated: Controlled by natural language through an AI assistant, no manual operation required
Intelligent format processing: Automatically verifies the title length and supports accurate calculation of Chinese and English characters
Flexible media support: Supports mixed use of local files and network URLs
Safe and reliable: Based on the officially recognized automation method, reducing account risks
Efficient and convenient: Batch processes content publishing, greatly improving operational efficiency
Limitations
Requires the installation of Chromium browser dependencies
Some technical knowledge is required for the initial configuration
Subject to the rules of the Xiaohongshu platform, the publishing frequency needs to be reasonably controlled
Does not support some advanced interaction functions such as private messages and live broadcasts
The network environment may affect the stability of automated operations

How to Use

Install the Tool
Install the xhs-mcp toolkit via npm
Check Browser Dependencies
Ensure that the Chromium browser is installed on the system. If not, it will be automatically installed.
Configure the AI Tool
Configure the xhs-mcp server in Cursor or other AI tools that support MCP
Start Using
Directly use Xiaohongshu-related functions in the AI dialogue, such as publishing content and searching for notes

Usage Examples

Publish a Travel Picture and Text Note
The user wants to publish a note containing multiple travel photos
Search for Beauty Product Recommendations
The user wants to know about the latest popular beauty products
Batch Content Management
Content creators need to regularly publish a series of content

Frequently Asked Questions

Will using xhs-mcp result in account suspension?
Does it support publishing videos? What is the maximum video size supported?
What formats are supported for picture URLs?
What is the title length limit?
How to check if the tool is working properly?

Related Resources

Complete Usage Guide
Detailed usage instructions and best practices
HTTP Transmission Configuration
Detailed configuration instructions for HTTP and SSE modes
NPM Package Page
Official NPM package information and version history
GitHub Repository
Source code and issue feedback

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "xhs-mcp": {
      "command": "npx",
      "args": ["xhs-mcp", "mcp"],
      "env": { "XHS_ENABLE_LOGGING": "true" }
    }
  }
}

{
  "mcpServers": {
    "xhs-mcp-http": {
      "command": "npx",
      "args": ["xhs-mcp", "mcp", "--mode", "http", "--port", "3000"],
      "env": { "XHS_ENABLE_LOGGING": "true" }
    }
  }
}

{
  "mcpServers": {
    "xhs-mcp-http": {
      "url": "http://localhost:3000/mcp"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.8K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
15.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
15.8K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.8K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.3K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
44.8K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
15.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
30.5K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase