XHS Downloader
小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
What is XHS Downloader?
XHS Downloader is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 小红书(xiaohongshu、rednote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx xhs-downloaderConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use XHS Downloader
XHS Downloader is a Python tool for extracting and downloading content from Xiaohongshu (RedNote/Little Red Book), the popular Chinese social media platform. It can retrieve post metadata, extract watermark-free download URLs for photos, videos, and Live Photos, and batch-download content from user accounts, search results, favorites, or liked posts. An MCP mode exposes these capabilities to AI assistants like Claude so you can query and download Xiaohongshu content through natural-language commands.
Prerequisites
- Python 3.10+ and pip (or uv) installed
- A Xiaohongshu web session cookie (optional, enables private content access)
- Docker (optional, for the containerized deployment)
- Claude Desktop or another MCP-compatible client
Clone the repository
Clone the XHS-Downloader project from GitHub to get the source code and configuration files.
git clone https://github.com/JoeanAmier/XHS-Downloader.git
cd XHS-DownloaderInstall dependencies
Install the required Python packages. Using uv is recommended for faster dependency resolution, but pip works equally well.
# Using uv (recommended)
uv sync --no-dev
# Or using pip
pip install -r requirements.txtConfigure settings
Edit the settings file at ./Volume/settings.json to set your cookie, download folder, and file naming preferences. The cookie field is optional but required for private or login-gated content.
{
"cookie": "your_xiaohongshu_web_cookie_here",
"work_path": "./Volume",
"folder_name": "Download",
"image_format": "AUTO",
"language": "zh_CN"
}Start the server in MCP mode
Launch XHS-Downloader in MCP mode, which starts the HTTP API server on port 5556 and exposes MCP endpoints for AI assistant integration.
python main.py mcpConfigure your MCP client
Point your AI client to the running MCP server. The MCP endpoint is available at the URL below once the server is running.
{
"mcpServers": {
"xhs-downloader": {
"url": "http://127.0.0.1:5556/mcp/"
}
}
}Download content via Docker (alternative)
Run the tool in Docker if you prefer a containerized setup. The volume mount persists downloaded files and settings on the host.
docker pull joeanamier/xhs-downloader
docker run -p 5556:5556 -v xhs_downloader_volume:/app/Volume -it joeanamier/xhs-downloaderXHS Downloader Examples
Client configuration
MCP client config pointing to a locally running XHS-Downloader MCP server.
{
"mcpServers": {
"xhs-downloader": {
"url": "http://127.0.0.1:5556/mcp/"
}
}
}Prompts to try
Use these prompts in Claude or another AI assistant once the XHS-Downloader MCP server is running.
- "Download this Xiaohongshu post: https://www.xiaohongshu.com/explore/..."
- "Extract all image links from this RedNote post URL"
- "Get the metadata for this XHS post without downloading the files"
- "Batch download the first 5 images from this post"Troubleshooting XHS Downloader
Cannot access private posts or get 403 errors
Add your Xiaohongshu web session cookie to the cookie field in ./Volume/settings.json. Obtain it by logging into www.xiaohongshu.com in a browser and copying the cookie header from DevTools Network tab.
MCP server not reachable at port 5556
Confirm the server started successfully with 'python main.py mcp'. Check that port 5556 is not blocked by a firewall or already in use by another process.
Images download as WEBP instead of the expected format
Set image_format in settings.json to PNG or JPEG. The AUTO setting picks the platform's default format, which may be WEBP or HEIC depending on the post.
Frequently Asked Questions about XHS Downloader
What is XHS Downloader?
XHS Downloader is a Model Context Protocol (MCP) server that 小红书(xiaohongshu、rednote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install XHS Downloader?
Follow the installation instructions on the XHS Downloader GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with XHS Downloader?
XHS Downloader works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is XHS Downloader free to use?
Yes, XHS Downloader is open source and available under the GPL-3.0 license. You can use it freely in both personal and commercial projects.
XHS Downloader Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to XHS Downloader? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up XHS Downloader in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use XHS Downloader?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.