Xhs Toolkit MCP Server

一个强大的小红书自动化工具包,支持通过MCP协议与AI客户端(如Claude Desktop等)集成,实现与AI对话即可进行内容创作、发布及创作者数据分析。

Local serverstdioPython

What is the Xhs Toolkit MCP server?

一个强大的小红书自动化工具包,支持通过MCP协议与AI客户端(如Claude Desktop等)集成,实现与AI对话即可进行内容创作、发布及创作者数据分析。. That is what the xhs toolkit mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The tools it exposes

The server publishes 6 tools. What each one is for:

  • test_connection — 测试MCP连接
  • smart_publish_note — 发布小红书笔记 ⚡
  • check_task_status — 检查发布任务状态
  • get_task_result — 获取已完成任务的结果
  • login_xiaohongshu — 智能登录小红书
  • get_creator_data_analysis — 获取创作者数据用于分析

Getting it running

The server ships on PyPI as webdriver-manager, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: PYTHONPATH, REMOTE_BROWSER_HOST, CHROME_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Xhs Toolkit's toolset — test_connection, smart_publish_note, check_task_status and 3 more — is a fair guide to whether it matches your workflow. It is maintained by aki66938; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Xhs Toolkit's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
test_connection测试MCP连接
smart_publish_note发布小红书笔记 ⚡
check_task_status检查发布任务状态
get_task_result获取已完成任务的结果
login_xiaohongshu智能登录小红书
get_creator_data_analysis获取创作者数据用于分析

How to install the Xhs Toolkit MCP server

#### 使用系统 Python
如果不使用 uv,可以配置为:

```json
{
  "mcpServers": {
    "xhs-toolkit": {
      "command": "python3",
      "args": [
        "-m",
        "src.server.mcp_server",
        "--stdio"
      ],
      "cwd": "/path/to/xhs-toolkit",
      "env": {
        "PYTHONPATH": "/path/to/xhs-toolkit"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
PYTHONPATHFilesystem location the server is allowed to use.Optional
REMOTE_BROWSER_HOSTEndpoint or connection string the server talks to.Optional
CHROME_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Xhs Toolkit to test connection.
  • Use Xhs Toolkit to smart publish note.
  • Use Xhs Toolkit to check task status.

Frequently asked questions

It connects Xhs Toolkit to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (test_connection, smart_publish_note, check_task_status, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Xhs Toolkit directly.