Cover image
Try Now
2025-04-13

🚀MCP Server para acceder a RedNote (XiaoHongshu, XHS).

3 years

Works with Finder

1

Github Watches

17

Github Forks

144

Github Stars

RedNote MCP

English 简体中文 npm

小红书内容访问的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

功能特性

  • 认证管理(支持 Cookie 持久化)
  • 关键词搜索笔记
  • 命令行初始化工具
  • 通过 URL 访问笔记内容
  • 通过 URL 访问评论内容

使用说明

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 的通信方式

开发指南

环境要求

  • Node.js >= 16
  • npm >= 7

开发流程

# 安装依赖
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 文件

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

  • GeyserMC
  • Una biblioteca para la comunicación con un cliente/servidor de Minecraft.

    Reviews

    3 (1)
    Avatar
    user_o29EFdPT
    2025-04-17

    RedNote-MCP by iFurySt is an exceptional tool for managing and automating Minecraft plugins. Its user-friendly interface and robust feature set make it indispensable for server administrators. Highly recommended for anyone looking to streamline their Minecraft server management! More details can be found at the provided GitHub link.