Validate & Harden Your Xiaohongshu MCP Server Config
Build a clean mcp.json preset from scratch or paste an existing community MCP configuration below. Our local validator catches hardcoded session cookies, exposed 0.0.0.0 SSE endpoints, unpinned @latest packages, missing request rate ceilings, and dangerous unattended-publishing tool scopes — then exports a remediated config ready for Cursor, Claude Desktop, or Windsurf.
Get pre-hardened MCP presets + ready-to-drop Xiaohongshu SKILL.md packs
Skip manual hardening across every project. Download our audited ZIP + JSON bundle with loopback-locked stdio MCP configs, RPM caps, and vetted vertical SKILL.md workflows — inspect every included file on Pricing.
Five MCP security failures we catch automatically
As noted in our Login, MCP, Mac and CLI category report, community MCP wrappers around Xiaohongshu / RedNote come from independent repositories rather than an official platform SDK. Auditing public configs reveals five recurring operational mistakes:
- Plaintext session cookies inside mcp.json: Committing
XHS_COOKIEorweb_sessionstrings directly into workspace config files exposes live account sessions to repository backups and chat logs. Our builder rewrites inline secrets to${ENV_VAR}placeholders. - Non-loopback SSE listeners: Binding an MCP server to
0.0.0.0or plain HTTP on a shared network allows lateral tool invocation. We restrict endpoints to127.0.0.1or localstdiopipes. - Unpinned @latest npx execution: Running
npx -y some-package@latestpulls unreviewed upstream code on every agent launch. Pinning exact semver versions stops silent supply-chain drift. - Unbounded request bursts: Scraping or drafting without a request ceiling triggers rate blocks. Every hardened config injects an explicit 1–30 RPM cap.
- Unattended publish and bulk-reply scopes: Tools such as
auto_publish,bulk_comment, andmass_dmare stripped from the allowlist andREDSKILL_AUTO_PUBLISHis locked tofalse.
Pair your MCP config with a scoped SKILL.md
An hardened MCP server only solves transport and permission boundaries; your agent still needs clear editorial instructions so it produces grounded Xiaohongshu notes rather than generic filler. Pair your exported mcp-config.hardened.json with a custom workflow from our SKILL.md Generator and test note drafts in the Operator Workbench.