JT

jeremydong22/taobao_mcp

Browser automation

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

27 stars 15 forks 품질 56 트렌드 0

MCP 서버 Taobao/Tmall 제품 스크랩 통합 Claude

개요

이 MCP 서버는 제품 세부사항, 이미지, 명세, 고객 리뷰 및 Q&A 단면도를 포함하여 Taobao와 Tmall에서 포괄적인 제품 자료를 fetch하는 AI 조수가 가능하게 합니다. 제품 연구, 비교 및 분석에 완벽한. - : 중국 공유 텍스트의 Taobao / Tmall 링크를 인식 - : 제품 ID, 직접 URL, 짧은 링크 및 공유 텍스트를 지원 - : Scrapes 제목, 가격, 이미지, 사양, 리뷰 및 Q & A - : 브라우저 세션은 여러 요청에 따라 로그온 유지 - : 영어 및 중국어 (中文) 입력 / 출력 모두 처리 - : 구조화, AI 친화적 인 Markdown 형식을 반환 각 제품을 위해, 이 MCP 서버 추출물: - Python 3.10 이상 - uv 패키지 관리자 (또는 일반 pip) - 크롬 브라우저 (Playwright에 의해 자동으로 설치) MCP 구성 파일 생성 또는 편집: ~/Library/Application Support/Claude/claude desktop config.json (macOS) 또는 %APPDATA%\Claude\claude desktop config.

개요(AI 번역)

Model Context Protocol (MCP) 서버는 Taobao/Tmall (天/天) 제품 정보를 스크랩합니다.

이 MCP 서버는 제품 세부사항, 이미지, 명세, 고객 리뷰 및 Q&A 단면도를 포함하여 Taobao와 Tmall에서 포괄적인 제품 자료를 fetch하는 AI 조수가 가능하게 합니다. 제품 연구, 비교 및 분석에 완벽한.


의 특징

-Automatic Link Detection: 중국어 공유 텍스트의 Taobao/Tmall 링크 인식

  • **Multiple 입력 형식 **: 제품 ID, 직접 URL, 짧은 링크 및 텍스트 공유 -Comprehensive Data: 제목, 가격, 이미지, 사양, 리뷰, Q&A
  • Persistent Sessions: 브라우저 세션은 여러 요청을 통해 로그인됩니다.
  • ** 다국어 지원**: 영어 및 중국어 모두 처리 (中文) 입력/출력 -Markdown output: 구조화, AI-friendly Markdown 형식을 반환합니다.

☸ 무엇 Gets Scraped

각 제품을 위해, 이 MCP 서버 추출물:

데이터 유형 상세
Basic Info 제목()), 가격()), 가게 이름(店)), 제품 ID
Images 썸네일 이미지( Th) + 상세 제품 이미지(情報)
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": {} } } }