小红书热帖获取
Description
## Python-MCP-Server:小红书热帖获取 本项目基于 [FastMCP SDK](https://github.com/jlowin/fastmcp) 开发,功能是根据指定“关键词”获取小红书的热帖数据,默认获取5~ 10篇(参数控制),不支持翻页获取。 ### 1. Tools - **fetch_xhs_hot_post**:从小红书获取爆款帖子数据 - 具体包括每篇帖子的标题、内容、发布时间、标签等数据,请查看 `model.py` 中的 `Post` class了解更多。 ### 2. 准备 #### 2.1 环境要求 -…
About
## Python-MCP-Server:小红书热帖获取 本项目基于 [FastMCP SDK](https://github.com/jlowin/fastmcp) 开发,功能是根据指定“关键词”获取小红书的热帖数据,默认获取5~ 10篇(参数控制),不支持翻页获取。 ### 1. Tools - **fetch_xhs_hot_post**:从小红书获取爆款帖子数据 - 具体包括每篇帖子的标题、内容、发布时间、标签等数据,请查看 `model.py` 中的 `Post` class了解更多。 ### 2. 准备 #### 2.1 环境要求 - Python 3.12+ - Chrome浏览器,Centos…
Details
- Author
- chaseSpace
- Downloads
- 202
- Categories
- Automation
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
小红书热帖获取Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"\u5c0f\u7ea2\u4e66\u70ed\u5e16\u83b7\u53d6": {
"mcp_fetch_xhs_post": {
"command": "\u4ec5\u652f\u6301\u672c\u5730sse\u90e8\u7f72",
"args": [],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
}
McpServers
{
"mcp_fetch_xhs_post": {
"command": "\u4ec5\u652f\u6301\u672c\u5730sse\u90e8\u7f72",
"args": [],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
Python-MCP-Server:小红书热帖获取
本项目基于 FastMCP SDK 开发,功能是根据指定“关键词”获取小红书的热帖数据,默认获取5~
10篇(参数控制),不支持翻页获取。
1. Tools
- fetch_xhs_hot_post:从小红书获取爆款帖子数据
- 具体包括每篇帖子的标题、内容、发布时间、标签等数据,请查看 model.py 中的 Post class了解更多。
2. 准备
2.1 环境要求
- Python 3.12+
- Chrome浏览器,Centos 安装参考这里
2.2 外部环境变量
由于目标网站需要登录后才可以搜索内容,因为本项目使用了钉钉来接收登录二维码,请先在钉钉群中添加机器人(安全设置选择加签),
并获取必要信息作为环境变量注入环境,如下示例:
```dotenv
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


