# xiaohongshu-mcp 常见报错排查：300011、登录失效、被封号与 search_feeds 超时

xiaohongshu-mcp 是在本地浏览器里用你自己的小红书账号操作，常见问题集中在四处：报 `300011 Account abnormal` 或反复掉登录（issue 877）、云服务器或高频 Agent 调用触发警告甚至封号（issue 668、680、777）、海外 IP 被 302 跳到 `rednote.com`（PR 906），以及 `search_feeds` 因 `MustWaitStable()` 等不到 DOM 静止而 60 秒超时（issue 836、874）。如果 AI 只需要读笔记和评论，可直接接入免登录、免浏览器的 XTikAPI 托管 MCP（`/v1/mcp`），一次 $0.02。

更新于 2026-11-25

## 四大高频故障与修法对照表

| 现象 / 报错 | GitHub issue / PR 里的原因 | 应对办法 |
| --- | --- | --- |
| 报 `300011 Account abnormal` / 每次要重扫码（issue 877） | 账号被判“疑似使用第三方工具或脚本”受限，或网页会话过期 | 先停跑并按需申诉，避免反复扫码登录 |
| 发文、自动回复甚至只搜一次就被警告/封号（issue 668、680、777） | 阿里云等云服务器 IP、Agent 定时循环频率固定、文案同质化；常见阶梯为冻结 → 警告 → 封 7 天 → 永久 | 作者建议换住宅 IP（别用云服务器）、手动降频、避免重复文案 |
| 海外运行一直显示未登录 / 跳 `www.rednote.com`（PR 906，2026-11） | 海外 IP 访问 `/explore`、笔记页和主页被 302 跳到 rednote | 切国内网络环境或适配 rednote 域名 |
| `search_feeds` 60 秒报 `context deadline exceeded`（`search.go:110`），但 `list_feeds` 正常（issue 836、874） | 懒加载信息流让 DOM 一直变化，`MustWaitStable()` 永远不返回；PR 839 未合并即关闭 | 自己改 `search.go` 改为等待搜索结果节点出现，并校验标题是否命中关键词 |

## 不冒封号风险的只读小红书 MCP 与接口方案

如果 ChatGPT、Claude、Claude Code、Cursor 或 Codex 只需要做**市场调研、读笔记和看评论**（不需要代发帖）：

1. 直接在 AI 客户端添加 XTikAPI 托管 MCP 地址 `https://xtikapi.com/v1/mcp`（OAuth 一键登录或 Bearer Key），不用起 Docker/浏览器，也不用你的小红书号。
2. 也可直接调 HTTP 接口：`xiaohongshu.notes.search`（`keyword`、`sort`、`note_type`、`cursor`）、`xiaohongshu.notes.detail`、`xiaohongshu.comments.list`、`xiaohongshu.comment_replies.list`。
3. 给 Key 配花费上限或带上 `X-Max-Price`，防止 Agent 死循环多花钱。

费用参考：Agent 每天查 20 个关键词各一页、30 天 = 600 次 × $0.02 = $12。

## 为什么用 XTikAPI

- XTikAPI 有 16 个小红书接口，一次 $0.02 起，失败不收费。
- 更省 Token：按 2026-11-18 实测的 11 个小红书接口真实返回，平台原始 JSON 约 90k token，经 XTikAPI 归一化后约 17k token（省 80.9%），MCP 输出约 18k token（省 79.7%）。
- 先看再用：229 个接口里有 192 个在接口页上放了一份录制的真实返回（小红书 13/16），字段一目了然。
- 预付余额，不订阅：余额不过期，没用完的充值 14 天内可退。
- 免费试用：验证过邮箱送 $0.50，不用绑卡。

## 用到的接口

- [小红书笔记搜索](https://xtikapi.com/zh/apis/xiaohongshu/notes/search) ($0.02 / 次): 按搜索词取一页小红书笔记，可按综合、最新、最多点赞排，可只要视频或图文、限定发布时间。
- [小红书笔记详情](https://xtikapi.com/zh/apis/xiaohongshu/notes/detail) ($0.02 / 次): 按笔记编号或分享链接取一篇笔记：标题、正文、作者、互动数、图片。
- [小红书笔记评论](https://xtikapi.com/zh/apis/xiaohongshu/comments/list) ($0.02 / 次): 按笔记编号或分享链接取一页一级评论：正文、评论者、点赞数、回复数。
- [小红书评论回复](https://xtikapi.com/zh/apis/xiaohongshu/comment_replies/list) ($0.02 / 次): 按笔记和评论编号取一条评论下的回复，可翻页。

## 小红书的更多问题

- [小红书 API](https://xtikapi.com/zh/apis/xiaohongshu)
- [MediaCrawler 常见报错排查（Verifytype、抖音 page 1 empty、小红书 406、快手）与托管替代](https://xtikapi.com/zh/answers/mediacrawler-errors-and-alternatives)
- [小红书提示检测到 AI 操作或自动化行为，还能怎么采集数据](https://xtikapi.com/zh/answers/xiaohongshu-ai-operation-detected)
- [Spider_XHS 部署到服务器后 Cookie 失效怎么办](https://xtikapi.com/zh/answers/spider-xhs-cookie-invalid-on-server)
- [小红书笔记评论怎么导出 Excel](https://xtikapi.com/zh/answers/xiaohongshu-comments-export-excel)
- [res-downloader 能嗅探视频号，抖音小红书却不行](https://xtikapi.com/zh/answers/res-downloader-douyin-xiaohongshu-not-sniffed)

## 怎么做

- [小红书笔记评论怎么批量获取](https://xtikapi.com/zh/guides/xiaohongshu-note-comments)

## 出处

本页写到的别家的情况，都来自对方自己的页面和文档，读取于 2026-11-25。

- [xiaohongshu-mcp issue 877：搜索受限与 300011 账号异常](https://github.com/xpzouying/xiaohongshu-mcp/issues/877)
- [xiaohongshu-mcp issue 668：自动化封号](https://github.com/xpzouying/xiaohongshu-mcp/issues/668)
- [xiaohongshu-mcp issue 680 与 777：云服务器违规与轻度使用警告](https://github.com/xpzouying/xiaohongshu-mcp/issues/680)
- [xiaohongshu-mcp issue 836 与 874：search_feeds 60 秒超时](https://github.com/xpzouying/xiaohongshu-mcp/issues/836)
- [xiaohongshu-mcp PR 906：海外 IP 302 跳转 rednote](https://github.com/xpzouying/xiaohongshu-mcp/pull/906)

## 常见问题

### `search_feeds` 超时是因为小红书掉登录了吗？

多半不是：issue 836 和 874 里 `check_login_status` 和 `list_feeds` 都正常，只有 `search_feeds` 卡死在 `MustWaitStable()`。

### 先发成“仅自己可见”能躲过封号检测吗？

不行，issue 680 里有人就是这么在云服务器上发的，照样被封。

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/zh/answers/xiaohongshu-mcp-errors-and-fixes) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
