红笔记 MCP 服务为小红书内容访问提供支持,借助该服务可通过关键词搜索笔记,还能使用其提供的 MCP 服务接口,并且能自动保存登录信息,同时兼容 Playwright 环境。



使用前请确保安装了 Playwright 环境,可通过以下命令进行安装:
npx playwright install
要自动为 Claude Desktop 安装 rednote-mcp,请访问 Smithery 并运行以下命令:
npx -y @smithery/cli install @JonaFly/rednote-mcp --client claude
# 全局安装
npm install -g rednote-mcp
# 初始化登录,会自动将 cookie 保存到 ~/.mcp/rednote/cookies.json 文件中
rednote-mcp init
# 克隆项目
git clone https://github.com/ifuryst/rednote-mcp.git
cd rednote-mcp
# 安装依赖
npm install
# 全局安装(可选,为了方便命令行调用)
npm install -g .
# 或者直接运行初始化登录
npm run dev -- init
安装完成后,运行以下命令初始化登录:
rednote-mcp init
这将启动浏览器窗口,指导您完成登录流程,并自动保存登录信息到 ~/.mcp/rednote/cookies.json
文件中。
要配置 MCP 服务,请按照以下步骤操作:
rednote-mcp serve
npm install
npm run dev
⚠️ 重要提示
- 首次使用时必须运行
init
命令完成初始化。- 请妥善保管 cookie 文件,避免泄露登录信息。
- 确保 Node.js 和 npm 环境已正确安装。
git checkout -b feature/AmazingFeature
)。git commit -m 'Add some AmazingFeature'
)。git push origin feature/AmazingFeature
)。本项目采用 MIT License,具体内容请参见 LICENSE 文件。