小红书MCP服务
特点
- 采用js逆向出x-s,x-t,直接请求http接口,无须笨重的playwright
- 搜索笔记
- 获取笔记内容
- 获取笔记的评论
- 发表评论
快速开始
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"
}
}
}
}
免责声明
本项目仅用于学习交流,禁止用于其他用途,任何涉及商业盈利目的均不得使用,否则风险自负。
Metadata
Release files for jobson-xhs-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jobson_xhs_mcp-0.1.1.tar.gz | 287.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jobson_xhs_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 352.4 kB
Release files / jobson_xhs_mcp-0.1.1.tar.gz
| Download URL | jobson_xhs_mcp-0.1.1.tar.gz |
|---|---|
| Size | 287.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
119b3f29d734739d118b21dd7864c05ac0dc98dd8a8af535939fe917c992c66a
|
|
BLAKE2b-256 checksum How to use checksums |
5059a476fb7e5cf8df34c122155d8b86cd9c06911a840c61bd9cf7d324ad8876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Release files / jobson_xhs_mcp-0.1.1-py3-none-any.whl
| Download URL | jobson_xhs_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 65.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2ad772af6ad9edd3ec1dd1fbfa6c815ed08f440469d0c04bb4709744e8f9c12
|
|
BLAKE2b-256 checksum How to use checksums |
5988763ae4a97fb9941922f0bcc1e71b06c51f2339aef10dde6e095802728b0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Security for jobson-xhs-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.