XHS CLI
Automate login, content publishing, search, discovery, and interaction tasks on Xiaohongshu.com.
概要
XHS CLI provides a unified command-line interface and an integrated Model Context Protocol (MCP) server for automating various interactions with Xiaohongshu.com. Leveraging Puppeteer for browser automation, it enables programmatic control over account authentication (login, logout, status), content management (image and video publishing), and discovery features like browsing feeds, searching for notes, viewing details, and commenting. It offers flexible deployment options, including Stdio and HTTP modes, making it suitable for integration into diverse client applications, such as Cursor.
主な機能
- Puppeteer-driven automation with headless mode and cookie management
- 2 GitHub stars
- Account authentication (login, logout, status checks)
- Content publishing (image and video posts with title, content, tags)
- Discovery features (recommended feeds, search, note details)
- Interaction capabilities (commenting on notes)
ユースケース
- Programmatically publishing content to Xiaohongshu
- Automating data collection from Xiaohongshu, such as trending feeds or search results
- Integrating Xiaohongshu automation capabilities into AI agents or other applications via MCP