What is xiaohongshu-mcp
xiaohongshu-mcp is an open-source tool developed based on the Model Context Protocol (MCP) protocol, helping users achieve automated operations on the Xiaohongshu platform. It supports multiple functions, including logging into Xiaohongshu, publishing image-text posts, searching content, and getting recommendation lists. Users need to log in manually and save the login state when using it for the first time, after which they can operate Xiaohongshu through simple commands or interfaces. The tool is written in Golang and supports Windows, macOS, and Linux systems. Users can run go run . to start the service, connect using an MCP-supported client (such as Claude Code CLI), and easily publish content.xiaohongshu-mcp provides an HTTP JSON-RPC interface, making it convenient to integrate with other systems.
Main features of xiaohongshu-mcp
-
Login function: Users need to log in manually to Xiaohongshu and save the login state when using it for the first time. Subsequent operations do not require repeated login, making it convenient and quick.
-
Publish image-text posts: Supports uploading text and images to Xiaohongshu. Users can specify image links, and the tool will automatically download and publish them.
-
Search content: Can search for related content on Xiaohongshu based on keywords, helping users quickly find the information they need.
-
Get recommendation list: Can get the recommended content list from Xiaohongshu, allowing users to understand popular and recommended content trends.
-
Cross-platform support: Supports Windows, macOS, and Linux systems, with good compatibility.
-
Integration and extension: Provides an HTTP JSON-RPC interface, making it convenient to integrate with other systems or tools, and facilitating secondary development and extension by developers.
Technical principles of xiaohongshu-mcp
-
Based on the MCP protocol:
xiaohongshu-mcpFollows the Model Context Protocol (MCP), achieving interaction with the Xiaohongshu platform through standardized interfaces. -
Developed in Golang: Written in the Golang language, leveraging its efficient concurrency handling capabilities and cross-platform features to ensure the tool's performance and stability.
-
Automated operations: By simulating user operations, it implements Xiaohongshu's login, publishing, search, and other functions, reducing manual intervention and improving operational efficiency.
-
HTTP JSON-RPC interface: Provides an HTTP JSON-RPC interface, making it convenient for other applications or services to call, achieving functional expansion and integration.
-
Headless browser mode: Supports running in a headless browser, allowing tasks to be automatically executed in the background without the user manually operating the interface, improving the degree of automation.
-
State management: Can save the login state, avoiding repeated logins, while managing operation states to ensure the continuity and stability of tasks.
Project address of xiaohongshu-mcp
- Github repository:https://github.com/xpzouying/xiaohongshu-mcp
Application scenarios of xiaohongshu-mcp
-
Content publishing: Helps users quickly publish image-text content to Xiaohongshu, improving creation efficiency.
-
Content search: Makes it convenient for users to search for related content on Xiaohongshu based on keywords, obtaining inspiration or information.
-
Data acquisition: Used to obtain Xiaohongshu's recommended content list, analyzing popular trends and user preferences.
-
Automated operations: Implement automated management of Xiaohongshu accounts, such as scheduled publishing and content updates, to save operational time.
-
Developer Integration: Through the HTTP JSON-RPC interface, it is convenient for developers to integrate it into other applications or systems and extend more functions.
-
Multi-platform Use: Supports Windows, macOS, and Linux systems, meeting the usage needs of different users.