# SocialDataX 小红书 Xiaohongshu XHS RedNote MCP MCP server

XHS search/details, PGY, comments/replies, users/ID resolution/posts, transcript

## Facts

- Endpoint: https://mcp.socialdatax.com/xhs/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: B (88/100, scanned 2026-10-07) · report https://gateturbo.com/report/9cbc1a13-41d3-4036-8589-7546e224c419
- Tools: 36
- Category: Lifestyle · source: registry
- Last probed: 2026-09-03 · first listed: 2026-08-21
- Directory page: https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp · this document: https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp.md · JSON: https://gateturbo.com/api/directory/servers/socialdatax-xiaohongshu-xhs-rednote-mcp

## Tools (36)

- `xhs_get_note_detail_by_note_url`: 根据笔记链接、短链接或分享文案获取单篇小红书笔记详情。 返回的 note_url 在任何使用场景都必须原样保留完整 URL，包括 xsec_token 等 query 参数；例如最终回答、展示、引用、存储、输出或传递；不得用 note_id 重新拼接链接；note_url 为 n
- `xhs_get_note_detail_by_note_id`: 根据 note_id 获取单篇小红书笔记详情。 返回的 note_url 非 null 时，在任何使用场景都必须原样保留完整 URL，包括 xsec_token 等 query 参数；例如最终回答、展示、引用、存储、输出或传递；不得用 note_id 重新拼接链接；note_ur
- `xhs_search_notes`: 搜索小红书 / Xiaohongshu / XHS / RedNote 相关笔记。用户需要按搜索词查找笔记时使用；已有笔记链接或 note_id 且需要单篇笔记详情时使用对应的详情工具；需要评论、回复或口播转文字时使用相应的 URL/ID 工具；支持 page_token 翻页。
- `xhs_search_products`: 搜索小红书商品。用户需要按搜索词查找商品时使用；已有完整 sku_id（包括用户直接提供）时使用商品详情或商品评价工具；支持 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回，不得截断、缩写、掩码或用省略
- `xhs_get_product_detail`: 根据小红书商品 sku_id 获取商品详情；已有该 ID 时直接使用，否则可从 xhs_search_products 获取；不支持商品链接、spu_id 或搜索词。
- `xhs_pgy_get_note_detail_by_note_id`: 根据 note_id 获取小红书蒲公英单篇笔记商业增强详情，包括正文、图片或视频摘要、作者、曝光量、阅读量、互动量和图文/视频报价。 这是蒲公英商业口径数据，不等同普通公开笔记详情；成功调用扣减 20 积分，失败不扣费。
- `xhs_pgy_get_note_detail_by_note_url`: 根据笔记链接、短链接或分享文案获取小红书蒲公英单篇笔记商业增强详情。 这是蒲公英商业口径数据，不等同普通公开笔记详情；成功调用扣减 20 积分，失败不扣费。
- `xhs_get_product_reviews`: 根据小红书商品 sku_id 获取商品评价；已有该 ID 时直接使用，否则可从 xhs_search_products 获取；支持 sort_type、has_image 和 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 pag
- `xhs_get_product_review_replies`: 根据一级商品评价 review_id 获取其下回复；已有该 ID 时直接使用，否则可从 xhs_get_product_reviews 获取；支持 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回，不得截
- `xhs_get_search_hot_list`: 获取小红书搜索热榜。
- `xhs_search_suggestions`: 根据搜索词获取小红书候选搜索建议，用于补全搜索词；需要实际搜索笔记或商品时，分别使用 xhs_search_notes 或 xhs_search_products。
- `xhs_submit_video_speech_text_by_note_url`: 根据小红书视频笔记链接、短链接或分享文案提交口播转文字任务；提交后最多等待 240 秒，未完成时返回 job_id 和下一步查询动作。
- `xhs_submit_video_speech_text_by_note_id`: 根据小红书 note_id 提交视频笔记口播转文字任务；提交后最多等待 240 秒，未完成时返回 job_id 和下一步查询动作。
- `xhs_get_video_speech_text_job`: 根据用户提供的有效 job_id，或提交工具返回的 job_id 查询任务状态；用于继续未完成任务，每次最多等待 240 秒，不触发重处理，也不要重复提交任务。
- `xhs_get_note_comments_by_note_id`: 根据 note_id 获取单篇小红书笔记的一级评论，支持 sort_type 评论排序和 page_token 翻页。
- `xhs_get_note_comments_by_note_url`: 根据笔记链接、短链接或分享文案获取单篇小红书笔记的一级评论，支持 sort_type 评论排序和 page_token 翻页。
- `xhs_get_note_sub_comments_by_comment_id`: 根据 note_id 和一级评论 comment_id 获取二级评论；用户已提供完整合法的 ID 组合时直接使用；已有 note_id 或笔记链接但缺少必需 ID 时，调用对应一级评论工具补全；缺少笔记定位信息时向用户索取；支持 page_token 翻页。
- `xhs_get_user_info_by_user_id`: 根据 user_id 获取单个小红书用户信息。
- `xhs_get_user_info_by_profile_url`: 根据主页链接、短链接或分享文案获取单个小红书用户信息。
- `xhs_get_user_posted_notes_by_user_id`: 根据 user_id 获取用户已发布笔记列表，支持 page_token 翻页。
- … 16 more after connecting

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect SocialDataX 小红书 Xiaohongshu XHS RedNote MCP to your gate (https://gateturbo.com/login?next=/discovery?connect=socialdatax-xiaohongshu-xhs-rednote-mcp).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/claude · Claude Desktop → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/claude-desktop · ChatGPT → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/chatgpt · Codex → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/codex · Cursor → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/cursor · Windsurf → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/windsurf · VS Code → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/vscode · Gemini CLI → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/gemini-cli · OpenClaw → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/openclaw · n8n → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/n8n · A script or server → https://gateturbo.com/mcp/socialdatax-xiaohongshu-xhs-rednote-mcp/script

### Direct: Claude Code

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http socialdatax-xiaohongshu-xhs-rednote-mcp https://mcp.socialdatax.com/xhs/mcp
```

### Direct: Cursor

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "socialdatax-xiaohongshu-xhs-rednote-mcp": {
      "url": "https://mcp.socialdatax.com/xhs/mcp"
    }
  }
}
```

### Direct: VS Code

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "socialdatax-xiaohongshu-xhs-rednote-mcp": {
      "type": "http",
      "url": "https://mcp.socialdatax.com/xhs/mcp"
    }
  }
}
```

### Direct: Codex

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.socialdatax_xiaohongshu_xhs_rednote_mcp]
url = "https://mcp.socialdatax.com/xhs/mcp"
```

### Direct: Claude

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "SocialDataX 小红书 Xiaohongshu XHS RedNote MCP" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://mcp.socialdatax.com/xhs/mcp
```

### Direct: ChatGPT

Add SocialDataX 小红书 Xiaohongshu XHS RedNote MCP as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "SocialDataX 小红书 Xiaohongshu XHS RedNote MCP" with the URL below.
3. Set authentication to none.

```
https://mcp.socialdatax.com/xhs/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
