Back to Browse

Apiserver Xhs MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Hosted read-only Xiaohongshu (RedNote) data MCP. No XHS account or cookies required.

About

Hosted read-only Xiaohongshu (RedNote) data MCP. No XHS account or cookies required.

Remote endpoints: streamable-http: https://dataflowserver.org/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (3 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

8 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

file_system

Applies to the server that hosts this plugin, not to your machine.

env_vars

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-submato-apiserver-xhs-mcp": {
      "url": "https://dataflowserver.org/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

This server needs this header. Replace each <YOUR_...> placeholder with your own value:

  • Authorization (required): DataFlow API token formatted as 'Bearer YOUR_DATAFLOW_TOKEN'. Register at https://dataflowserver.org/register/ and obtain your token at https://dataflowserver.org/login/.

Documentation

View on GitHub

From the project's GitHub README.

小红书MCP(xiaohongshu-mcp 免登录云端版)| DataFlow XHS MCP

apiserver-xhs-mcp 是面向 Cursor、Claude Code、Cherry Studio、Trae、Codex 及其他 AI Agent 的小红书MCP(Xiaohongshu / RedNote MCP)云端免登录服务,同时也开源支持本地自托管。

为什么需要它? 如果你在用本地 xiaohongshu-mcp / Playwright 爬虫时经常遇到 扫码登录失效、Cookie 过期、多端踢下线或账号被风控,可以直接切换到本云端只读 MCP:零安装、无需小红书账号、无需 Cookie、不碰你自己的账号,单次调用 45–60 Token(约 ¥0.045–¥0.06/次,支持支付宝直充)。

English: Hosted & self-hostable Xiaohongshu (RedNote) MCP server (xiaohongshu-mcp without login) for Cursor, Claude Code, and AI Agents — search notes, fetch note details, comments, subcomments, user profiles, and user posts via Streamable HTTP. Zero XHS account, zero cookies, zero local Playwright/browser automation required.

DataFlow Xiaohongshu MCP server DataFlow Xiaohongshu MCP connector

DataFlow 是独立第三方数据接口服务,与小红书没有隶属、赞助或官方合作关系。本项目仅提供只读数据查询,不用于发布内容、登录账号或绕过平台权限。使用者应遵守适用法律、平台规则和数据保护要求。


快速开始:云端直连(推荐,30 秒零安装)

无需 git clone、无需装 Node.js / Playwright、无需扫码登录小红书账号。只需一个 DataFlow Token,把下面配置粘贴到你的 AI 客户端即可:

1. Cursor / Windsurf / Trae / Cline(mcp.json)

{
  "mcpServers": {
    "xiaohongshu": {
      "url": "https://dataflowserver.org/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_DATAFLOW_TOKEN"
      }
    }
  }
}

2. Claude Code(一行命令)

claude mcp add --transport http xiaohongshu https://dataflowserver.org/mcp \
  --header "Authorization: Bearer YOUR_DATAFLOW_TOKEN"

3. Cherry Studio / 支持自定义请求头的客户端

  • 类型(Transport):Streamable HTTP
  • URL:https://dataflowserver.org/mcp
  • 请求头(Headers):Authorization: Bearer YOUR_DATAFLOW_TOKEN(也支持 X-API-Key: YOUR_DATAFLOW_TOKEN)

提示:MCP initialize 和 tools/list 支持免鉴权发现,客户端接入后可立即看到全部 8 个工具;实际调用工具时再校验 DataFlow Token。


与本地小红书爬虫 MCP 的区别

对比项DataFlow 云端小红书 MCP本地浏览器 / 账号爬虫 MCP
本地安装不需要(填入 HTTPS URL 即可)需要装 Python/Node + Playwright/浏览器
小红书账号不需要需要扫码登录个人账号
Cookie / 验证码 / 封号风险无(不碰你的小红书账号)Cookie 易过期,高频容易触发风控封号
协议支持标准 Streamable HTTP(无状态)多为本地 stdio,难给团队/云端 Agent 共享
数据范围8 个只读 XHS V2 查询工具取决于本地逆向与脚本维护状态

支持哪些 MCP 工具?

当前版本(v0.3.0)提供 8 个只读工具,全部路由至 DataFlow XHS V2 数据接口:

MCP 工具能力说明单次价格
xhs_v2_search_notes搜索笔记,支持排序(综合/最新/最多点赞/评论/收藏/英文优先)、类型和时间筛选60 Token
xhs_v2_get_note获取适配后的笔记详情45 Token
xhs_v2_get_full_note获取完整笔记详情60 Token
xhs_v2_get_comments获取一级评论,支持按最新或最热排序及分页45 Token
xhs_v2_get_subcomments获取某条一级评论的二级回复及分页45 Token
xhs_v2_get_user获取适配后的用户资料45 Token
xhs_v2_get_full_user获取完整用户资料60 Token
xhs_v2_list_user_notes获取用户发布的笔记列表,支持 cursor 翻页60 Token

充值比例 1 元 = 1,000 DataFlow Token(45 Token ≈ ¥0.045/次,60 Token ≈ ¥0.06/次,支持支付宝直充)。DataFlow Token 是站内接口计费单位,不是大语言模型上下文 Token。最新参数、错误码和退费规则以 DataFlow Apifox 文档 为准。


典型使用场景

  • AI 选品与舆情研究:让 Cursor / Claude 搜索某个品类的爆款笔记并批量汇总评论区痛点;
  • 竞品与品牌口碑监控:跟踪品牌或竞品在小红书上的最新讨论与正负面反馈;
  • 达人初筛与内容复盘:批量查看达人资料与近期作品互动表现;
  • 工作流与 Agent 集成:在各类支持 Streamable HTTP MCP 的 Agent 框架中直接挂接只读小红书数据源。

如果需求是自动发布、点赞、收藏、私信或账号运营自动化,本项目不适用。


方式二:本地自托管部署(可选)

如果你希望在自己的服务器或本地运行本 MCP 网关(Node.js 20+):

git clone https://github.com/submato/apiserver-xhs-mcp.git
cd apiserver-xhs-mcp
npm install
cp .env.example .env
npm run build
npm start

默认端点:

  • MCP:http://localhost:3000/mcp
  • 健康检查:http://localhost:3000/mcp/health(兼容 /health)
  • Server Card:http://localhost:3000/.well-known/mcp/server-card.json

也支持使用根目录的 Dockerfile 容器化运行。


English Summary

DataFlow Xiaohongshu (RedNote) MCP (apiserver-xhs-mcp) is a hosted, stateless Streamable HTTP MCP server providing read-only access to public Xiaohongshu (RedNote) data — note search, note details, comments, subcomments, user profiles, and user posts — without requiring a Xiaohongshu account, login cookies, CAPTCHAs, or local Playwright automation.

  • Hosted Remote Endpoint: https://dataflowserver.org/mcp
  • Transport: Streamable HTTP (POST /mcp)
  • Authentication: Authorization: Bearer YOUR_DATAFLOW_TOKEN or X-API-Key: YOUR_DATAFLOW_TOKEN (unauthenticated initialize and tools/list supported for client/registry discovery)
  • Get a Token: Register · Console & Billing
  • Server Card: https://dataflowserver.org/.well-known/mcp/server-card.json
{
  "mcpServers": {
    "xiaohongshu": {
      "url": "https://dataflowserver.org/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_DATAFLOW_TOKEN"
      }
    }
  }
}

常见问题

使用云端 MCP 需要提供小红书账号或 Cookie 吗?

不需要。你只需要在 DataFlow 注册并获取 DataFlow Token,全程不接触你的小红书账号。

DataFlow Token 会发给大模型吗?

不会。Token 放在 HTTP Authorization 或 X-API-Key 请求头中,不属于工具入参,模型对话不会看到你的 Token。

上游异常或失败怎么处理?

上游数据受第三方平台可用性和网络波动影响,服务不保证 100% 实时可用。具体错误码与计费/退费规则详见 DataFlow 文档。


项目信息

  • 版本:v0.3.0
  • 协议:Model Context Protocol(Streamable HTTP)
  • 云端端点:https://dataflowserver.org/mcp
  • 开源协议:MIT
  • 安全反馈:SECURITY.md · 贡献指南:CONTRIBUTING.md

Reviews

No reviews yet

Be the first to review this server!