The login is deliberately manual and happens once: a browser opens, you sign in, and the cookies are saved and reused. Plan to redo it periodically — everything here depends on that stored session, and empty search results are usually a cookie that has expired rather than a missing note.
A Playwright-driven server for Xiaohongshu content. You sign in once by hand, the cookies are stored, and everything afterwards runs against that session.
- search_notes finds notes by keyword, with a result limit
- get_note_content fetches a note's content from its URL
- get_note_comments fetches the comments on a note from its URL
- login opens the sign-in flow from inside the client, as an alternative to running the init command in a terminal
- Cookie persistence, so the sign-in is a one-time step rather than something every session repeats
Node.js 16 or later with npm 7 or later, and Playwright's browsers installed — npx playwright install. A Xiaohongshu account: run rednote-mcp init once, complete the login yourself in the browser window it opens, and the cookies are written to ~/.mcp/rednote/cookies.json. That file holds a live session, so keep it out of anywhere shared and refresh it when it stops working. In the client, launch the server with the --stdio argument, either as the globally installed rednote-mcp command or through npx.
One command — npx rednote-mcp --stdio
