by algovate
Integrate with XiaoHongShu (Little Red Book) for seamless authentication, content discovery, publishing, and social inte
Automates interactions with XiaoHongShu (Little Red Book) social platform through browser automation, enabling content publishing, discovery, and user management without API keys.
XiaoHongShu (Little Red Book) is a community-built MCP server published by algovate that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate with XiaoHongShu (Little Red Book) for seamless authentication, content discovery, publishing, and social inte It is categorized under browser automation, developer tools.
You can install XiaoHongShu (Little Red Book) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
XiaoHongShu (Little Red Book) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Fetch and extract information from websites automatically
Example
Research competitor pricing, scrape product reviews, monitor news mentions
Automate 5-10 hours/week of manual web research
Track website changes, new content, price updates
Example
Monitor competitor blog for new posts, track stock availability, watch for pricing changes
Stay informed without manual checking, never miss important updates
Extract structured data from multiple websites
Example
Compile product listings from 10 e-commerce sites, aggregate job postings, collect real estate data
Build datasets 100x faster than manual copying
Share your MCP server with the developer community
We evaluated XiaoHongShu (Little Red Book) against two servers with overlapping tools; this profile had the clearer scope statement.
We wired XiaoHongShu (Little Red Book) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
XiaoHongShu (Little Red Book) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
XiaoHongShu (Little Red Book) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Useful MCP listing: XiaoHongShu (Little Red Book) is the kind of server we cite when onboarding engineers to host + tool permissions.
According to our notes, XiaoHongShu (Little Red Book) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired XiaoHongShu (Little Red Book) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
XiaoHongShu (Little Red Book) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: XiaoHongShu (Little Red Book) surfaces stars and publisher context so we could sanity-check maintenance before adopting.
We evaluated XiaoHongShu (Little Red Book) against two servers with overlapping tools; this profile had the clearer scope statement.
showing 1-10 of 33
简体中文 | English
xhs-mcp 提供统一的命令行入口 xhs-mcp,并内置 MCP 服务器子命令。用于小红书(xiaohongshu.com)的 Model Context Protocol(MCP)服务器与 CLI 工具,支持登录、发布、搜索、推荐等自动化能力(基于 Puppeteer)。
xhs-mcpnpx xhs-mcp <subcommand>npx xhs-mcp mcp [--mode stdio|http] [--port 3000]xhs_auth_login、xhs_auth_logout、xhs_auth_statusxhs_discover_feeds、xhs_search_note、xhs_get_note_detailxhs_comment_on_notexhs_get_user_notes、xhs_delete_note(用户笔记管理)xhs_publish_content(统一发布接口:type、title、content、media_paths、tags)
npx xhs-mcp mcp
# 调试日志
XHS_ENABLE_LOGGING=true npx xhs-mcp mcp
首次运行提示:如果未安装 Puppeteer 浏览器,先执行
npx xhs-mcp browser # 自动检查并安装 Chromium,显示可执行路径 # 或 npx puppeteer browsers install chrome输出示例:
{ "success": true, "message": "Chromium is ready", "data": { "installed": true, "executablePath": "/path/to/chromium" } }
验证 MCP 连接:
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | npx xhs-mcp mcp
# 启动 HTTP 服务器(默认端口 3000)
npx xhs-mcp mcp --mode http
# 指定端口
npx xhs-mcp mcp --mode http --port 8080
# 调试模式
XHS_ENABLE_LOGGING=true npx xhs-mcp mcp --mode http
HTTP 服务器支持:
/mcp/sse 和 /messages/health详细文档请参考:HTTP Transports
# 认证
npx xhs-mcp login --timeout 120
npx xhs-mcp logout
npx xhs-mcp status
# 浏览器依赖
npx xhs-mcp browser [--with-deps] # 检查并安装 Chromium,显示可执行路径
# 发现与检索
npx xhs-mcp feeds [-b /path/to/chromium]
npx xhs-mcp search -k 关键字 [-b /path/to/chromium]
# 当前用户笔记
npx xhs-mcp usernote list [-l 20] [--cursor <cursor>] [-b /path/to/chromium]
# 删除用户笔记
npx xhs-mcp usernote delete --note-id <id> [-b /path/to/chromium]
npx xhs-mcp usernote delete --last-published [-b /path/to/chromium]
# 互动
npx xhs-mcp comment --feed-id <id> --xsec-token <token> -n "Nice!" [-b /path/to/chromium]
# 发布
# 使用本地图片
npx xhs-mcp publish --type image --title 标题 --content 内容 -m path1.jpg,path2.png --tags a,b [-b /path/to/chromium]
# ⭐ 使用图片 URL(自动下载)
npx xhs-mcp publish --type image --title 标题 --content 内容 -m "https://example.com/img1.jpg,https://example.com/img2.png" --tags a,b
# 混合使用 URL 和本地路径
npx xhs-mcp publish --type image --title 标题 --content 内容 -m "https://example.com/img1.jpg,./local/img2.jpg" --tags a,b
# 发布视频
npx xhs-mcp publish --type video --title 视频标题 --content 视频描述 -m path/to/video.mp4 --tags a,b [-b /path/to/chromium]
# 查看可用工具
npx xhs-mcp tools [--detailed] [--json]
# 启动 MCP
npx xhs-mcp mcp [--mode stdio|http] [--port 3000]
.cursor/mcp.json:
{
"mcpServers": {
"xhs-mcp": {
"command": "npx",
"args": ["xhs-mcp", "mcp"],
"env": { "XHS_ENABLE_LOGGING": "true" }
}
}
}
.cursor/mcp.json:
{
"mcpServers": {
"xhs-mcp-http": {
"command": "npx",
"args": ["xhs-mcp", "mcp", "--mode", "http", "--port", "3000"],
"env": { "XHS_ENABLE_LOGGING": "true" }
}
}
}
或者使用 HTTP 客户端直接连接:
{
"mcpServers": {
"xhs-mcp-http": {
"url": "http://localhost:3000/mcp"
}
}
}
./temp_images/ 目录(自动缓存)npm testnpm run validate - 发布功能验证测试,生成 HTML 报告config/webpack.config.jsnpm run dev(直接运行 TypeScript CLI)npm run build(打包到 dist/xhs-mcp.cjs)基于 xiaohongshu-mcp 重构与扩展(TypeScript、Puppeteer、MCP 优化、日志清理、NPM 发布)。
Interact with services that don't offer APIs
Example
Check form submissions, validate website functionality, test user flows
Automate interactions with any website, even without API
Prerequisites
Time Estimate
20-40 minutes including configuration and testing
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server handles HTTP requests, HTML parsing, JavaScript rendering (if headless browser), and returns structured data to Claude.
Protocols
Compatibility
✓ Use when
Use for research automation, content monitoring, data aggregation from multiple sources, and when official APIs don't exist. Best for read-only information gathering.
✗ Avoid when
Avoid for sites with APIs (use API instead), sites that explicitly forbid scraping, when data is copyrighted, or for login-required content without proper authorization.