← Back to RednoteMCP

Install RednoteMCP

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

pip install -r requirements.txt
2

Register it in Claude Code

claude mcp add rednote-mcp -- python /ABSOLUTE/PATH/TO/PARENT/FOLDER/xiaohongshu_mcp.py --stdio

Replace any placeholder paths in the command with the real path on your machine.

Available Tools (4)

Once configured, RednoteMCP gives your AI agent access to:

search_notesSearches for Xiaohongshu notes based on a keyword and returns a specified number of results.
keywordcount
get_note_contentRetrieves the detailed content of a note using its URL.
url
get_note_commentsRetrieves the comments for a specific note using its URL.
url
post_smart_commentPublishes a smart comment on a specific note with a chosen interaction type.
urlcomment_type

Try It Out

After setup, try these prompts with your AI agent:

Search for the top 5 recent notes about 'healthy breakfast' on Xiaohongshu.
Get the full content of the note at this URL: https://www.xiaohongshu.com/search_result/xxxx
Fetch all comments for the note at https://www.xiaohongshu.com/search_result/xxxx
Post a 'professional' type comment on the note at https://www.xiaohongshu.com/search_result/xxxx
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Python 3.8+ with pip installed

Keep this setup from going cold

Save the docs, env vars, and workflow around RednoteMCP in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup