Provides integration with the Xiaohongshu (Little Red Book) platform, enabling search for notes/content, retrieval of post details, access to user information, trending topics analysis, and content analysis capabilities like sentiment analysis and keyword extraction.
RedNote MCP Server
一个基于 Model Context Protocol (MCP) 的小红书平台集成服务器,为 AI 助手提供访问小红书内容和功能的能力。
功能特性
- 🔍 内容搜索: 支持关键词搜索小红书笔记
- 📝 笔记获取: 获取笔记详情和用户内容
- 👥 用户信息: 查询用户资料和统计数据
- 📈 趋势分析: 获取热门话题和内容趋势
- 🤖 内容分析: 提供情感分析、关键词提取等功能
快速开始
安装依赖
构建项目
启动服务器
开发模式
可用工具
搜索工具
rednote_search_notes
搜索小红书笔记
参数:
keyword
(required): 搜索关键词type
(optional): 内容类型 (note
,video
,all
)sort
(optional): 排序方式 (latest
,popular
,relevant
)limit
(optional): 返回数量限制 (1-100)
示例:
内容工具
rednote_get_note
获取笔记详情
参数:
note_id
(required): 笔记IDinclude_comments
(optional): 是否包含评论
rednote_get_user_notes
获取用户笔记
参数:
user_id
(required): 用户IDlimit
(optional): 数量限制cursor
(optional): 分页游标
rednote_get_trending_topics
获取热门话题
参数:
category
(optional): 分类limit
(optional): 数量限制
用户工具
rednote_get_user_info
获取用户信息
参数:
user_id
(required): 用户ID或用户名
分析工具
rednote_analyze_content
分析内容
参数:
content
(required): 内容文本analysis_type
(optional): 分析类型 (sentiment
,keywords
,category
,all
)
配置
配置文件位于 config/
目录下,支持不同环境的配置:
default.json
: 默认配置production.json
: 生产环境配置development.json
: 开发环境配置
主要配置项
MCP 集成
在 Claude Desktop 中使用
- 构建项目:
- 在 Claude Desktop 配置文件中添加:
使用其他 MCP 客户端
服务器实现了标准的 MCP 协议,可以与任何兼容的 MCP 客户端集成。
开发
项目结构
代码质量
注意事项
- API 限制: 当前实现使用模拟数据,实际使用时需要集成真实的小红书 API
- 速率限制: 请注意 API 调用频率限制,避免被平台限制
- 数据合规: 确保数据获取和使用符合相关法律法规
- 缓存策略: 合理使用缓存以提高性能和减少 API 调用
许可证
MIT License
贡献
欢迎提交 Issues 和 Pull Requests!
Tools
A 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.
Related MCP Servers
- AsecurityFlicenseAqualityModel Context Protocol (MCP) server that integrates Redash with AI assistants like Claude, allowing them to query data, manage visualizations, and interact with dashboards through natural language.Last updated -104632JavaScript
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.Last updated -129714JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for the Open Library API that enables AI assistants to search for book information.Last updated -1721TypeScriptMIT License
- -securityAlicense-qualityModel Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.Last updated -272TypeScriptMIT License