xhs-mcp

MCP server for Xiaohongshu note search, content and comments

Local

Install

See the repository for setup

What it does

This is a Model Context Protocol server that exposes a handful of Xiaohongshu (Red) operations to MCP-capable clients. It covers checking whether the stored cookie is still valid, fetching the home recommendation feed, searching notes by keyword, retrieving the content of a single note, listing a note's comments, and posting a comment to a note. Note content and comments are requested using full URLs that include the xsec_token parameter.

It is aimed at developers or analysts who want to pull public Xiaohongshu data into an AI assistant or agent workflow rather than browsing manually. Authentication is by cookie: you sign in on the Xiaohongshu website, copy the cookie value, and pass it in the XHS_COOKIE environment variable to the server, which runs as a stdio process. Installation is via uvx from the jobson-xhs-mcp package, or from source with uv and Python 3.12 or later. The README documents configuration for Claude Desktop.

Limitations: the cookie expires and must be refreshed periodically, and the project states it is for study and exchange only, not for commercial use.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
525
Last push
Oct 29, 2026
License
—
Archived
No

FAQ

Does xhs-mcp run locally or remotely?
It runs locally.
Is xhs-mcp an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/xhs-mcp"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options