XHS Downloader

v1.0.0Search & Data Extractionstable

小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件

apidockerdownloadfastapihttpx
Share:
11,231
Stars
0
Downloads
0
Weekly
0/5

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

Social media content extraction
Work collection
Media downloading
JoeanAmier

Maintainer

LicenseGPL-3.0
Languagepython
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx xhs-downloader

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-Downloader
2

Install 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.txt
3

Configure 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"
}
4

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 mcp
5

Configure 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/"
    }
  }
}
6

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-downloader

XHS 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.

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.

Quick Config Preview

{ "mcpServers": { "xhs-downloader": { "command": "npx", "args": ["-y", "xhs-downloader"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides