Setup Xhs Mcp logo

Setup Xhs Mcp

Organization
autoclaw-cc
setup-xhs-mcp

安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程。 当用户第一次使用小红书功能、提到安装/部署/配置小红书、环境搭建、MCP 服务连接失败、或 check_login_status 等 MCP 工具不可用时使用。

Overview

Publisherautoclaw-cc
Repositoryxiaohongshu-mcp-skills
Skill namesetup-xhs-mcp
Stars
277
Forks
46
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by autoclaw-cc on GitHub. Read the source before you install it.

Installation

Install the Setup Xhs Mcp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/autoclaw-cc/xiaohongshu-mcp-skills/tree/main/skills/setup-xhs-mcp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-mcp-skills.git /tmp/xiaohongshu-mcp-skills
mkdir -p .claude/skills
cp -r /tmp/xiaohongshu-mcp-skills/skills/setup-xhs-mcp .claude/skills/setup-xhs-mcp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Setup Xhs Mcp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Setup Xhs Mcp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Setup Xhs Mcp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

项目仓库:https://github.com/xpzouying/xiaohongshu-mcp

执行流程

1. 检测服务状态

检查 xiaohongshu-mcp 是否已在运行(注意:MCP 端点只接受 POST,GET 会返回 405,不能用 -f 判断):

bash
curl -so /dev/null http://localhost:18060/mcp && echo "running" || echo "not running"
  • 已运行 → 记录地址 http://localhost:18060/mcp,跳到步骤 3
  • 未运行 → 询问用户:服务是否部署在其他地址/端口?
    • 用户提供地址 → 验证可达后跳到步骤 3
    • 未部署 → 进入步骤 2

2. 部署服务

确认操作系统(macOS / Linux / Windows)和是否已安装 Docker。

方式一:Docker Compose(推荐)

Docker 镜像内置 Chrome 和中文字体,无需额外配置。

bash
# 下载 docker-compose.yml
wget https://raw.githubusercontent.com/xpzouying/xiaohongshu-mcp/main/docker/docker-compose.yml

# 启动服务
docker compose up -d

# 查看日志
docker compose logs -f

镜像源:

  • Docker Hub(默认):xpzouying/xiaohongshu-mcp
  • 阿里云(国内推荐):crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp

切换方法:编辑 docker-compose.yml,注释默认 image 行,取消注释阿里云 image 行。

数据持久化:

  • ./data — cookies 登录状态
  • ./images — 发布图片时的挂载目录
方式二:下载二进制

从 GitHub Releases 下载:https://github.com/xpzouying/xiaohongshu-mcp/releases/latest

bash
curl -s https://api.github.com/repos/xpzouying/xiaohongshu-mcp/releases/latest | grep browser_download_url

注意:二进制方式需要本机已安装 Chrome 或 Chromium。

方式三:源码编译

不推荐,仅适合 Go 开发者。参考项目仓库 README。

部署完成后用 curl 确认服务已启动,然后进入步骤 3。

3. 检测 MCP 连接配置

检查当前客户端是否已配置 xiaohongshu MCP 连接。

Claude Code:读取 ~/.claude/settings.json 和项目级 .claude/settings.json,查找 mcpServers 中是否有 xiaohongshu 配置。

  • 已配置且地址正确 → 跳到步骤 5
  • 已配置但地址不匹配 → 修正地址
  • 未配置 → 进入步骤 4

4. 配置 MCP 连接

询问用户:

连接地址:如果步骤 1 已确认可达的地址,用该地址作为默认值,否则默认 http://localhost:18060/mcp。

使用的客户端:

Claude Code:

bash
claude mcp add xiaohongshu --transport http <地址>

或写入配置文件:

  • 全局:~/.claude/settings.json
  • 项目级:.claude/settings.json
json
{
  "mcpServers": {
    "xiaohongshu": {
      "url": "http://localhost:18060/mcp"
    }
  }
}

Cursor(.cursor/mcp.json):

json
{
  "mcpServers": {
    "xiaohongshu": {
      "url": "http://localhost:18060/mcp"
    }
  }
}

其他客户端:告知用户 MCP 服务地址,让用户按客户端文档自行配置。

5. 验证与提示

  1. 提示用户重启当前会话 — MCP 配置变更后需重启客户端才能加载新的 MCP 工具
  2. 重启后调用 check_login_status 验证连接正常
  3. 验证成功 → 引导用户使用 /xhs-login 完成扫码登录

环境变量(可选)

  • XHS_PROXY — HTTP/HTTPS/SOCKS5 代理地址
  • ROD_BROWSER_BIN — 自定义 Chromium 路径
  • HEADLESS — 无头模式开关

失败处理

场景处理
Docker 未安装建议安装 Docker 或改用二进制方式
国内拉取镜像慢切换到阿里云镜像源
端口 18060 被占用检查已有进程,或更换端口
Chrome 未安装(二进制方式)引导安装 Chrome 或改用 Docker 方式
配置写入后工具仍不可用提示重启客户端会话
已有配置但地址错误修正地址并重启

Frequently asked questions

What does the Setup Xhs Mcp AI skill do?

安装部署 xiaohongshu-mcp 服务并配置 MCP 连接,引导用户完成从零到可用的全流程。 当用户第一次使用小红书功能、提到安装/部署/配置小红书、环境搭建、MCP 服务连接失败、或 check_login_status 等 MCP 工具不可用时使用。

Why use Setup Xhs Mcp on TypingMind?

Because you install it once and use it with any model. Setup Xhs Mcp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Setup Xhs Mcp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/autoclaw-cc/xiaohongshu-mcp-skills/tree/main/skills/setup-xhs-mcp. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Setup Xhs Mcp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Setup Xhs Mcp?

As many as you like. As long as a model supports skills, you can use Setup Xhs Mcp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Setup Xhs Mcp AI skill free?

Yes. It is published on GitHub by autoclaw-cc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇