Xiaohongshu MCP Python
A Python automated publishing tool for Xiaohongshu, implementing content publishing, searching, and management functions based on the MCP protocol
rating : 2.5 points
downloads : 4.8K
What is the Xiaohongshu MCP Python Version?
This is an automated content management tool specifically designed for the Xiaohongshu platform. Through the modern AI protocol (MCP), AI assistants can help you automatically publish and manage Xiaohongshu content. You can ask the AI to publish graphics, videos, search for content, manage accounts, etc., just like having a conversation with an assistant.How to use the Xiaohongshu MCP service?
Simply configure the MCP service address in a supported AI client (such as Claude, Cursor, etc.), and then you can operate Xiaohongshu through natural language instructions. For example, 'Help me publish a graphic about the beautiful scenery in spring', and the AI will automatically complete the publishing process.Applicable Scenarios
Suitable for content creators, social media operators, self - media practitioners, and other users who need to frequently publish and manage Xiaohongshu content. It is particularly suitable for scenarios such as batch content publishing, scheduled content updates, and multi - account management.Main Features
Content Publishing
Supports the publication of graphic and video content, and automatically handles processes such as image uploading, video transcoding, and tag adding.
Account Management
Intelligently maintains the login status, automatically handles cookie expiration and re - login, and supports multi - account management.
Content Search
Searches for Xiaohongshu content by keywords, obtains a recommended list, and views post details and interaction data.
User Interaction
Posts comments, obtains comment lists, and statistics interaction data to enhance user engagement.
Environment Configuration
Supports switching between development and production environments, with flexible log management and browser configuration.
Modern Architecture
Based on Python 3.8+ and asynchronous programming, using Playwright for better performance.
Advantages
๐ High degree of automation: Complex content publishing processes can be completed through AI instructions.
๐ฏ User - friendly: No coding is required, and natural language interaction is supported.
๐ฑ Comprehensive functions: Covers the full range of content management needs such as publishing, searching, and interacting.
๐ง Flexible configuration: Supports development and production environments to meet different usage scenarios.
โก Excellent performance: Based on the modern Python technology stack, with fast response.
๐ก๏ธ Stable and reliable: Automatically handles the login status, reducing manual intervention.
Limitations
๐ Platform restrictions: Limited by Xiaohongshu's official rules, the publishing frequency needs to be reasonably controlled.
๐ Account security: It is recommended to use a dedicated account to avoid risks to the main account.
๐ป Technical requirements: Basic command - line operation knowledge is required.
๐ Network dependence: A stable network connection is required.
โฑ๏ธ Learning cost: It takes some time to familiarize with the process during the initial configuration.
How to Use
Environment Preparation
Ensure that Python 3.8+ and the uv package manager are installed on the system, supporting Linux, macOS, and Windows systems.
Project Installation
Clone the project and install dependencies, and configure the domestic mirror source to accelerate the download.
Environment Configuration
Copy the environment configuration file and configure the development or production environment according to your needs.
Start the Service
Start the MCP server, and the service will run on the configured port.
Account Login
You need to log in to your Xiaohongshu account for the first use.
Client Configuration
Configure the MCP service address in the AI client.
Usage Examples
Publish a Graphic about the Beautiful Scenery in Spring
Publish graphic content containing multiple spring photos and add relevant topic tags.
Upload a Travel Video
Publish a travel record video, including a detailed itinerary description and location tags.
Search for Popular Content
Search for popular Xiaohongshu content on a specific topic to understand the current popular trends.
Get User Information
View the profile information and published content of a specific user.
Frequently Asked Questions
Is this tool safe? Will it lead to account suspension?
Does it support managing multiple Xiaohongshu accounts simultaneously?
What are the restrictions on publishing content?
What is the difference between the development environment and the production environment?
How long can the login status be maintained?
Which AI clients are supported?
What should I do if the login fails?
How long does it take to publish a video?
Related Resources
Project Code Repository
Complete project source code and the latest updates
Model Context Protocol Official Website
Official documentation and specifications of the MCP protocol
Playwright Documentation
Official documentation of the browser automation tool
uv Package Manager
Project page of the modern Python package manager
Problem Feedback
Submit usage problems and feature suggestions

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
25.2K
5 points

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
17.9K
4.3 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
49.7K
4.3 points

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.5K
4.5 points

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#
21.4K
5 points

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
47.5K
4.5 points

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
16.7K
4.5 points

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
32.7K
4.8 points
ยฉ 2025AIBase

