RedNote MCP logo

RedNote MCP

Community
MilesCool

RedNote MCP - Xiaohongshu Content Search Tool

PublisherMilesCool
Repositoryrednote-mcp
LanguageTypeScript
Forks
9
Stars
29
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    RedNote MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    29 stars and 9 forks from the linked repository.

RedNote MCP - Xiaohongshu Content Search Tool

Overview

RedNote MCP is a Model Context Protocol (MCP) server for searching and retrieving content from Xiaohongshu (Red Book) platform. It provides intelligent content extraction with automatic login management and parallel processing capabilities.

Features

  • Smart Search: Keyword-based content search on Xiaohongshu
  • Auto Login: Automatic cookie management and login handling
  • Parallel Processing: Efficient concurrent content retrieval
  • Rich Data Extraction:
    • Note titles and content
    • Author information and descriptions
    • Interaction metrics (likes, favorites, comments)
    • Images and hashtags
    • Direct note links

Technical Stack

  • Runtime: Node.js with TypeScript
  • Browser Automation: Playwright
  • Protocol: Model Context Protocol (MCP) SDK
  • Validation: Zod schema validation
  • Package Manager: pnpm

Data Structure

typescript
interface RedBookNote {
  title: string;        // Note title
  content: string;      // Note content
  author: string;       // Author name
  authorDesc?: string;  // Author description
  link: string;         // Note URL
  likes?: number;       // Like count
  collects?: number;    // Favorite count
  comments?: number;    // Comment count
  tags?: string[];      // Hashtag list
  images?: string[];    // Image URLs (WebP format)
}

Installation

Prerequisites

  • Node.js 18+
  • pnpm package manager

Setup

  1. Clone the repository:
bash
git clone <repository-url>
cd rednote-mcp
  1. Install dependencies:
bash
pnpm install
  1. Install Playwright browsers:
bash
pnpm exec playwright install
  1. Build the project:
bash
pnpm build

Usage

Running the MCP Server

bash
pnpm start

Development Mode

bash
pnpm dev

Testing

bash
pnpm test

MCP Client Configuration

Claude Desktop

Add the following configuration to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "rednote-mcp": {
      "command": "node",
      "args": [
        "C:\\ABSOLUTE\\PATH\\TO\\rednote-mcp\\build\\index.js"
      ]
    }
  }
}

For macOS/Linux users:

json
{
  "mcpServers": {
    "rednote-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/rednote-mcp/build/index.js"
      ]
    }
  }
}

Replace the path with your actual project directory.

Other MCP Clients

For other MCP-compatible clients, use the built server file:

bash
node build/index.js

Tool Usage

Once configured, you can use the search tool in your MCP client:

Search for "food recommendation" on Xiaohongshu

The tool will return structured data including titles, content, author information, and images.

Important Notes

  • First Run: Manual login to Xiaohongshu is required on first use
  • Performance: Initial searches may take 30-60 seconds due to browser startup and content loading
  • Rate Limiting: Concurrent requests are limited to 3 to avoid platform restrictions
  • Image Format: Images are provided in WebP format
  • Cookie Management: Login state is automatically saved and reused

Development

Project Structure

rednote-mcp/
├── src/
│   ├── index.ts          # MCP server entry point
│   └── xiaohongshu.ts    # Core scraping logic
├── cookies/              # Auto-generated cookie storage
├── results/              # Optional: saved search results
├── build/                # Compiled JavaScript output
├── package.json
├── tsconfig.json
└── README.md

Available Scripts

  • pnpm build - Build TypeScript to JavaScript
  • pnpm start - Run the built MCP server
  • pnpm dev - Development mode with auto-reload
  • pnpm test - Run tests (if available)
  • pnpm clean - Clean build directory

Troubleshooting

Common Issues

  1. Login Required: If you see login prompts, delete the cookies/ directory and restart
  2. Timeout Errors: Increase the MCP client timeout settings
  3. Browser Not Found: Run pnpm exec playwright install to install browsers
  4. Permission Errors: Ensure the project directory has proper read/write permissions

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This tool is for educational and research purposes. Please respect Xiaohongshu's terms of service and rate limits when using this tool.

Installation

TypingMind
{
  "mcpServers": {
    "rednote-mcp": {
      "command": "node",
      "args": [
        "path/to/your/build/index.js"
      ]
    }
  }
}

Use RedNote MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once RedNote MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add RedNote MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the RedNote MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "rednote-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "rednote-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the RedNote MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the RedNote MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use RedNote MCP to help me with this task?
RedNote MCP
Sure. I read it.
Here is what I found using RedNote MCP.

Frequently asked questions

What is the RedNote MCP MCP server used for?

RedNote MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use RedNote MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use RedNote MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use RedNote MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With RedNote MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect RedNote MCP MCP to TypingMind?

RedNote MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does RedNote MCP MCP provide in TypingMind?

RedNote MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use RedNote MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If RedNote MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇