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.0.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.0-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jobson_xhs_mcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b1be3cc0ec9570b32dff367b1484b29f5062a8de5bb5ed7ab1c1edaca5de089f
MD5 d8b3c6f496c475756fd1aa7a7e818424
BLAKE2b-256 ce3357ea58a5e84e33e2a895e904e09e327dc232b5a9d99d1b26a9805a5423a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jobson_xhs_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f575884244061cdbab325e2563637de868dfb16bcc755f6adbeb0acb27db0cd3
MD5 75c9cd8a2e4a1e45d2e53736b56b8c48
BLAKE2b-256 119946a3c94425065dd49790f39d2b962011089492708c7c0174c939b6bfb13d

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