Skip to main content

MCP tool for comparing prices across JD, Taobao, and PDD

Project description

best-price-mcp

MCP tool for comparing prices across JD (京东), Taobao (淘宝/天猫), and PDD (拼多多).

Installation

pip install best-price-mcp

Usage

As MCP Server

best-price-mcp

Tool: compare_price

Search for the same product across major Chinese e-commerce platforms and compare final prices.

Parameters:

  • query (string): Product keyword, title, or link. For best results, copy the full product title.
  • platform (string, optional): "jd", "taobao", "pdd", or "all" (default)

Supported Categories (37 Standard Product Types)

Phones, smart watches, tablets, laptops, monitors, printers, storage, GPUs, earphones, cameras, projectors, game consoles, routers, keyboards/mice, robot vacuums, TVs, refrigerators, washing machines, ACs, water heaters, hair dryers, shavers, electric toothbrushes, air purifiers, water purifiers, blenders, air fryers, rice cookers, branded sneakers, branded bags, branded watches, perfume, liquor, baby formula, diapers, books, branded grain/oil.

Not Supported

Clothing, non-branded shoes/bags, accessories, home decor, custom/handmade items.

Usage Scenarios

Scenario Example Handling
Copy product title (recommended) 华为Mate70 Pro 12+512 雅丹黑 Noise cleaning → search
Type brand + model iPhone 17 Pro Max 256G Direct search
APP share link (fallback) 【淘宝】https://e.tb.cn/... Parse → search
PC link item.jd.com/12345.html Prompt to copy title
Vague input 华为手机 Guide to copy title

Selection Logic

Each platform returns 1 best pick + 0-2 alternatives:

Platform Best Pick Logic
JD Brand flagship self-operated store → lowest price → highest rating. Rating <95% flagged.
Taobao Tmall only. Brand flagship store priority → lowest price → highest sales.
PDD Brand name match priority → lowest price → highest sales. Irrelevant results filtered out.

Link Resolution Strategy

Scenario JD Taobao/Tmall PDD
APP share link Extract name from 「」 API lookup → fallback 「」 Prompt user to copy title
PC link Prompt user to copy title Prompt user to copy title N/A

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

best_price_mcp-0.3.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

best_price_mcp-0.3.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file best_price_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: best_price_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for best_price_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bd11f87b06100da9170f1fe4bb577ce268f1306e73c5e4b279499e346df2511c
MD5 64059de916959ea986e195374644838a
BLAKE2b-256 7eec0cb4d21b07b72481c443dea2f765bfe7760b18813faebd36ac030ec0af41

See more details on using hashes here.

File details

Details for the file best_price_mcp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: best_price_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for best_price_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85a7168a91b7efee8ecf300a47b52f92f514891660d8aa83a028b5279eb01c35
MD5 b50a51c77106b34150ab037c17ca06fb
BLAKE2b-256 2d5e7bc74a1eadd0ef501d2e0e95eeea572cec2849347ddb4d53c626911bab9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page