xhs-mcp
📕 xhs-mcp — Mach Xiaohongshu zu deinem MCP-Tool
Läuft lokal · Chrome-gesteuert · Sicher für Zweitkonten — Xiaohongshu ⇌ beliebiger MCP-Host (bevorzugt DSH)
Ein leichtgewichtiger MCP-Server, mit dem du Xiaohongshu über private Nachrichten/Tool-Aufrufe in Hosts wie DSH / Claude / Cursor bedienen kannst: Anmelden, Notizen suchen! (Veröffentlichungsfunktion reserviert, erfordert ausdrückliche Genehmigung des Besitzers)
✨ Funktionen
Fähigkeit | Beschreibung | Status |
🔐 Unabhängiger Anmeldestatus | Unabhängiges Chrome-Profil, einmal scannen, dauerhaft ohne Anmeldung | ✅ |
🔍 Notizen suchen | Stichwortsuche, liefert Titel + Link | ✅ |
🛡️ Anti-Erkennung | Echtes Chrome + echte UA + Entfernung des webdriver-Markers | ✅ |
👤 Zweitkonto-Isolation | Unabhängiges Profil, berührt das tägliche Konto des Besitzers nicht | ✅ |
📝 Beitrag veröffentlichen | Schnittstelle reserviert (erfordert ausdrückliche Genehmigung des Besitzers) | 🚧 |
🖥️ Mehrere Hosts | stdio MCP, funktioniert mit DSH/Claude/Cursor | ✅ |
Related MCP server: Xiaohongshu (RedBook) MCP Server
🚀 Schnellstart (bevorzugt DSH)
Voraussetzungen
Node.js ≥ 20
Google Chrome installiert (oder Pfad angeben)
1️⃣ Herunterladen
git clone https://github.com/HUliangwei/xhs-mcp.git
cd xhs-mcp
npm install # 安装 playwright-core2️⃣ Konfiguration
cp .env.example .env
# 按需改 XHS_PROFILE(多账号用不同名)3️⃣ Bei DSH registrieren
Kopiere dsh-bundle/ in deine Profil-Bundles und füge ./bundles/xhs-mcp zu dsh.profile.bundles in der package.json des Profils hinzu:
{ "dsh": { "profile": { "bundles": [ "./bundles/xhs-mcp" ] } } }DSH neu starten → die Tool-Gruppe xhs_* ist verfügbar.
4️⃣ Andere Hosts
{ "mcpServers": { "xhs": { "command": "node", "args": ["<路径>/xhs-mcp-server.mjs"] } } }🛠️ Tools
Tool | Beschreibung |
xhs_login | Öffnet echtes Chrome, Anmeldung per QR-Code (180s, persistent) |
xhs_search | Notizen suchen: { keyword, count } → Titel+Link |
xhs_status | Prüft den Anmeldestatus |
🛡️ Sicherheitsdesign
Nur private Nachrichten/Tool-Aufrufe: keine Gruppenchat-Übertragung
Nur für Zweitkonten: unabhängiges Profil, isolierter Anmeldestatus, berührt das Hauptkonto des Besitzers nicht
Schreibgeschützt bevorzugt: derzeit nur Lesen + Suchen; Veröffentlichen erfordert ausdrückliche Genehmigung des Besitzers, konform bei niedriger Frequenz
Läuft lokal: kein Remote-Server, Daten verlassen den Rechner nicht
Nicht in Git: profiles/ (Anmeldestatus), .env werden ignoriert
📜 Open Source
Apache-2.0 · GitHub
Gefällt es dir? ⭐ Star!!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables automated interaction with Xiaohongshu (Little Red Book) social media platform through browser automation. Supports login management, status checking, and publishing text content with images to Xiaohongshu accounts.33
- FlicenseNot gradedqualityDmaintenanceEnables automated interaction with Xiaohongshu (Little Red Book) platform including searching posts, retrieving content and comments, and posting AI-generated comments with persistent login support.444
- FlicenseNot gradedqualityDmaintenanceEnables automated searching and commenting on Xiaohongshu with AI-generated comments via MCP clients like Claude, supporting login persistence, note analysis, and four comment types.
- AlicenseAqualityDmaintenanceEnables AI assistants to search, browse, and publish notes on Xiaohongshu (Little Red Book) via MCP tools.8AGPL 3.0
Related MCP Connectors
搜索笔记、浏览首页推荐、查看笔记内容与评论,并发表你的评论。直接在工作流中与小红书内容互动,高效跟进话题。
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HUliangwei/xhs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server