npm install -g mcp-xiaohongshu
安装浏览器
npx playwright install
openclaw gateway restart
# 全局安装
npm install -g mcp-xiaohongshu

# 测试命令
mcp-xiaohongshu --version   # 应显示版本号
安装mcporter
npm install -g mcporter
 mcporter --version

删除配置
mcporter config remove xiaohongshu  
添加
mcporter config add xiaohongshu \
  --stdio "mcp-xiaohongshu --stdio"

检测安装

mcporter list

调用 方法2:使用 key=value 格式

mcporter call xiaohongshu.search_notes keywords="美食" limit=5

报错则

sudo apt-get install xvfb  

xvfb-run mcporter call xiaohongshu.search_notes keywords:"美食" limit:5

mcporter config add xiaohongshu \
  --stdio "mcp-xiaohongshu --stdio" \
  --env "HEADLESS=true" \
  --env "PUPPETEER_HEADLESS=true" \
  --env "PLAYWRIGHT_HEADLESS=true"

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐