Supports installation directly from GitHub source code repository.
Runs on Node.js environment with version requirements specified for compatibility.
Provides installation via NPM package registry and supports global command line installation.
Uses Shields.io for displaying version, language, and service badges in documentation.
RedNote MCP
小红书内容访问的MCP服务
https://github.com/user-attachments/assets/06b2c67f-d9ed-4a30-8f1d-9743f3edaa3a
快速开始
开始前确保安装了 playwright 环境:
Installing via Smithery
To install rednote-mcp for Claude Desktop automatically via Smithery:
NPM 全局安装
从源码安装
功能特性
- 认证管理(支持 Cookie 持久化)
- 关键词搜索笔记
- 命令行初始化工具
- 通过 URL 访问笔记内容
- 通过 URL 访问评论内容
使用说明
1. 初始化登录
首次使用需要先进行登录初始化:
执行此命令后:
- 会自动打开浏览器窗口
- 跳转到小红书登录页面
- 请手动完成登录操作
- 登录成功后会自动保存 Cookie 到
~/.mcp/rednote/cookies.json
文件
2. 在 Cursor 中配置 MCP Server
在 Cursor 的 settings.json 中添加以下配置:
或者使用 npx 方式:
配置说明:
command
: 可以是全局安装后的rednote-mcp
命令,或使用npx
直接运行args
: 必须包含--stdio
参数以支持 Cursor 的通信方式
开发指南
环境要求
- Node.js >= 16
- npm >= 7
开发流程
使用 MCP Inspector 进行调试
MCP Inspector 是一个用于调试 MCP 服务器的工具,可以帮助开发者检查和验证 MCP 服务器的行为。使用以下命令启动:
这个命令会:
- 启动 MCP Inspector 工具
- 通过 Inspector 运行 rednote-mcp 服务
- 提供一个交互式界面来检查请求和响应
- 帮助调试和验证 MCP 协议的实现
注意事项
- 首次使用必须执行
init
命令进行登录 - Cookie 文件包含敏感信息,避免泄露
- 建议定期更新 Cookie,避免失效
- 确保已正确安装 Node.js 环境
贡献指南
- Fork 本仓库
- 创建你的特性分支 (
git checkout -b feature/AmazingFeature
) - 提交你的改动 (
git commit -m 'Add some AmazingFeature'
) - 推送到分支 (
git push origin feature/AmazingFeature
) - 开启一个 Pull Request
许可证
MIT License - 详见 LICENSE 文件
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A server that enables access to Xiaohongshu (Little Red Book) content, allowing users to search for notes and retrieve content via URLs with authentication management and cookie persistence.
Related MCP Servers
- -securityFlicense-qualityA microservice that wraps Xiaohongshu (Little Red Book) API into a RESTful API server, enabling users to perform various operations on the platform such as retrieving notes, searching users and content, and accessing user information.Last updated -6Python
- AsecurityAlicenseAqualityEnables users to search and retrieve content from Xiaohongshu (Red Book) platform with smart search capabilities and rich data extraction including note content, author information, and images.Last updated -1872TypeScriptMIT License
- -securityFlicense-qualityA server that allows interfacing with the Chinese social media platform Xiaohongshu through HTTP requests, enabling searching notes, retrieving note content and comments, and posting comments.Last updated -1Python
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that enables AI assistants to search, retrieve, and analyze content from Xiaohongshu (Little Red Book), providing access to notes, user information, and trending topics.Last updated -6TypeScript