by iFurySt
Provides authenticated access to XiaoHongShu (RedNote) notes, supporting keyword search, note retrieval by URL, and cookie persistence via a Model Context Protocol server.
RedNote MCP enables programmatic interaction with XiaoHongShu (RedNote) content. It handles authentication through persistent cookies and exposes operations such as searching notes by keywords and fetching note details via URLs.
rednote-mcp init
(or npm run dev -- init
). This opens a browser for manual login and saves cookies to ~/.mcp/rednote/cookies.json
.settings.json
(or any client that supports MCP) using the npx command and --stdio
argument.Q: Do I need a paid account to use the server? A: No, the server works with a regular XiaoHongShu account; you only need to complete the manual login once.
Q: How are cookies stored and are they safe?
A: Cookies are saved in ~/.mcp/rednote/cookies.json
. Treat this file as sensitive; avoid committing it to version control.
Q: Can I run the server without global installation?
A: Yes, use npx rednote-mcp --stdio
as shown in the configuration example.
Q: What Node.js version is required? A: Node.js >= 16 and npm >= 7.
Q: How do I update the stored cookies when they expire?
A: Re‑run rednote-mcp init
to refresh the authentication cookies.
小红书内容访问的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.
{ "mcpServers": { "RedNote MCP": { "command": "npx", "args": [ "rednote-mcp", "--stdio" ] } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by lharries
Enables searching, reading, and sending personal WhatsApp messages and media through a Model Context Protocol (MCP) server, storing all data locally in SQLite and exposing controlled tools for LLMs like Claude.
by korotovsky
Provides a powerful Model Context Protocol interface for Slack workspaces, enabling message retrieval, search, and optional posting via Stdio or SSE transports without requiring bot permissions.
by ZubeidHendricks
Provides a standardized interface for interacting with YouTube content, enabling video retrieval, transcript access, channel and playlist management, and advanced analytics through the Model Context Protocol.
by InditexTech
Provides Microsoft Teams integration via the Model Context Protocol, enabling reading, creating, replying to messages and mentioning members.
by chigwell
Provides a full‑featured Telegram integration for MCP‑compatible clients, enabling programmatic access to chats, messages, contacts, profile management, and group administration.
by EnesCinr
Interact with Twitter to post tweets and search tweets programmatically via an MCP server.
by chaindead
Manages Telegram dialogs, messages, drafts, and read statuses via the Model Context Protocol, enabling AI assistants to query and interact with Telegram accounts.
by carterlasalle
Securely interfaces with the macOS Messages database via MCP, enabling LLMs to query, analyze, filter, and send iMessage or SMS communications with built‑in phone number validation, attachment handling, and group chat support.
by v-3
Enables large language models to interact with Discord channels, allowing them to send and read messages through Discord's API while keeping user control and security.