JT

jeremydong22/taobao_mcp

Browser automation

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

27 stars 14 forks 品質 61 トレンド 0

Claude と Taobao/Tmall 製品スクレイピング統合のための MCP サーバー

概要

このMCPサーバーは、AIアシスタントが、製品の詳細、画像、仕様、顧客レビュー、Q&Aセクションを含む淘宝網およびTmallから包括的な製品データを取得することができます。 製品研究、比較、分析に最適です。 - : 中国の共有テキストでタオバオ/トールリンクを認識 - : 製品のID、直接URL、ショートリンク、共有テキストをサポート - : タイトル、価格、画像、仕様、レビュー、およびQ&Aをスクレイプ - : ブラウザセッションは、複数のリクエストに記録されているまま - : 英語と中国語の両方の入力/出力を処理します - : 構造化された、AIにやさしいマークダウンフォーマットを返す 各製品について、このMCPサーバー抽出物: - Python 3.10以上 - uvパッケージマネージャ(または通常のピップ) - クロムブラウザ(Playwrightによって自動的にインストール) MCP 設定ファイルの作成または編集: ~/Library/Application Support/Claude/claude desktop config.json (macOS) または %APPDATA%\Claude\claude desktop config.json を編集します.

概要(AI 翻訳)

タオバオ/トール(淘宝/天猫)製品情報をスクレイピングするためのモデルコンテキストプロトコル(MCP)サーバー。

このMCPサーバーは、AIアシスタントが、製品の詳細、画像、仕様、顧客レビュー、Q&Aセクションを含む淘宝網およびTmallから包括的な製品データを取得することができます。 製品研究、比較、分析に最適です。

お問い合わせ

✔ 機能

  • 自動リンク検出:中国の共有テキストの淘宝から探す
  • 複数の入力フォーマット: 製品ID、ダイレクトURL、ショートリンク、共有テキストをサポート
  • 包括的なデータ:タイトル、価格、画像、仕様、レビュー、およびQ&Aをスクレイプ
  • 永続セッション: ブラウザセッションは、複数のリクエストに記録されます -バイリンガルサポート:英語と中国語の両方の入力/出力を処理する -Markdownの出力:構造化された、AIに適するMarkdownのフォーマットを戻して下さい

お問い合わせ

誰がScrapedを得るか

各製品について、このMCPサーバー抽出物:

| データの種類 | 詳細情報 | お問い合わせ |基本情報 | タイトル(一般)・価格(韓国)・店舗名(韓国)・商品ID | |Images | サムネイル画像(サムネイル) + 詳しい商品画像(中国語) | |Parameters | 製品仕様(例)・属性(属性) |

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

README

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

Taobao MCP Server

Model Context Protocol (MCP) server for scraping Taobao/Tmall (淘宝/天猫) product information.

This MCP server enables AI assistants to fetch comprehensive product data from Taobao and Tmall, including product details, images, specifications, customer reviews, and Q&A sections. Perfect for product research, comparison, and analysis.


🌟 Features

  • Automatic Link Detection: Recognizes Taobao/Tmall links in Chinese share text
  • Multiple Input Formats: Supports product IDs, direct URLs, short links, and share text
  • Comprehensive Data: Scrapes titles, prices, images, specs, reviews, and Q&A
  • Persistent Sessions: Browser session remains logged in across multiple requests
  • Bilingual Support: Handles both English and Chinese (中文) input/output
  • Markdown Output: Returns structured, AI-friendly Markdown format

📦 What Gets Scraped

For each product, this MCP server extracts:

Data Type Details
Basic Info Title (标题), Price (价格), Store Name (店铺), Product ID
Images Thumbnail images (缩略图) + Detailed product images (详情图)
Parameters Product specifications (参数) and attributes (属性)
Reviews Customer reviews (用户评价) with text, ratings, and photos
Q&A Customer questions and seller answers (问答)

🚀 Installation

Prerequisites

  • Python 3.10 or higher
  • uv package manager (or regular pip)
  • Chromium browser (installed automatically by Playwright)

Step 1: Install Dependencies

cd taobao_mcp
uv pip install -e .
# OR
pip install -e .

Step 2: Install Playwright Browser

playwright install chromium

Step 3: Configure MCP Server

Create or edit the MCP configuration file:

For Claude Code CLI

Create .mcp.json in your project root:

{
  "mcpServers": {
    "taobao-scraper": {
      "command": "python3",
      "args": [
        "/absolute/path/to/taobao_mcp/server.py"
      ],
      "env": {}
    }
  }
}

Replace /absolute/path/to/ with the actual path to this directory!

For Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "taobao-scraper": {
      "command": "python3",
      "args": [
        "/absolute/path/to/taobao_mcp/server.py"
      ]
    }
  }
}

Step 4: Restart Your AI Assistant

  • Claude Code CLI: Start a new conversation or reload
  • Claude Desktop: Restart the application

🎯 Usage Workflow

Step 1: Initialize Login (REQUIRED FIRST)

Before scraping any products, you MUST initialize the browser session:

User: "Initialize Taobao login"
AI: [Calls taobao_initialize_login]

The AI will:

  1. Launch a Chrome browser window
  2. Navigate to Taobao homepage
  3. Check if login is required
  4. If login needed: Wait for you to scan the QR code (扫码登录)
GitHub で README 全文を見る

インストール

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

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

設定

{ "mcpServers": { "taobao-scraper": { "command": "python3", "args": [ "/absolute/path/to/taobao_mcp/server.py" ], "env": {} } } }