Skip to main content

小红书MCP服务器 - 提供小红书API功能的MCP工具

Project description

小红书MCP服务

smithery badge

特点

  • 采用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 环境变量中 cookie

4. 配置mcp server

{
    "mcpServers": {
        "xhs-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/Users/xxx/xhs-mcp",
                "run",
                "main.py"
            ],
            "env": {
                "XHS_COOKIE": "xxxx"
            }
        }
    }
}

免责声明

本项目仅用于学习交流,禁止用于其他用途,任何涉及商业盈利目的均不得使用,否则风险自负。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jobson_xhs_mcp-0.1.1.tar.gz (287.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jobson_xhs_mcp-0.1.1-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

Details for the file jobson_xhs_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: jobson_xhs_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 287.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for jobson_xhs_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 119b3f29d734739d118b21dd7864c05ac0dc98dd8a8af535939fe917c992c66a
MD5 71f92cb2f8a5e78b4a1fafa42ac740bf
BLAKE2b-256 5059a476fb7e5cf8df34c122155d8b86cd9c06911a840c61bd9cf7d324ad8876

See more details on using hashes here.

File details

Details for the file jobson_xhs_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jobson_xhs_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ad772af6ad9edd3ec1dd1fbfa6c815ed08f440469d0c04bb4709744e8f9c12
MD5 5728f5f3414c5bcc1bff8b106ddd65e9
BLAKE2b-256 5988763ae4a97fb9941922f0bcc1e71b06c51f2339aef10dde6e095802728b0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page