一个强大的小红书自动化工具包,支持通过MCP协议与AI客户端(如Claude Desktop等)集成,实现与AI对话即可进行内容创作、发布及创作者数据分析。
一个强大的小红书自动化工具包,支持通过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 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 — 获取创作者数据用于分析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.
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.
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.
| Tool | What it does |
|---|---|
| test_connection | 测试MCP连接 |
| smart_publish_note | 发布小红书笔记 ⚡ |
| check_task_status | 检查发布任务状态 |
| get_task_result | 获取已完成任务的结果 |
| login_xiaohongshu | 智能登录小红书 |
| get_creator_data_analysis | 获取创作者数据用于分析 |
#### 使用系统 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.
| Variable | Description | Required |
|---|---|---|
| PYTHONPATH | Filesystem location the server is allowed to use. | Optional |
| REMOTE_BROWSER_HOST | Endpoint or connection string the server talks to. | Optional |
| CHROME_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.