Labsco
MCP SERVER

RedNote MCP

by JonaFly

Reads Xiaohongshu (RedNote) through your own signed-in browser session — search notes by keyword, open one by URL, and read its comments.

Social Media Accounts & PostingVerified
Summary
It gets at content there is no public API for, using a session you signed into yourself.

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.

What it is

A Playwright-driven server for Xiaohongshu content. You sign in once by hand, the cookies are stored, and everything afterwards runs against that session.

What you get
  • 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
Requirements

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.

Setup effort

One command — npx rednote-mcp --stdio