RedNote MCP is a specialized tool that allows you to search and retrieve content from the Xiaohongshu (Red Book) platform through the Model Context Protocol. It provides intelligent content extraction with automatic login management and parallel processing capabilities for efficient content retrieval.
git clone <repository-url>
cd rednote-mcp
pnpm install
pnpm exec playwright install
pnpm build
To start the MCP server:
pnpm start
For development with auto-reload:
pnpm dev
Add the following configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
For Windows:
{
"mcpServers": {
"rednote-mcp": {
"command": "node",
"args": [
"C:\\ABSOLUTE\\PATH\\TO\\rednote-mcp\\build\\index.js"
]
}
}
}
For macOS/Linux:
{
"mcpServers": {
"rednote-mcp": {
"command": "node",
"args": [
"/absolute/path/to/rednote-mcp/build/index.js"
]
}
}
}
Replace the path with your actual project directory.
Once configured, you can use the search tool in your MCP client to search for content on Xiaohongshu. For example, you can search for "food recommendation" and the tool will return structured data including titles, content, author information, and images.
The tool returns data in the following structure:
interface RedBookNote {
title: string; // Note title
content: string; // Note content
author: string; // Author name
authorDesc?: string; // Author description
link: string; // Note URL
likes?: number; // Like count
collects?: number; // Favorite count
comments?: number; // Comment count
tags?: string[]; // Hashtag list
images?: string[]; // Image URLs (WebP format)
}
pnpm exec playwright install to install browsersTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "rednote-mcp" '{"command":"node","args":["/path/to/rednote-mcp/build/index.js"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"rednote-mcp": {
"command": "node",
"args": [
"/path/to/rednote-mcp/build/index.js"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"rednote-mcp": {
"command": "node",
"args": [
"/path/to/rednote-mcp/build/index.js"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect