/ 目錄 / 演練場 / xiaohongshu-mcp
● 社群 xpzouying ⚡ 即開即用

xiaohongshu-mcp

作者 xpzouying · xpzouying/xiaohongshu-mcp

AI-powered Xiaohongshu (Little Red Book) integration — publish, search, engage, and manage content on China's top social commerce platform.

xiaohongshu-mcp is an MCP server enabling AI assistants to interact with Xiaohongshu (Little Red Book), China's popular social media and commerce platform. It provides 13 tools for content publishing (image-text and video), feed discovery, search, post interaction (like, comment, favorite), user profiles, and QR-code authentication. Available as pre-built binaries, from source (Go), or via Docker.

為什麼要用

核心特性

即時演示

實際使用效果

xiaohongshu-mcp.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "xiaohongshu-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/xpzouying/xiaohongshu-mcp"
      ]
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "xiaohongshu-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/xpzouying/xiaohongshu-mcp"
      ]
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "xiaohongshu-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/xpzouying/xiaohongshu-mcp"
      ]
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "xiaohongshu-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/xpzouying/xiaohongshu-mcp"
      ]
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "xiaohongshu-mcp",
      "command": "TODO",
      "args": [
        "See README: https://github.com/xpzouying/xiaohongshu-mcp"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "xiaohongshu-mcp": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/xpzouying/xiaohongshu-mcp"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add xiaohongshu-mcp -- TODO 'See README: https://github.com/xpzouying/xiaohongshu-mcp'

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: xiaohongshu-mcp

How to publish content to Xiaohongshu with AI assistance

👤 Content creators and brands publishing on Xiaohongshu ⏱ ~10 min beginner

何時使用: You want to publish posts to Xiaohongshu without using the mobile app.

前置條件
  • xiaohongshu-mcp running — Download binary from releases or docker run
  • Xiaohongshu account authenticated — Use get_login_qrcode to scan and authenticate
步驟
  1. Authenticate
    Log into Xiaohongshu. Generate a QR code for me to scan.✓ 已複製
    → QR code displayed for mobile scanning
  2. Publish a post
    Publish a post about my coffee shop visit with these 3 photos. Title: '隐藏在街角的宝藏咖啡店'. Add hashtags #咖啡 #探店.✓ 已複製
    → Post published confirmation with link

結果: Content published to Xiaohongshu with images and hashtags.

注意事項
  • Content moderation may reject posts — Xiaohongshu has strict content policies. Avoid promotional language and follow community guidelines.
搭配使用: filesystem

組合

與其他 MCP 搭配,撬動十倍槓桿

xiaohongshu-mcp + filesystem

Batch prepare posts locally and publish them to Xiaohongshu

Read my prepared posts from ~/content/xhs/ and publish them one by one with appropriate hashtags.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
get_login_qrcode none Get QR code for authentication 0
check_login_status none Verify authentication status 0
publish_content title: str, description: str, images: str[], hashtags?: str[] Publish an image-text post 0
publish_with_video title: str, description: str, video: str Publish a video post 0
search_feeds keyword: str, filters? Search for content by keyword 0
get_feed_detail feed_id: str Get post details with comments 0
post_comment_to_feed feed_id: str, content: str Comment on a post 0
like_feed feed_id: str Like or unlike a post 0
user_profile user_id: str Get a user's profile information 0

成本與限制

運行它的成本

API 配額
Subject to Xiaohongshu's internal rate limits
每次呼叫 Token 數
200–1000 tokens per tool call
費用
Free
提示
Search before publishing to understand what performs well in your niche.

安全

權限、密鑰、影響範圍

憑證儲存: Session cookies stored locally after QR authentication
資料出站: Calls to Xiaohongshu's internal API endpoints

故障排查

常見錯誤與修復

QR code login fails

Ensure you scan the QR code with the Xiaohongshu mobile app within the timeout period. Try generating a new code.

驗證: check_login_status after scanning
Session expired

Re-authenticate by generating a new QR code and scanning again.

驗證: check_login_status
Post rejected by content moderation

Xiaohongshu has strict content policies. Review your content for promotional language, sensitive topics, or policy violations.

驗證: Check Xiaohongshu's content guidelines

替代方案

xiaohongshu-mcp 對比其他方案

替代方案何時用它替代權衡
Manual posting via Xiaohongshu appYou want guaranteed ToS complianceManual but no risk of account restrictions

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills