xhs_searchLABSCO SUMMARY
Full read-and-publish access to Xiaohongshu, at the cost of a browser and a scan.
Because it drives a real session rather than an API, you get the publish path that key-based integrations do not have — but you also inherit a browser to keep alive and a login that expires, which is why the login-check tool matters more here than it would elsewhere. Licensing is split: AGPL-3.0 for personal use, with the author listing a paid tier at ¥499 for one commercial project and ¥2999 for unlimited projects.
What it is
A Python MCP server that automates Xiaohongshu through a Playwright-controlled Chromium session: it searches notes, opens them, and publishes image-and-text posts under your own logged-in account.
What you get
xhs_search— search notes by keyword with a limit, returning titles and linksxhs_get_note— open one note by URL and read the body and commentsxhs_publish— publish an image-and-text note with a title, body and imagesxhs_login_qrcode— fetch a QR code to scan from the Xiaohongshu appxhs_check_login— confirm the session is still authenticated before a run- A Docker path that keeps cookies and QR codes in a mounted data directory, so the login survives restarts
Requirements
pip install xhs-mcp-tool followed by playwright install chromium, on Python 3.10+. Authentication is a phone scan: call the QR-code tool, scan it in the app, then confirm with the login check. The Docker path publishes on port 6789 and mounts a data volume for the session.
Setup effort
One command — pip install xhs-mcp-tool
USE CASES
Researching how a topic is being written about
Search a keyword, then open the notes that look relevant and read the comments alongside the body.
Publishing a drafted post without leaving the editor
Hand the tool a title, body and image paths once the login check comes back clean.
Getting back in after the session drops
Request a fresh QR code, scan it in the app, and re-run the login check before anything else.
5 tools
Listed in project docs. Your client may show a different list.
xhs_get_notexhs_publishxhs_login_qrcodexhs_check_loginBEFORE YOU INSTALL
What to know first
Tools you get
5 tools named in the project's documentation.
Requires
pip on PATH
INSTALLATION
Connect your client
This project publishes no client configuration, so the entry for your client is yours to write.
Server setup
pip install xhs-mcp-tool