小红书MCP服务 logo

小红书MCP服务

Community
fancyboi999

自动化小红书内容获取以及自动发布内容,大模型mcp服务

Publisherfancyboi999
Repositoryxhs-auto-mcp
LanguagePython
Forks
3
Stars
9
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    小红书MCP服务 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    9 stars and 3 forks from the linked repository.

自动化小红书MCP服务器

这是一个基于MCP的小红书内容创作和管理工具,可以帮助你自动化小红书内容平台的操作,包括搜索笔记、发布笔记、评论等功能。

功能特点

  • 🔍 搜索小红书笔记内容
  • 📝 发布图文/视频笔记
  • 💬 自动评论笔记
  • 🏠 获取首页推荐内容
  • 🔐 支持账号登录与验证

快速开始

1. 环境要求

  • node.js
  • python 3.12
  • uv (pip install uv)

2. 安装依赖

sh
git clone https://github.com/fancyboi999/xhs-auto-mcp.git

cd xhs-auto-mcp
uv venv
source .venv/bin/activate
uv pip install -e .

3. 获取小红书的cookie

打开网页端小红书 登录后,获取内容平台的cookie,将cookie配置到MCP服务的 XHS_COOKIE 环境变量中 获取cookie教程

4. 配置MCP服务

有两种方式可以配置和启动MCP服务,环境变量JSON_PATH 是用于存储创作平台token与cookie,因此请填写绝对路径:

方式一:使用stdio协议(直接连接)

在Claude配置中添加以下内容:

json
{
    "mcpServers": {
        "xhs-auto-mcp": {
            "command": "uvx",
            "args": ["xhs-auto-mcp", "--transport", "stdio"],
            "env": {
                "XHS_COOKIE": "xxxx",
                "JSON_PATH": "your_token_save_path"
            }
        }
    }
}

方式二:使用HTTP协议

  1. 启动HTTP服务:
sh
env XHS_COOKIE=xxxx JSON_PATH=your_token_save_path uvx xhs-auto-mcp --transport http --port 8080
  1. 在Claude配置中添加以下内容:
json
{
    "mcpServers": {
        "xhs-auto-mcp": {
            "type": "http",
            "url": "http://localhost:8080/mcp"
        }
    }
}

工具使用说明

本项目提供了多种工具来操作小红书平台:

可用工具

内容平台工具

  • 检查cookie有效性: 验证当前cookie是否有效
  • 获取首页推荐笔记: 获取小红书首页推荐内容
  • 搜索笔记: 根据关键词搜索笔记
  • 获取笔记内容: 获取指定笔记的详细内容
  • 获取笔记评论: 获取指定笔记的评论
  • 发表评论: 对指定笔记发表评论

创作平台工具

  • 登录: 通过手机号和验证码登录小红书创作平台
  • 发布图文笔记: 创建并发布包含图片的笔记
  • 发布视频笔记: 创建并发布包含视频的笔记

示例视频

查看演示视频了解如何使用本工具:演示视频

免责声明

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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "jobsonlook-xhs-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use 小红书MCP服务 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 小红书MCP服务 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 小红书MCP服务 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 小红书MCP服务 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "jobsonlook-xhs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xhs-auto-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 小红书MCP服务 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 小红书MCP服务 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 小红书MCP服务 to help me with this task?
小红书MCP服务
Sure. I read it.
Here is what I found using 小红书MCP服务.

Frequently asked questions

What is the 小红书MCP服务 MCP server used for?

小红书MCP服务 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 小红书MCP服务 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 小红书MCP服务 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 小红书MCP服务 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 小红书MCP服务 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 小红书MCP服务 MCP to TypingMind?

小红书MCP服务 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does 小红书MCP服务 MCP provide in TypingMind?

小红书MCP服务 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 小红书MCP服务 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 小红书MCP服务 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

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