Xiaohongshu MCP Python
X

Xiaohongshu MCP Python

A Python automated publishing tool for Xiaohongshu, implementing content publishing, searching, and management functions based on the MCP protocol
2.5 points
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

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "xiaohongshu-mcp-python": {
      "url": "http://localhost:18060/mcp",
      "description": "ๅฐ็บขไนฆ Python MCP ๆœๅŠก"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
5.4K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
11.5K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
6.1K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
7.1K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
9.7K
5 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
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
25.2K
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
17.9K
4.3 points
D
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
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.5K
4.5 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#
21.4K
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
47.5K
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
16.7K
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
32.7K
4.8 points