TaobaoScraper MCP Server
Scrapes product data from Taobao and Tmall, including product title, price, sales volume, reviews, shop info, and more. Supports keyword search, filtering by price, platform, exact match, and Tmall-only results.
Sends push notifications via WeChat using ServerChan or PushPlus channels. Allows sending custom titles and content to WeChat.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TaobaoScraper MCP Serverscrape Nike shoes from Taobao, 2 pages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TaobaoScraper MCP Server
An MCP (Model Context Protocol) server for scraping product data from Taobao/Tmall and JD.com (Jingdong). Provides 8 tools that can be used directly in Claude Desktop or Claude Code.
Platform: Windows (requires Chrome browser) Language: Python 3.10+
Features
Multi-platform scraping - Taobao, Tmall, JD.com in one tool
8 MCP tools - Scraping, task management, notifications, system control
Hot search words - Discover trending keywords and market insights
Excel export - Auto-saves results as
.xlsxfilesNotification push - WeChat (ServerChan / PushPlus) and Email alerts
Dual transport - stdio (local) and SSE (remote) protocols
Trilingual GUI - Chinese / English / Korean interface (optional)
Architecture
Claude Desktop / Claude Code
|
MCP Server (stdio or SSE)
|
FastAPI Backend (:8000)
|
Selenium + Chrome (:9222)Quick Start
1. Prerequisites
Python 3.10+
Google Chrome browser
Windows OS
2. Install
git clone https://github.com/jhongjun1981/taobao-scraper-mcp.git
cd taobao-scraper-mcp
# Install MCP server dependencies
pip install -r requirements_mcp.txt
# Install API backend dependencies
pip install -r requirements_api.txt3. Configure
cp .env.example .env
# Edit .env to set your SCRAPER_API_KEY4. Start Chrome with debug port
# Close all Chrome instances first, then:
START_GUI.bat
# Or manually:
chrome.exe --remote-debugging-port=9222 --user-data-dir="%LOCALAPPDATA%\Google\Chrome\Debug Profile"5. Login to Taobao (first time only)
Open Chrome and login to your Taobao account. Cookies will persist in the debug profile.
6. Start API Backend
python run_api.py7. Configure MCP Server
For Claude Code - Add to .claude/settings.json:
{
"mcpServers": {
"taobao-scraper": {
"command": "python",
"args": ["run_mcp.py"],
"cwd": "/path/to/taobao-scraper-mcp"
}
}
}For Claude Desktop - Add to claude_desktop_config.json:
{
"mcpServers": {
"taobao-scraper": {
"command": "python",
"args": ["run_mcp.py"],
"cwd": "C:\\path\\to\\taobao-scraper-mcp"
}
}
}SSE mode (remote):
python run_mcp.py --transport sse --port 8001{
"mcpServers": {
"taobao-scraper": {
"type": "sse",
"url": "http://your-server:8001/sse"
}
}
}Tools Reference
Scraping Tools
scrape_products
Scrape product data from e-commerce platforms.
Parameter | Type | Default | Description |
| string | required | Search keyword |
| string |
|
|
| int |
| Number of pages to scrape |
| string |
| Sort method |
| bool |
| Tmall products only |
| bool |
| Exact keyword match |
| float |
| Min price filter |
| float |
| Max price filter |
| bool |
| Wait for completion |
| int |
| Timeout in seconds |
Example: "Scrape running shoes from both Taobao and JD"
scrape_hotwords
Scrape trending/related search keywords for market analysis.
Parameter | Type | Default | Description |
| string | required | Base keyword |
| bool |
| Wait for completion |
| int |
| Timeout in seconds |
Task Management Tools
list_tasks
List recent scraping tasks with status (pending/running/completed/failed).
Parameter | Type | Default | Description |
| int |
| Max tasks to return |
get_task
Get detailed status of a specific task. Set include_result=true to get full results.
Parameter | Type | Default | Description |
| string | required | Task ID |
| bool |
| Include result data |
cancel_task
Cancel a running or pending task.
Parameter | Type | Default | Description |
| string | required | Task ID to cancel |
Export Tools
list_files
List all exported Excel data files with filename, size, and modification time.
Notification Tools
send_notification
Send push notifications via WeChat or Email.
Parameter | Type | Default | Description |
| string | required |
|
| string |
| Notification title |
| string |
| Notification body |
| string |
|
|
System Tools
system_status
Check system health or restart Chrome.
Parameter | Type | Default | Description |
| string |
|
|
Environment Variables
Variable | Default | Description |
|
| API authentication key |
|
| FastAPI backend URL |
|
| Chrome debug port |
|
| SSE listen address |
|
| SSE listen port |
|
| HTTP request timeout |
Data Output
Scraped data is automatically saved as Excel files containing:
Product title, image URL, price
Monthly sales volume, review count
Shop name, shop type, shop region
Product URL, scrape timestamp
Important Notes
Taobao requires login - You must login to your own Taobao account in Chrome first
JD works without login - JD scraping does not require authentication
One task at a time - Chrome can only handle one scraping task concurrently
Windows only - The Chrome automation layer uses Windows-specific APIs
Respect rate limits - Excessive scraping may trigger anti-bot protection
License
MIT License - see LICENSE file.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhongjun1981/taobao-scraper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server