About
RedNote MCP Server enables AI assistants to access and retrieve content from Xiaohongshu (Little Red Book/RedNote), a popular Chinese social media platform focused on lifestyle, shopping, and product reviews. It provides authenticated access to user-generated notes and posts through browser automation. Key capabilities include: - Secure authentication management with persistent cookie storage for maintaining login sessions - Keyword-based search to discover relevant notes and content on the platform - Direct URL-based retrieval of note content including text, images, and post details - Command-line initialization tool for streamlined browser-based login setup - Support for accessing user-generated lifestyle content, product reviews, and shopping recommendations
README
RedNote MCP
[](docs/README.en.md) [](README.md) [](https://www.npmjs.com/package/rednote-mcp)
小红书内容访问的MCP服务
https://github.com/user-attachments/assets/06b2c67f-d9ed-4a30-8f1d-9743f3edaa3a
快速开始
开始前确保安装了 playwright 环境:
npx playwright install
NPM 全局安装
# 全局安装
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
功能特性
使用说明
1. 初始化登录
首次使用需要先进行登录初始化:
rednote-mcp init
或者直接从源码run
npm run dev -- init
或者mcp-client里选择login
执行此命令后:
1. 会自动打开浏览器窗口
2. 跳转到小红书登录页面
3. 请手动完成登录操作
4. 登录成功后会自动保存 Cookie 到 ~/.mcp/rednote/cookies.json 文件
2. 在 Cursor 中配置 MCP Server
在 Cursor 的 settings.json 中添加以下配置:
{
"mcpServers": {
"RedNote MCP": {
"command": "rednote-mcp",
"args": [
"--stdio"
]
}
}
}
或者使用 npx 方式:
{
"mcpServers": {
"RedNote MCP": {
"command": "npx",
"args": [
"rednote-mcp",
"--stdio"
]
}
}
}
配置说明:
command: 可以是全局安装后的 rednote-mcp 命令,或使用 npx 直接运行args: 必须包含 --stdio 参数以支持 Cursor 的通信方式开发指南
环境要求
开发流程
# 安装依赖
npm install构建项目
npm run build开发模式运行
npm run dev运行测试
npm test
使用 MCP Inspector 进行调试
MCP Inspector 是一个用于调试 MCP 服务器的工具,可以帮助开发者检查和验证 MCP 服务器的行为。使用以下命令启动:
npx @modelcontextprotocol/inspector npx rednote-mcp --stdio
这个命令会:
1. 启动 MCP Inspector 工具 2. 通过 Inspector 运行 rednote-mcp 服务 3. 提供一个交互式界面来检查请求和响应 4. 帮助调试和验证 MCP 协议的实现
注意事项
1. 首次使用必须执行 init 命令进行登录
2. Cookie 文件包含敏感信息,避免泄露
3. 建议定期更新 Cookie,避免失效
4. 确保已正确安装 Node.js 环境
贡献指南
1. Fork 本仓库
2. 创建你的特性分支 (git checkout -b feature/AmazingFeature)
3. 提交你的改动 (git commit -m 'Add some AmazingFeature')
4. 推送到分支 (git push origin feature/AmazingFeature)
5. 开启一个 Pull Request
许可证
MIT License - 详见 LICENSE 文件
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support