Sponsored by Deepsite.site

RedNote MCP

Created By
Leo8 months ago
A friendly tool to help you access and interact with Xiaohongshu (RedNote) content through Model Context Protocol.
Content

RedNote MCP

English 简体中文 npm

A friendly tool to help you access and interact with Xiaohongshu (RedNote) content through Model Context Protocol.

https://github.com/user-attachments/assets/06b2c67f-d9ed-4a30-8f1d-9743f3edaa3a

Getting Started

Before getting started, make sure the playwright is installed:

npx playwright install

Install via NPM

The easiest way to get started is to install RedNote MCP globally:

# Install the package globally
npm install -g rednote-mcp

# Set up your account
rednote-mcp init   # This will save your login info to ~/.mcp/rednote/cookies.json

Build from Source

If you prefer to build from source:

# Get the code
git clone https://github.com/ifuryst/rednote-mcp.git
cd rednote-mcp

# Set up the project
npm install

# Optional: Install globally for easier CLI access
npm install -g .

# Or just run it directly for initial setup
npm run dev -- init

What's Included

Here's what you can do with RedNote MCP:

  • Log in and stay logged in (with automatic cookie management)
  • Search through notes using keywords
  • Use our handy command-line tools
  • View note content using URLs

Coming soon:

  • Access comment sections using URLs

How to Use

First Time Setup

Before you start, you'll need to log in. You have a few options:

rednote-mcp init
# If you installed from source:
npm run dev -- init
# Or simply use the login option in mcp-client

Here's what happens:

  1. Your browser will open automatically
  2. You'll see the Xiaohongshu login page
  3. Log in like you normally would
  4. Once you're in, we'll save your login info to ~/.mcp/rednote/cookies.json

Setting up in Cursor

To use RedNote MCP in Cursor, add this to your settings.json:

{
  "mcpServers": {
    "RedNote MCP": {
      "command": "rednote-mcp",
      "args": [
        "--stdio"
      ]
    }
  }
}

Or if you prefer using npx:

{
  "mcpServers": {
    "RedNote MCP": {
      "command": "npx",
      "args": [
        "rednote-mcp",
        "--stdio"
      ]
    }
  }
}

A few things to note:

  • You can use either the global command (rednote-mcp) or npx
  • Make sure to include --stdio - it's needed for Cursor communication

Development

What You'll Need

  • Node.js version 16 or newer
  • npm version 7 or newer

Development Commands

# Get everything installed
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run the test suite
npm test

Debugging with MCP Inspector

Need to debug? MCP Inspector is your friend:

npx @modelcontextprotocol/inspector npx rednote-mcp --stdio

This will:

  1. Start up the Inspector
  2. Run RedNote MCP through it
  3. Give you a nice interface to watch requests and responses
  4. Help you understand what's happening under the hood

Important Things to Know

  1. Don't forget to run init when you first start
  2. Keep your cookie file safe - it has your login info
  3. Your login might expire occasionally - just log in again when it does
  4. Make sure you have Node.js set up properly

Want to Contribute?

We'd love your help! Here's how:

  1. Fork this repo
  2. Create a branch for your feature (git checkout -b feature/CoolNewThing)
  3. Make your changes (git commit -m 'Added this cool new thing')
  4. Push it up (git push origin feature/CoolNewThing)
  5. Open a Pull Request

License

This project is under the MIT License - check out the LICENSE file for the details

Server Config

{
  "mcpServers": {
    "RedNote MCP": {
      "command": "npx",
      "args": [
        "rednote-mcp",
        "--stdio"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"