xhs-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
📕 xhs-mcp — Turn Xiaohongshu into your MCP tool
Runs locally · Chrome-driven · Alt-account safe — Xiaohongshu ⇌ any MCP host (DSH first)
A lightweight MCP Server that lets you operate Xiaohongshu from hosts like DSH / Claude / Cursor via private chat / tool calls: login, search notes! (Posting capability reserved, requires explicit owner authorization)
✨ Features
Capability | Description | Status |
🔐 Independent login state | Independent Chrome profile, scan once for permanent login | ✅ |
🔍 Search notes | Keyword search, returns title + link | ✅ |
🛡️ Anti-detection | Real Chrome + real UA + removes webdriver flag | ✅ |
👤 Alt-account isolation | Independent profile, doesn't touch owner's daily account | ✅ |
📝 Posting | Interface reserved (requires explicit owner authorization) | 🚧 |
🖥️ Multi-host | stdio MCP, works with DSH/Claude/Cursor | ✅ |
Related MCP server: Xiaohongshu (RedBook) MCP Server
🚀 Quick Start (DSH first)
Prerequisites
Node.js ≥ 20
Google Chrome installed (or specify a path)
1️⃣ Download
git clone https://github.com/HUliangwei/xhs-mcp.git
cd xhs-mcp
npm install # 安装 playwright-core2️⃣ Configure
cp .env.example .env
# 按需改 XHS_PROFILE(多账号用不同名)3️⃣ Register with DSH
Copy dsh-bundle/ into your profile bundles, and add ./bundles/xhs-mcp to dsh.profile.bundles in the profile's package.json:
{ "dsh": { "profile": { "bundles": [ "./bundles/xhs-mcp" ] } } }Restart DSH → the xhs_* tool group becomes available.
4️⃣ Other hosts
{ "mcpServers": { "xhs": { "command": "node", "args": ["<路径>/xhs-mcp-server.mjs"] } } }🛠️ Tools
Tool | Description |
xhs_login | Opens real Chrome, scan-code login (180s, persistent) |
xhs_search | Search notes: { keyword, count } → title + link |
xhs_status | Login status check |
🛡️ Security Design
Private chat / tool calls only: no group chat broadcast
Alt-account only: independent profile, isolated login state, doesn't touch owner's main account
Read-only first: currently read-only + search; posting requires explicit owner authorization, low-frequency compliance
Runs locally: no remote server, data never leaves the machine
Not in git: profiles/ (login state), .env all ignored
📜 Open Source
Apache-2.0 · GitHub
Like it? ⭐ Star it!!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Recall MCP server for ChatGPT, Claude and any AI agent: save URL, create note, add tags to card, remove tags from card, delete card, export card as Markdown, search cards and list card connections in your own Recall account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Recall yourself; Cotlet does not store your password and you need no Recall API key. About the official Recall API: Yes, but it only reads. Recall has a REST API and an MCP server, both included in the Free plan, and both are read-only (checked 25 Oct 2026). Setup and FAQ: https://cotlet.dev/integrations/recall-api-mcp-server
LinkedIn MCP server for ChatGPT, Claude and any AI agent: create post, comment on post, send message, send connection invitation, search people, search companies, list connections and read conversations in your own LinkedIn account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to LinkedIn yourself; Cotlet does not store your password and you need no LinkedIn API key. About the official LinkedIn API: LinkedIn has an official API, but most of it needs an approved application (checked 6 Nov 2026). The open Share on LinkedIn permission lets an app post, comment and like on behalf of a member. Setup and FAQ: https://cotlet.dev/integrations/linkedin-api-mcp-server
Zotero MCP server for ChatGPT, Claude and any AI agent: add item by DOI, search library, add to collection, get annotations, create note and export citations in your own Zotero account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Zotero yourself; Cotlet does not store your password and you need no Zotero API key. About the official Zotero API: Zotero has a public Web API v3 with read and write access (checked 16 Oct 2026). You create a key in your zotero.org account settings and send it with each request. Setup and FAQ: https://cotlet.dev/integrations/zotero-api-mcp-server
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
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.460-
- 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