streamable-httpupdated 1y ago
[x] 采用js逆向出x-s,x-t,直接请求http接口,无须笨重的playwright [x] 搜索笔记 [x] 获取笔记内容 [x] 获取笔记的评论 [x] 发表评论
1 年以上コミットがありません。依存する前に要件を満たすか確認してください。
blbl147 xhs mcp で何ができる?
小红书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"
}
}
}
}
免责声明
本项目仅用于学习交流,禁止用于其他用途,任何涉及商业盈利目的均不得使用,否则风险自负。
インストール
blbl147 xhs mcp をクライアントに追加します。お使いのものを選んでください。
claude mcp add --transport http blbl147-xhs-mcp https://server.smithery.ai/@blbl147/xhs-mcp/mcpcodex mcp add blbl147-xhs-mcp --url https://server.smithery.ai/@blbl147/xhs-mcp/mcp{
"mcpServers": {
"blbl147-xhs-mcp": {
"url": "https://server.smithery.ai/@blbl147/xhs-mcp/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"blbl147-xhs-mcp": {
"type": "http",
"url": "https://server.smithery.ai/@blbl147/xhs-mcp/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"blbl147-xhs-mcp": {
"url": "https://server.smithery.ai/@blbl147/xhs-mcp/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"blbl147-xhs-mcp": {
"serverUrl": "https://server.smithery.ai/@blbl147/xhs-mcp/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
スコア
38 / 100
情報不足
- ドキュメント15/25
- メンテナンス5/25
- 信頼性6/20
- 機能0/15
- 導入のしやすさ12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 459 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
バージョン履歴
| バージョン | 公開日 |
|---|---|
| 1.6.0最新 | 2025年9月15日 |