Offers API documentation through Swagger UI, allowing developers to explore and test available endpoints directly from the browser.
Provides RESTful API access to Xiaohongshu platform features, including retrieving notes by ID, searching for notes and users, accessing user information, fetching user notes, and obtaining recommended content feeds by category.
Xiaohongshu API MCP Server | 小红书 API 微服务
这是一个将小红书 API 封装成 RESTful API 服务器的微服务。可以使用 Docker 进行部署。
功能特点
- RESTful API for Xiaohongshu operations | 小红书操作的 RESTful API
- Multiple client support | 支持多客户端
- Docker containerization | Docker 容器化
- Easy to deploy and scale | 易于部署和扩展
API 端点
服务器提供以下端点:
/clients
- 创建和管理小红书客户端实例/clients/{client_id}/note
- 通过 ID 获取笔记/clients/{client_id}/note/html
- 从 HTML 通过 ID 获取笔记/clients/{client_id}/search/notes
- 通过关键词搜索笔记/clients/{client_id}/search/users
- 通过关键词搜索用户/clients/{client_id}/user/info
- 通过 ID 获取用户信息/clients/{client_id}/user/notes
- 获取用户笔记/clients/{client_id}/feed/categories
- 获取推荐流分类/clients/{client_id}/feed/{feed_type}
- 通过类型获取推荐流/health
- 健康检查端点
项目结构
快速开始
前提条件
- Docker
- Docker Compose
安装和运行
- 构建并启动 Docker 容器:
服务将在 http://localhost:8000
运行。
- 通过Python直接运行:
API 文档
服务器运行后,您可以在以下位置访问 API 文档:
- Swagger UI:
http://localhost:8000/docs
- ReDoc:
http://localhost:8000/redoc
使用示例
- 创建客户端:
- 通过 ID 获取笔记:
许可证
本项目仅用于教育目的。使用风险自负。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A 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.
Related MCP Servers
- -securityAlicense-qualityA 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.Last updated -874TypeScriptMIT License
- -securityFlicense-qualityA Playwright-based tool that automates Xiaohongshu (Little Red Book) interactions, enabling users to login, search for notes, view content, and post intelligent comments through natural language commands.Last updated -17Python
- 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