The RedNote MCP server enables intelligent search and extraction of Xiaohongshu (Red Book) content.
- Search Xiaohongshu Content: Execute keyword-based searches using the
query
parameter - Control Result Count: Specify the number of results to return (default: 10)
- Extract Rich Data: Retrieve structured information including:
- Note titles and content
- Author information
- Interaction metrics (likes, favorites, comments)
- Images (in WebP format)
- Hashtags
- Direct links to original notes
- Handles Authentication: Automatically manages login state and session persistence
- Efficient Processing: Utilizes parallel processing for concurrent content retrieval
- Multiple Use Cases: Useful for content research, trend analysis, and data extraction
Enables searching and retrieving content from Xiaohongshu (Red Book) platform, including note titles, content, author information, interaction metrics, images, hashtags, and direct links.
RedNote MCP - Xiaohongshu Content Search Tool
Overview
RedNote MCP is a Model Context Protocol (MCP) server for searching and retrieving content from Xiaohongshu (Red Book) platform. It provides intelligent content extraction with automatic login management and parallel processing capabilities.
Features
- Smart Search: Keyword-based content search on Xiaohongshu
- Auto Login: Automatic cookie management and login handling
- Parallel Processing: Efficient concurrent content retrieval
- Rich Data Extraction:
- Note titles and content
- Author information and descriptions
- Interaction metrics (likes, favorites, comments)
- Images and hashtags
- Direct note links
Technical Stack
- Runtime: Node.js with TypeScript
- Browser Automation: Playwright
- Protocol: Model Context Protocol (MCP) SDK
- Validation: Zod schema validation
- Package Manager: pnpm
Data Structure
Installation
Prerequisites
- Node.js 18+
- pnpm package manager
Setup
- Clone the repository:
- Install dependencies:
- Install Playwright browsers:
- Build the project:
Usage
Running the MCP Server
Development Mode
Testing
MCP Client Configuration
Claude Desktop
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 macOS/Linux users:
Replace the path with your actual project directory.
Other MCP Clients
For other MCP-compatible clients, use the built server file:
Tool Usage
Once configured, you can use the search tool in your MCP client:
The tool will return structured data including titles, content, author information, and images.
Important Notes
- First Run: Manual login to Xiaohongshu is required on first use
- Performance: Initial searches may take 30-60 seconds due to browser startup and content loading
- Rate Limiting: Concurrent requests are limited to 3 to avoid platform restrictions
- Image Format: Images are provided in WebP format
- Cookie Management: Login state is automatically saved and reused
Development
Project Structure
Available Scripts
pnpm build
- Build TypeScript to JavaScriptpnpm start
- Run the built MCP serverpnpm dev
- Development mode with auto-reloadpnpm test
- Run tests (if available)pnpm clean
- Clean build directory
Troubleshooting
Common Issues
- Login Required: If you see login prompts, delete the
cookies/
directory and restart - Timeout Errors: Increase the MCP client timeout settings
- Browser Not Found: Run
pnpm exec playwright install
to install browsers - Permission Errors: Ensure the project directory has proper read/write permissions
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This tool is for educational and research purposes. Please respect Xiaohongshu's terms of service and rate limits when using this tool.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Enables users to search and retrieve content from Xiaohongshu (Red Book) platform with smart search capabilities and rich data extraction including note content, author information, and images.
- Overview
- Features
- Technical Stack
- Data Structure
- Installation
- Usage
- MCP Client Configuration
- Tool Usage
- Important Notes
- Development
- Troubleshooting
- License
- Disclaimer
Related Resources
Related MCP Servers
- -securityAlicense-qualityA server that enables access to Xiaohongshu (Little Red Book) content, allowing users to search for notes and retrieve content via URLs with authentication management and cookie persistence.Last updated -874TypeScriptMIT License
- -securityFlicense-qualityA Playwright-based tool that automates Xiaohongshu (Little Red Book) interactions, enabling users to login, search for notes, view content, and post intelligent comments through natural language commands.Last updated -17Python
- -securityFlicense-qualityA microservice that wraps Xiaohongshu (Little Red Book) API into a RESTful API server, enabling users to perform various operations on the platform such as retrieving notes, searching users and content, and accessing user information.Last updated -6Python
- -securityFlicense-qualityA server that allows interfacing with the Chinese social media platform Xiaohongshu through HTTP requests, enabling searching notes, retrieving note content and comments, and posting comments.Last updated -1Python