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
12.4K

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

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.9K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.4K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
15.2K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.4K
4 points
P
Paperbanana
Python
8.2K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
9.6K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
8.1K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
9.9K
5 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
37.6K
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
26.1K
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
23.9K
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
78.3K
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#
36.8K
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
69.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
23.1K
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
53.7K
4.8 points