Overview
What is 小红书热帖获取?
小红书热帖获取 is an MCP server that fetches trending posts from Xiaohongshu (Little Red Book) based on a keyword. It uses the FastMCP SDK and requires user authentication via QR code delivered through DingTalk. Developers and researchers can integrate this server into MCP clients to retrieve post data for educational or research purposes.
How to use 小红书热帖获取?
Clone the repository, install dependencies with uv sync, then run uv run main.py. Configure DingTalk webhook and secret in a mcp.env file. Add the server to your MCP client with transport type SSE and URL http://127.0.0.1:9090/sse. On first run, scan the QR code sent to DingTalk to log in to Xiaohongshu. Use the fetch_xhs_hot_post tool to get posts by keyword.
Key features of 小红书热帖获取
- Fetches hot Xiaohongshu posts by keyword
- Returns 5–10 posts per request (configurable)
- Includes title, content, publish time, and tags
- Uses DingTalk for secure login
- Runs locally with Python 3.12+ and Chrome
Use cases of 小红书热帖获取
- Analyze trending topics on Xiaohongshu
- Collect data for social media research
- Monitor keyword-specific content trends
- Feed post data into analytics pipelines
FAQ from 小红书热帖获取
How does authentication work?
The server sends a Xiaohongshu login QR code to a configured DingTalk group. You must scan it within 30 seconds; the process retries up to 3 times.
What data fields are returned for each post?
Each post includes its title, content, publish time, and associated tags. Refer to the Post model in model.py for the full schema.
Can I fetch more than 10 posts?
No. The server fetches a default of 5–10 posts per request and does not support pagination.
What are the system requirements?
Python 3.12+, Chrome browser, and an active internet connection. DingTalk robot credentials are required.
Is this server available on PyPI?
No. It is only distributed via GitHub for local deployment.