首页
看点啥
插画图片
首页 科技看点 小红书 MCP:自动化小红书运营 - Openclaw Skills

小红书 MCP:自动化小红书运营 - Openclaw Skills

2026-08-18 0

什么是 小红书 MCP?

小红书 MCP 技能在 AI 编程智能体与小红书(RedNote)平台之间架起了一座坚实的桥梁。通过利用 Openclaw Skills 架构,该工具可以实现内容运营的无缝自动化,包括发布高质量的图文帖子、进行深度市场调研以及管理用户动态。它依赖高性能的本地服务器来处理与小红书 API 的复杂交互,确保任务执行的安全与高效。

这项技能对于构建自动化营销工作流的开发者或希望从社交趋势中提取洞察的研究人员特别有价值。通过集成 Openclaw Skills,用户可以将本地环境转变为管理亚洲最具影响力的社交电商平台之一的强大指挥中心。

下载入口:https://github.com/openclaw/skills/tree/main/skills/borye/xiaohongshu-mcp

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install xiaohongshu-mcp

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 xiaohongshu-mcp。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

小红书 MCP 应用场景

小红书 MCP 工作原理
  1. 用户将特定平台的 MCP 服务器和登录二进制文件下载到本地机器。
  2. 通过二维码登录工具建立安全的身份验证会话,将本地服务器与小红书账号关联。
  3. 在后台启动 MCP 服务器,本地端口(默认为 18060)的请求。
  4. 使用 Openclaw Skills 的 AI 智能体调用捆绑的 Python 客户端脚本,向服务器发送指令。
  5. 服务器执行请求的操作(如搜索或发布),并将结构化数据返回给智能体进行进一步处理。

小红书 MCP 配置指南

1. 准备二进制文件

下载适用于您操作系统的正确二进制文件并授予执行权限:

chmod +x xiaohongshu-mcp-darwin-arm64 xiaohongshu-login-darwin-arm64

2. 身份验证

通过使用手机 App 扫描二维码来初始化会话:

./xiaohongshu-login-darwin-arm64

3. 启动服务器

启动服务器以开始通过 Openclaw Skills 接收请求:

./xiaohongshu-mcp-darwin-arm64 -headless=true

小红书 MCP 数据架构与分类体系

该技能通过结构化的 Python 客户端接口组织交互数据。以下是操作过程中使用的主要数据分类:

对象类型 描述 关键属性
搜索结果 关键词查询返回的数据 feed_id, xsec_token, title
笔记详情 完整的帖子数据 content, comments_count, share_link
动态对象 推荐内容流 user_info, post_type, engagement_metrics
发布负载 创建帖子所需的数据 title, description, image_url_list
name: xiaohongshu-mcp
description: >
  Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server.
  Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends,
  (3) Analyzing post details and comments, (4) Managing user profiles and content feeds.
  Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.

Xiaohongshu MCP Skill (with Python Client)

Automate content operations on Xiaohongshu (小红书) using a bundled Python script that interacts with the xpzouying/xiaohongshu-mcp server (8.4k+ stars).

Project: xpzouying/xiaohongshu-mcp

1. Local Server Setup

This skill requires the xiaohongshu-mcp server to be running on your local machine.

Step 1: Download Binaries

Download the appropriate binaries for your system from the GitHub Releases page.

Platform MCP Server Login Tool
macOS (Apple Silicon) xiaohongshu-mcp-darwin-arm64 xiaohongshu-login-darwin-arm64
macOS (Intel) xiaohongshu-mcp-darwin-amd64 xiaohongshu-login-darwin-amd64
Windows xiaohongshu-mcp-windows-amd64.exe xiaohongshu-login-windows-amd64.exe
Linux xiaohongshu-mcp-linux-amd64 xiaohongshu-login-linux-amd64

Grant execute permission to the downloaded files:

chmod +x xiaohongshu-mcp-darwin-arm64 xiaohongshu-login-darwin-arm64

Step 2: Login (First Time Only)

Run the login tool. It will open a browser window with a QR code. Scan it with your Xiaohongshu mobile app.

./xiaohongshu-login-darwin-arm64

Important: Do not log into the same Xiaohongshu account on any other web browser, as this will invalidate the server's session.

Step 3: Start the MCP Server

Run the MCP server in a separate terminal window. It will run in the background.

# Run in headless mode (recommended)
./xiaohongshu-mcp-darwin-arm64

# Or, run with a visible browser for debugging
./xiaohongshu-mcp-darwin-arm64 -headless=false

The server will be available at http://localhost:18060.

2. Using the Skill

This skill includes a Python client (scripts/xhs_client.py) to interact with the local server. You can use it directly from the shell.

Available Commands

Command Description Example
status Check login status python scripts/xhs_client.py status
search Search for notes python scripts/xhs_client.py search "咖啡"
detail Get note details python scripts/xhs_client.py detail "note_id" "xsec_token"
feeds Get recommended feed python scripts/xhs_client.py feeds
publish <content> <images></CODE></TD> <TD>Publish a note</TD> <TD><CODE>python scripts/xhs_client.py publish "Title" "Content" "url1,url2"</CODE></TD></TR></TBODY></TABLE></DIV> <H3 id=example-workflow-market-research>Example Workflow: Market Research</H3> <OL> <LI> <P><STRONG>Check Status</STRONG>: First, ensure the server is running and you are logged in.</P><PRE><CODE class=language-shell>python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py status </CODE></PRE></LI> <LI> <P><STRONG>Search for a Keyword</STRONG>: Find notes related to your research topic. The output will include the <CODE>feed_id</CODE> and <CODE>xsec_token</CODE> needed for the next step.</P><PRE><CODE class=language-shell>python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py search "户外电源" </CODE></PRE></LI> <LI> <P><STRONG>Get Note Details</STRONG>: Use the <CODE>feed_id</CODE> and <CODE>xsec_token</CODE> from the search results to get the full content and comments of a specific note.</P><PRE><CODE class=language-shell>python ~/clawd/skills/xiaohongshu-mcp/scripts/xhs_client.py detail "64f1a2b3c4d5e6f7a8b9c0d1" "security_token_here" </CODE></PRE></LI> <LI> <P><STRONG>Analyze</STRONG>: Review the note's content, comments, and engagement data to gather insights.</P></LI></OL> </div> <!-- --> <div class="content_btn_item clearfix"> <span>喜欢(0)</span> </div> <!-- --> <div class="content_page"> <a class="img_box" href="/news/3452223.html"> <div class="bg"> <p class="page">上一篇</p> <p class="info text_overflow_2">酷比魔方掌玩Mini 4标准版发布:7.3mm超薄机身,</p> </div> <img src="https://www.0405.net/uploads/20260817/logo_6a8295bd3ff431.webp" alt="酷比魔方掌玩Mini 4标准版发布:7.3mm超薄机身,"> </a> <a class="img_box" href="/news/3452225.html"> <div class="bg"> <p class="page">下一篇</p> <p class="info text_overflow_2">《明日方舟终末地》黎风装备搭配建议一览</p> </div> <img src="https://www.0405.net/uploads/20260817/logo_6a829610774561.jpg" alt="《明日方舟终末地》黎风装备搭配建议一览"> </a> </div> </div> <!-- 列表 --> <div style="padding-bottom: 10px;"> <div class="px15" style="font-weight: bold;font-size: .36rem;padding-top: .3rem;">猜你喜欢</div> <ul class="px15 news_box"> <li> <a class="clearfix" href="/news/3466078.html"> <span class="img_item"> <img lazy-src="https://www.0405.net/uploads/20260912/logo_6aa518198a2e91.webp"> </span> <div class="content"> <p class="title text_overflow_2">OpnForm:实践指南</p> <p class="text"><span class="icon time">2026-09-12</span> <span class="icon heart">3466078</span></p> </div> </a> </li> <li> <a class="clearfix" href="/news/3466074.html"> <span class="img_item"> <img lazy-src="https://www.0405.net/uploads/20260912/logo_6aa51678ac2c11.webp"> </span> <div class="content"> <p class="title text_overflow_2">bilingual_book_maker:实践指南</p> <p class="text"><span class="icon time">2026-09-12</span> <span class="icon heart">3466074</span></p> </div> </a> </li> <li> <a class="clearfix" href="/news/3466072.html"> <span class="img_item"> <img lazy-src="https://www.0405.net/uploads/20260912/logo_6aa5154d529fe1.webp"> </span> <div class="content"> <p class="title text_overflow_2">fvm:实践指南</p> <p class="text"><span class="icon time">2026-09-12</span> <span class="icon heart">3466072</span></p> </div> </a> </li> <li> <a class="clearfix" href="/news/3466070.html"> <span class="img_item"> <img lazy-src="https://www.0405.net/uploads/20260912/logo_6aa50a113c8ef1.webp"> </span> <div class="content"> <p class="title text_overflow_2">jasp-desktop:实践指南</p> <p class="text"><span class="icon time">2026-09-12</span> <span class="icon heart">3466070</span></p> </div> </a> </li> <li> <a class="clearfix" href="/news/3466069.html"> <span class="img_item"> <img lazy-src="https://www.0405.net/uploads/20260912/logo_6aa50a0dac3c21.webp"> </span> <div class="content"> <p class="title text_overflow_2">base-llm:实践指南</p> <p class="text"><span class="icon time">2026-09-12</span> <span class="icon heart">3466069</span></p> </div> </a> </li> </ul> </div> <!-- 底部 --> <div class="footer_box"> <p>Copyright © 2022 漫资讯 · Powered By WordPress</p> </div> <div class="back_top" id="back_top"><a href="javascript:;"></a></div> </body> <script src="/mob/js/jquery.js" type="text/javascript" charset="utf-8"></script> <script src="/mob/js/lazy.js" type="text/javascript" charset="utf-8"></script> <script src="/mob/js/flexible.js" type="text/javascript" charset="utf-8"></script> <script src="/mob/js/index.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> var _paq = window._paq = window._paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//tongji.zhangwan.net/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); // Add this code below within the Matomo JavaScript tracker code // Important: the tracker url includes the /matomo.php var secondaryTrackerUrl = u+'matomo.php'; var secondaryWebsiteId = 27; // Also send all of the tracking data to this other Matomo server, in website ID 77 _paq.push(['addTracker', secondaryTrackerUrl, secondaryWebsiteId]); // That's it! var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e9f2069e6989ecb71b4b1c8018eaf5ed"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </html>