RedNote MCP

RedNote MCP

MCP server for accessing RedNote(XiaoHongShu, xhs) content

911
Stars
139
Forks
1
Releases

Overview

RedNote MCP is an MCP server that provides programmatic access to RedNote (XiaoHongShu) content. It supports authentication management with persistent cookies to streamline login across sessions. On first use, you run 'rednote-mcp init' which launches a browser via Playwright, navigates to Xiaohongshu login, and upon successful login saves the cookies to ~/.mcp/rednote/cookies.json. The server offers keyword-based note search and allows accessing note content via its URL. Configuration in Cursor allows registering the MCP server with a command (rednote-mcp) and --stdio for inter-process communication. The project can be installed from npm or built from source; dev instructions mention Node.js >= 16 and npm >= 7. For debugging, MCP Inspector tools can run: npx @modelcontextprotocol/inspector npx rednote-mcp --stdio. Note: cookies contain sensitive information and should be kept secure; cookie files should be refreshed periodically. A roadmap item includes adding URL access to comments content.

Details

Owner
ifuryst
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Authentication management (cookie persistence)

Keeps user login session by persisting cookies to ~/.mcp/rednote/cookies.json.

Keyword search notes

Supports searching notes by keywords.

Command-line initialization tool

Provides a CLI for initializing login and managing the MCP server.

Access notes content via URL

Allows retrieving note content by note URL.

Access comments via URL (not implemented)

URL-based access to comments content is not yet implemented (listed as a feature in progress).

Audience

DevelopersIntegrates RedNote content into MCP workflows and Cursor-based setups for automation.
Cursor usersUse Cursor to run and test MCP servers with stdio communication.

Tags

RedNoteXiaoHongShuMCPcookie-persistencenotes-searchURL-accessCLICursor