MR

milescool/rednote-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

30 stars 8 forks 品質 63 トレンド 25MIT

RedNote MCP - Xiaohongshu コンテンツ検索ツール

概要

RedNote MCP は、Xiaohongshu (Red Book) プラットフォームからコンテンツを検索および取得するためのモデルコンテキストプロトコル(MCP)サーバーです。 自動ログイン管理と並列処理機能を備えたインテリジェントなコンテンツ抽出を実現します。 - : 西尾本州のキーワードベースのコンテンツ検索 - : 自動クッキー管理とログイン処理 - : 効率的な同時コンテンツ検索 - : - タイトルとコンテンツ - 著者情報と説明 - 相互作用メトリック(いいね、お気に入り、コメント) - 画像とハッシュタグ - 直接メモリンク - : Node.js with TypeScript - : Playwright - : モデルコンテキストプロトコル(MCP)SDK - : Zodスキーマ検証 - : pnpm Claude Desktop config ファイルに次の設定を追加します。 : %APPDATA%\Claude\claude desktop config.json : ~/Library/Application Support/Claude/claude desktop config.json 実際のプロジェクトディレクトリにパスを置換します.

概要(AI 翻訳)

概要

RedNote MCP は、Xiaohongshu (Red Book) プラットフォームからコンテンツを検索および取得するためのモデルコンテキストプロトコル(MCP)サーバーです。 自動ログイン管理と並列処理機能を備えたインテリジェントなコンテンツ抽出を実現します。

##特徴

-スマート検索:西尾本州のキーワードベースのコンテンツ検索

  • 自動ログイン:自動クッキー管理とログイン処理
  • 並列処理:効率的な同時コンテンツ検索 -リッチデータ抽出:
  • タイトルとコンテンツに注意
  • 著者情報と説明
  • インタラクションメトリック(いいね、お気に入り、コメント)
  • 画像とハッシュタグ
  • 直接注記リンク

技術的なスタック

-Runtime: Node.js と TypeScript

  • ブラウザのオートメーション: Playwright -Protocol:モデルコンテキストプロトコル(MCP)SDK
  • 評価: Zodスキーマ検証
  • パッケージマネージャ:pnpm

データ構造

インストール

前提条件

  • Node.js 18 +
  • pnpmパッケージマネージャ

セットアップ

  1. リポジトリのクローン化:

  2. 依存関係を取付けて下さい:

  3. Playwrightブラウザをインストールします。

  4. プロジェクトを造ります:

使用法

##MCP Server の実行

###開発モード

##テスト

MCP クライアント構成

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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

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:
git clone 
cd rednote-mcp
  1. Install dependencies:
pnpm install
  1. Install Playwright browsers:
pnpm exec playwright install
  1. Build the project:
pnpm build

Usage

Running the MCP Server

pnpm start

Development Mode

pnpm dev

Testing

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

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

For macOS/Linux users:

{
  "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:

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

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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