小红书MCP服务
特点
- [x] 采用js逆向出x-s,x-t,直接请求http接口,无须笨重的playwright
- [x] 搜索笔记
- [x] 获取笔记内容
- [x] 获取笔记的评论
- [x] 发表评论

快速开始
1. 环境
- node
- python 3.12
- uv (pip install uv)
2. 安装依赖
git clone git@github.com:jobsonlook/xhs-mcp.git
cd xhs-mcp
uv sync
3. 获取小红书的cookie
打开web小红书
登录后,获取cookie,将cookie配置到第4步的 XHS_COOKIE 环境变量中

4. 配置mcp server
{
"mcpServers": {
"xhs-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/xxx/xhs-mcp",
"run",
"main.py"
],
"env": {
"XHS_COOKIE": "xxxx"
}
}
}
}
免责声明
本项目仅用于学习交流,禁止用于其他用途,任何涉及商业盈利目的均不得使用,否则风险自负。
小红书MCP服务
by wuxiao2020
Project Details
- wuxiao2020/xhs-mcp
- Last Updated: 6/11/2025
Recomended MCP Servers
Next SaaS Stripe Starter
🧩
Voice Recognition Service
mcp_voice_identify
Smooth Operator Agent Tools
Python Code Explorer
A python mcp mainly used to load relevant python context efficiently with minimum tool calls.
🧩
Weather-MCP-Server
🧩
JR East Delay Information Server
🧩
ZTA Paradigm based MCP Server
Zero Trust Agentic Access based MCP Server Reference Implementation
Deepwiki Fetch Server
📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
🧩
Company Intranet Platform
Platform aims to provide a centralized place for information, tools, and communication, with a powerful semantic search for...
Slide Captcha
Slide Captcha for React by Typescript
🧩
Minecraft Bot Server
A Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing...
🧩
MCP-RAG





