Xiaohongshu (Little Red Book) MCP Server
io.github.shanyang-me/xiaohongshu-mcp·v0.1.1·2 starsPublish, search, and manage Xiaohongshu (Little Red Book) content via MCP tools.
2 stars136 downloads/wk
Reviews
Write oneNobody has reviewed Xiaohongshu (Little Red Book) MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Xiaohongshu (Little Red Book) MCP Server tools (8, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
check_login_statusCheck Xiaohongshu login status (检查小红书登录状态)
check_qrcode_statusCheck QR code scan status. Call after scanning the QR code from get_login_qrcode.
get_feed_detailGet note details (获取笔记详情)
get_login_qrcodeGet QR code for Xiaohongshu login. Scan with XHS app, then call check_qrcode_status. (获取小红书登录二维码,用小红书APP扫码后调用 check_qrcode_status)
publish_contentwrite actionPublish an image note to Xiaohongshu (发布小红书图文内容)
reload_cookiesReload cookies after external login (e.g. via xiaohongshu-login CLI). (重新加载cookies)
search_feedsSearch Xiaohongshu notes (搜索小红书内容)
user_profileGet user profile info (获取用户主页信息)
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 206 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Xiaohongshu (Little Red Book) MCP Server compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 3,470 Web search servers
- Tools
- 8
- the typical Web search server has 5
- Tools that change things
- 13%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 70% of 1,786 Web search servers
- Downloads a week
- 136
- more than 65% of 827 Web search servers with a package
What its tools let an agent do: 7 read · 1 send or post
Install Xiaohongshu (Little Red Book) MCP Server in Claude Code, Cursor or VS Code
claude mcp add xiaohongshu-mcp -- uvx xiaohongshu-mcp-server
What the publisher says
From the Xiaohongshu (Little Red Book) MCP Server repository's README, as published. We do not edit it. Read it on GitHub
xiaohongshu-mcp-server
<!-- mcp-name: io.github.shanyang-me/xiaohongshu-mcp -->
A Model Context Protocol (MCP) server for Xiaohongshu (Little Red Book) - China's leading lifestyle social media platform.
Publish image notes, search content, view note details, and manage your account - all through MCP tools that AI assistants can use directly.
How It Works
Uses Playwright to run a headless Chromium browser that:
- Loads your XHS session cookies
- Generates authentic API signatures via the XHS web app's built-in signing function
- Makes API calls through the browser's network context (bypasses anti-bot detection)
- Uploads images directly to XHS CDN
No browser automation of UI elements - all interactions go through XHS's internal API.
Tools
Installation
pip install xiaohongshu-mcp-server
playwright install chromiumFor QR code image generation (optional):
pip install "xiaohongshu-mcp[qrcode]"Quick Start
1. Start the server
HTTP mode (for Claude Code, Cursor, etc.):
xhs-mcp --transport http --port 18060stdio mode (for Claude Desktop):
xhs-mcp --transport stdio2. Login
Call the getloginqrcode tool, scan the QR code with the Xiaohongshu app, then call checkqrcodestatus with the returned qr_id and code. Cookies are saved to ~/.xhs-mcp/cookies.json and persist across restarts.
3. Use
Ask your AI assistant to publish a note, search for content, etc.
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claudedesktopconfig.json:
{
"mcpServers": {
"xhs-mcp": {
"command": "xhs-mcp",
"args": ["--transport", "stdio"]
}
}
}Claude Code
claude mcp add xhs-mcp --transport http http://localhost:18060/mcpThen start the server: xhs-mcp
As a LaunchAgent (macOS auto-start)
Create ~/Library/LaunchAgents/com.xhs-mcp.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.xhs-mcp</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/your/venv/bin/xhs-mcp</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/xhs-mcp.log</string>
<key>StandardErrorPath</key>
<string>/tmp/xhs-mcp.err</string>
</dict>
</plist>launchctl load ~/Library/LaunchAgents/com.xhs-mcp.plistExample: Publish a Note
# Via MCP tool call
publish_content(
title="Hello XHS!",
content="My first post published via MCP.",
images=["/path/to/photo.jpg"],
tags=["MCP", "AI"]
)Requirements
- Python 3.12+
- Chromium (installed via playwright install chromium)
- A Xiaohongshu account
License
MIT
Nothing above is checked by us. What we check is on the safety report.
Xiaohongshu (Little Red Book) MCP Server: common questions
- Is Xiaohongshu (Little Red Book) MCP Server safe?
- Mostly: it is graded B (75/100). Read the Xiaohongshu (Little Red Book) MCP Server safety report
- How do I install Xiaohongshu (Little Red Book) MCP Server?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Xiaohongshu (Little Red Book) MCP Server need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Xiaohongshu (Little Red Book) MCP Server maintained?
- The last commit was 243 days ago (2026-03-06). The latest release is v0.1.1.
- What can I use instead of Xiaohongshu (Little Red Book) MCP Server?
- Servers from other publishers that do the same job: LetsFG — Flights & Hotels MCP server, Tenjin MCP server and Open Library MCP server.
- How does Xiaohongshu (Little Red Book) MCP Server compare with other Web search MCP servers?
- safety score 75/100 (higher than 45% of 3,470 Web search servers); tools 8 (the typical Web search server has 5); tools that change things 13% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Xiaohongshu (Little Red Book) MCP Server
Same job from other publishers: the closest match first, then the best rated.
- LetsFG — Flights & HotelsSearch and book flights and hotels: hundreds of airlines, plus bookable hotel rates.not reviewedEstablishedA
TenjinSearch, read & publish paid essays. Pay-per-read in USDC on Base (x402); wallet-only, no account.not reviewedEstablishedB- Open LibrarySearch books and authors on the Internet Archive's Open Librarynot reviewedEstablishedA