by iFurySt
RedNote-MCP is an MCP server designed to access content from RedNote (XiaoHongShu, xhs), a popular Chinese social media and e-commerce platform. It enables programmatic interaction with RedNote for data retrieval and automation.
RedNote-MCP is a Micro-Content Protocol (MCP) server specifically developed to interact with RedNote (XiaoHongShu), a prominent Chinese social media and e-commerce platform. It acts as an intermediary, allowing users and applications to programmatically access and retrieve content from RedNote.
RedNote-MCP can be used by installing it globally via npm or by cloning the source code. Before starting, ensure you have playwright
installed. Initial login is required to save cookies for persistent sessions. The server can then be configured within applications like Cursor as an MCP server.
Quick Start:
npx playwright install
npm install -g rednote-mcp
rednote-mcp init
git clone https://github.com/ifuryst/rednote-mcp.git
cd rednote-mcp
npm install
npm install -g .
npm run dev -- init
Initialization and Login:
Run rednote-mcp init
(or npm run dev -- init
from source). This will open a browser for manual login to XiaoHongShu. Upon successful login, cookies will be saved to ~/.mcp/rednote/cookies.json
for future use.
Configuring in Cursor:
Add the following to your Cursor settings.json
:
{
"mcpServers": {
"RedNote MCP": {
"command": "rednote-mcp",
"args": [
"--stdio"
]
}
}
}
init
command and successful login, cookies are saved for persistent sessions.~/.mcp/rednote/cookies.json
.npx @modelcontextprotocol/inspector npx rednote-mcp --stdio
to inspect requests and responses.小红书内容访问的MCP服务
https://github.com/user-attachments/assets/06b2c67f-d9ed-4a30-8f1d-9743f3edaa3a
开始前确保安装了 playwright 环境:
npx playwright install
# 全局安装
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
# 或者直接从源码run
npm run dev -- init
# 或者mcp-client里选择login
执行此命令后:
~/.mcp/rednote/cookies.json
文件在 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 服务器的工具,可以帮助开发者检查和验证 MCP 服务器的行为。使用以下命令启动:
npx @modelcontextprotocol/inspector npx rednote-mcp --stdio
这个命令会:
init
命令进行登录git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)MIT License - 详见 LICENSE 文件
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by firecrawl
Adds powerful web scraping, crawling, and search capabilities to LLM clients through a Model Context Protocol (MCP) server.
by mendableai
Firecrawl MCP Server is an official Model Context Protocol (MCP) server implementation that integrates with Firecrawl to provide powerful web scraping capabilities to Large Language Models (LLMs). It acts as a bridge between LLMs and the web, allowing them to access and process web content for various tasks.
by tavily-ai
Provides real-time web search, intelligent data extraction, site mapping, and crawling capabilities via MCP tools.
by zcaceres
fetch-mcp is a flexible HTTP fetching server designed to retrieve web content in various formats. It acts as a server that can fetch HTML, JSON, Markdown, or plaintext from specified URLs, enabling on-demand fetching and transformation of web content.
by apify
An MCP server for Apify Actors, allowing AI assistants to use any of the 3,000+ pre-built cloud tools for web scraping and automation.
by openbnb-org
The mcp-server-airbnb is an MCP (Multi-Cloud Platform) server designed to interact with Airbnb. It provides tools for searching Airbnb listings and retrieving detailed information about specific listings.
by cnych
A free SEO tool MCP (Model Control Protocol) service based on Ahrefs data, offering features like backlink analysis, keyword research, and traffic estimation.
by tinyfish-io
AgentQL MCP Server is a Model Context Protocol (MCP) server that integrates AgentQL's data extraction capabilities, enabling AI agents to get structured data from the unstructured web.
by oxylabs
Bridge AI models and the internet, delivering clean, structured data from any website through a single API.