XHS-Downloader
MCP ServerFree小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
Capabilities14 decomposed
xiaohongshu work metadata extraction and parsing
Medium confidenceParses XiaoHongShu work URLs and extracts structured metadata including title, description, author info, media counts, and engagement metrics. Uses HTTP request interception with custom headers and cookie-based authentication to bypass platform restrictions, then deserializes JSON responses from XHS API endpoints into typed data structures for downstream processing.
Implements multi-interface metadata extraction (CLI, TUI, API, MCP, UserScript) all converging on a single XHS core class, enabling consistent parsing logic across 5 different execution modes while maintaining cookie-based authentication state management through a centralized configuration system.
Unified architecture across multiple interfaces (CLI, web API, MCP, browser script) provides flexibility that single-interface tools lack, while centralized XHS class prevents code duplication and ensures consistent metadata extraction logic.
watermark-free media download with format conversion
Medium confidenceDownloads images and videos from XiaoHongShu without platform watermarks by fetching clean media URLs from the platform's CDN, then stores files locally with configurable naming patterns and folder organization. Implements async batch downloading using httpx with connection pooling, progress tracking, and retry logic for failed transfers.
Implements a dedicated Download Manager module with async batch processing, connection pooling, and configurable retry logic that operates independently of the extraction pipeline, allowing parallel downloads while maintaining rate-limit compliance through a shared HTTP client instance.
Async batch downloading with connection pooling achieves higher throughput than sequential downloaders, while configurable naming templates and folder organization provide flexibility that generic download tools lack.
batch url extraction from user profiles, collections, and search results
Medium confidenceExtracts work URLs in bulk from XiaoHongShu user profiles (published works, favorites, likes), collections, and search results by paginating through API responses and collecting all work IDs. Implements pagination logic with configurable page size and maximum result limits, deduplication of extracted URLs, and progress tracking for long-running extractions. Returns a list of work URLs ready for batch downloading.
Implements pagination logic that automatically handles XHS API responses to extract all work URLs from a user profile or search result, with deduplication and progress tracking built-in.
Automatic pagination and deduplication eliminate manual URL collection, while progress tracking provides visibility into long-running extractions that single-request tools lack.
internationalization (i18n) with multi-language ui support
Medium confidenceProvides multi-language support for CLI, TUI, and API responses through a centralized i18n system that loads language files (JSON) at startup and substitutes localized strings throughout the application. Supports Chinese (Simplified/Traditional) and English with fallback to English if requested language is unavailable. Language selection is configurable via settings.json or environment variables.
Implements a centralized i18n system that loads language files at startup and provides localized strings throughout CLI, TUI, and API modes, enabling consistent multi-language support without code duplication.
Centralized i18n system eliminates scattered hardcoded strings, while JSON-based language files enable non-developers to contribute translations.
async http client with connection pooling and retry logic
Medium confidenceImplements a shared async HTTP client using httpx with connection pooling, automatic retry on transient failures (5xx errors, timeouts), exponential backoff, and custom headers (User-Agent, cookies) for XHS API requests. Reuses the same client instance across all requests to maximize connection reuse and minimize overhead. Implements timeout handling and graceful degradation on network errors.
Implements a shared async HTTP client with connection pooling and exponential backoff retry logic that is reused across all execution modes, ensuring efficient resource utilization and consistent error handling.
Connection pooling and async I/O provide higher throughput than sequential HTTP requests, while automatic retries improve reliability for batch operations without explicit error handling.
pyinstaller executable compilation with single-file distribution
Medium confidenceBuilds standalone executables for Windows, macOS, and Linux using PyInstaller, bundling Python runtime, dependencies, and application code into a single distributable file. Implements CI/CD workflows (GitHub Actions) that automatically compile executables on each release, with platform-specific optimizations and code signing for macOS. Executables include all required resources (i18n files, config templates) without external dependencies.
Implements automated PyInstaller builds via GitHub Actions that produce platform-specific executables with bundled resources, eliminating the need for users to install Python or manage dependencies.
Single-file executables are easier to distribute than Python packages, while CI/CD automation ensures consistent builds across platforms without manual compilation.
sqlite-based download history and metadata persistence
Medium confidenceMaintains a local SQLite database tracking all downloaded works, including work IDs, metadata snapshots, download timestamps, and file paths. Implements schema migrations for version compatibility, deduplication checks to prevent re-downloading, and query interfaces for filtering by date, author, or content type. Database operations use async SQLite bindings to avoid blocking the main event loop.
Integrates async SQLite operations into the main event loop using aiosqlite, enabling non-blocking database queries during batch downloads while maintaining ACID guarantees for deduplication checks and metadata snapshots.
Async SQLite integration prevents blocking the download pipeline on database writes, while local persistence avoids external database dependencies that REST API tools require.
multi-interface request routing and execution mode dispatch
Medium confidenceSingle entry point (main.py) dispatches to five distinct execution modes (CLI, TUI, API Server, MCP Server, UserScript) based on command-line arguments or environment configuration. All modes converge on the shared XHS core class, ensuring consistent business logic while allowing interface-specific input/output handling. Uses a layered architecture where the Manager class handles configuration, authentication, and resource lifecycle across all modes.
Implements a unified core XHS class that all five execution modes depend on, eliminating code duplication while allowing each interface to handle input/output independently. The Manager class provides a shared lifecycle for configuration, cookies, and resource cleanup across all modes.
Single codebase supporting CLI, TUI, API, MCP, and UserScript eliminates maintenance burden of separate tools, while unified core logic ensures consistent behavior across all interfaces.
cookie-based authentication with browser integration
Medium confidenceManages XiaoHongShu authentication through persistent cookies stored in configuration, with optional automatic extraction from browser cookies using platform-specific APIs (Windows Registry for Edge/Chrome, macOS Keychain, Linux SQLite). Implements cookie validation, expiration checking, and fallback to manual cookie input if automatic extraction fails. Cookies are encrypted in the settings.json file and decrypted at runtime.
Implements cross-platform browser cookie extraction using platform-specific APIs (Windows Registry, macOS Keychain, Linux SQLite) while maintaining a fallback to manual cookie input, eliminating the need for users to manually copy cookies from DevTools.
Automatic browser cookie extraction reduces friction compared to manual cookie copying, while support for multiple browsers (Chrome, Edge, Firefox) provides flexibility that single-browser tools lack.
terminal user interface (tui) with clipboard monitoring and interactive settings
Medium confidenceProvides an interactive terminal UI built with the Textual framework, featuring real-time clipboard monitoring for XHS URLs, interactive work preview, selective image index selection, and in-app settings management. Monitors the system clipboard in a background thread, detects XHS URLs, and prompts users to download. Implements keyboard shortcuts for navigation, filtering, and bulk operations on work lists.
Implements background clipboard monitoring in a separate thread that detects XHS URLs in real-time and prompts for download, eliminating the need to manually paste URLs into the application.
Real-time clipboard monitoring with interactive preview provides a more user-friendly experience than command-line tools, while keyboard-driven navigation offers faster workflows than GUI applications.
fastapi http server with rest endpoints for programmatic access
Medium confidenceExposes XHS-Downloader functionality via FastAPI REST API server running on port 5556, providing endpoints for work detail retrieval, batch downloads, and history queries. Implements async request handling, request validation using Pydantic models, and JSON response serialization. Supports CORS for cross-origin requests and includes basic rate limiting via request queuing.
Implements a lightweight FastAPI server that reuses the same XHS core class as other modes, providing REST endpoints without duplicating extraction/download logic. Async request handling prevents blocking on I/O operations.
FastAPI provides automatic OpenAPI documentation and async request handling out-of-the-box, while REST endpoints enable integration with any HTTP client library without language-specific SDKs.
model context protocol (mcp) server for ai assistant integration
Medium confidenceExposes XHS-Downloader as an MCP server compatible with Claude, ChatGPT, and other AI assistants, allowing LLMs to call tools for work extraction, metadata retrieval, and batch downloads. Implements MCP protocol handlers for tool definition, tool invocation, and result serialization. Enables AI agents to autonomously discover and use XHS capabilities through the standard MCP interface.
Implements MCP server protocol handlers that expose XHS-Downloader tools to AI assistants, enabling LLMs to autonomously discover and invoke download/extraction capabilities through a standardized interface.
MCP protocol provides a standardized interface that works with multiple AI assistants (Claude, ChatGPT, etc.), while custom tool definitions enable AI agents to understand and use XHS capabilities without hardcoded logic.
browser userscript with dual-mode operation (standalone and server-push)
Medium confidenceInjects a Tampermonkey/Greasemonkey UserScript into XiaoHongShu web pages that detects work links and provides download buttons. Operates in two modes: standalone (downloads directly via browser APIs) or server-push (sends download requests to a running XHS-Downloader instance). Implements DOM manipulation to inject UI elements, event listeners for download triggers, and optional WebSocket communication to the backend server.
Implements dual-mode UserScript that can operate independently (browser downloads) or push tasks to a backend server, providing flexibility for both standalone users and teams with centralized infrastructure.
In-browser UserScript provides immediate download convenience without leaving the page, while server-push mode enables centralized management and better quality control compared to browser-only downloads.
configurable file naming and folder organization with template variables
Medium confidenceProvides customizable file naming and folder structure through template variables (work ID, author, title, date, etc.) defined in settings.json. Implements a template engine that substitutes variables at download time, sanitizes file names to remove invalid characters, and creates nested folder hierarchies based on template patterns. Supports conditional folder creation based on content type (image vs. video).
Implements a simple but flexible template engine that substitutes predefined variables (work ID, author, title, date) into file paths, enabling users to organize downloads without writing custom code.
Template-based naming provides more flexibility than fixed naming schemes, while sanitization prevents file system errors without requiring user intervention.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with XHS-Downloader, ranked by overlap. Discovered automatically through the match graph.
XHS-Downloader
小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
xiaohongshu-mcp
MCP for xiaohongshu.com
AI Watermark Remover
Remove watermarks from images and...
Agent-Reach
Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
mcp-smart-crawler
A command-line tool acting as an MCP (ModelContextProtocol) server, using Playwright to crawl web content for AI models.
AnyCrawl
** - [AnyCrawl](https://anycrawl.dev) MCP Server, Powerful web scraping and crawling for Cursor, Claude, and other LLM clients via the Model Context Protocol (MCP).
Best For
- ✓Developers building content aggregation tools for XiaoHongShu
- ✓Data analysts collecting social media metrics at scale
- ✓Automation engineers integrating XHS content into workflows
- ✓Content creators backing up their own XHS posts
- ✓Researchers collecting datasets of social media content
- ✓Automation engineers building content distribution pipelines
- ✓Content creators backing up their entire profiles
- ✓Automation engineers building content aggregation pipelines
Known Limitations
- ⚠Requires valid XiaoHongShu cookies to access non-public content; cookie expiration breaks extraction
- ⚠API endpoints may change without notice as platform updates; no version pinning available
- ⚠Rate limiting enforced by XHS platform; no built-in backoff strategy beyond basic retry logic
- ⚠Metadata extraction depends on platform HTML/API structure; structural changes require code updates
- ⚠Download speed limited by XHS CDN bandwidth; no parallel stream support within single file
- ⚠File naming customization limited to predefined template variables; no arbitrary regex patterns
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 21, 2026
About
小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
Categories
Alternatives to XHS-Downloader
Are you the builder of XHS-Downloader?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →