price-hunter
Provides integration with the Taobao Union (淘宝联盟) API, enabling product search, coupon queries, and cross-platform price comparison.
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., "@price-huntercompare prices for iPhone 15 across Taobao, JD, and Pinduoduo"
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.
🎯 Price Hunter — 全网比价聚合搜索服务
基于 MCP (Model Context Protocol) 的全网比价聚合引擎,对接淘宝联盟、京东联盟、多多进宝三大电商联盟 API,提供统一的商品搜索、优惠券查询与跨平台比价能力。
架构
Client (LLM / Agent)
│ MCP Protocol (stdio / SSE)
▼
MCPServer (server.py)
│
├── config.py # pydantic-settings 凭据加载
├── models.py # 统一数据模型 (Product, Coupon, CompareResult)
└── engines/
├── base.py # 引擎基类 (签名、重试、Mock/Dry-run)
├── taobao.py # 淘宝联盟 TOP API
├── jd.py # 京东联盟 API
└── pdd.py # 多多进宝 APIRelated MCP server: tk_mcp
快速开始
# 1. 安装依赖
uv sync
# 2. 配置凭据
cp .env.example .env
# 编辑 .env 填入联盟 API Key(见下方生产配置)
# 3. 检查连通性
uv run python scripts/check_keys.py
# 4. 启动 MCP Server
uv run python -m src.server生产配置
三大联盟 API 凭据获取指南详见 docs/union_api_guide.md。
.env 文件格式:
TB_APP_KEY=你的淘宝AppKey
TB_APP_SECRET=你的淘宝AppSecret
TB_ADZONE_ID=你的推广位ID
JD_APP_KEY=你的京东AppKey
JD_APP_SECRET=你的京东AppSecret
JD_SITE_ID=你的推广位SiteID
PDD_CLIENT_ID=你的拼多多ClientID
PDD_CLIENT_SECRET=你的拼多多ClientSecret
PDD_PID=你的推广位PID连通性探测
uv run python scripts/check_keys.py输出示例:
╔══════════════════════════════════════════════════════╗
║ Price Hunter — 联盟 API 连通性探测 ║
╠══════════════════════════════════════════════════════╣
🟢 淘宝联盟 (TOP API)
已连通 — 返回 1 条结果
🟡 京东联盟 (JD Union)
未配置 (Dry-run 运行中)
🔴 多多进宝 (PDD DDK)
签名错误: ...
╠══════════════════════════════════════════════════════╣
║ 汇总: 🟢 1 连通 🟡 1 未配置 🔴 1 失败 ║
╚══════════════════════════════════════════════════════╝图标 | 含义 |
🟢 | 真实 API 已连通 |
🟡 | 未配置凭据 (Dry-run 模式) |
🔴 | 鉴权失败 / 签名错误 / 网络错误 |
MCP Tools
Tool | 说明 |
| 跨平台商品搜索 (并发) |
| 单品详情 + 优惠券信息 |
| 多平台比价 (并发 + 排序 + 摘要) |
| 按商品/关键词搜索优惠券 |
容错机制
自动重试: 网络超时/连接失败自动重试 2 次 (指数退避 1s → 3s)
错误分类: 明确区分「未配置密钥」「网络超时」「签名错误」「限流」
Mock/Dry-run: 无凭据时自动返回真实结构的模拟数据,测试无需 API Key
生产级超时: 连接 5s、读取 10s
开发状态
Phase 1 ✅ 工程脚手架与安全基线
Phase 2 ✅ 三大平台联盟 API 签名算法与比价核心
Phase 3 ✅ MCP 接入与端到端验证
Phase 4 ✅ 生产级错误处理与连通性探测
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
Multi-tenant MCP gateway for AI commerce. One connection, every store.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables affiliate marketing and product promotion across Taobao, JD.com, and Pinduoduo platforms with link conversion, product search, and order tracking capabilities.68117ISC
- AlicenseNot gradedqualityDmaintenance多多进定全平台 MCP 服务是一个基于 Model Context Protocol (MCP) 的服务,支持拼多多大电商平台的链接转换和商品推广功能,商品搜索等等一系列工具68ISC
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to search, compare, and track prices across 40+ retailers in Southeast Asia and the US using MCP tools.2
- AlicenseNot gradedqualityCmaintenanceEnables querying and comparing prices, availability, ratings, reviews, and seller details from major Russian and Chinese marketplaces (Wildberries, Ozon, Yandex Market, and others) without requiring API keys, via a unified MCP interface.3MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/h382110229/price-hunter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server