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

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

R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
4.6K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
5.2K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
6.2K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.7K
4.5 points
G
Gk Cli
GitKraken CLI is a command - line tool that provides multi - repository workflow management, AI - generated commit messages and pull requests, and includes a local MCP server for integrating tools such as Git, GitHub, and Jira.
5.6K
4.5 points
M
MCP
A collection of official Microsoft MCP servers, providing AI assistant integration tools for various services such as Azure, GitHub, Microsoft 365, and Fabric. It supports local and remote deployment, helping developers connect AI models with various data sources and tools through a standardized protocol.
C#
6.3K
5 points
C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
11.4K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
12.2K
5 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
18.4K
4.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
19.9K
4.3 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
28.2K
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
58.2K
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#
24.7K
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
53.3K
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
18.3K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
80.5K
4.7 points