Price comparison tool for momo and PChome
Project description
Price Compare MCP
台灣電商比價工具 MCP Server,支援 momo、PChome、Coupang 價格搜尋與比較。
功能
compare_prices- 跨平台搜尋最低價商品search_pchome- 搜尋 PChome 24hsearch_momo- 搜尋 momo 購物search_coupang- 搜尋 Coupang 台灣
安裝
pip install mcp-taiwan-price-compare
# 或
uv pip install mcp-taiwan-price-compare
MCP Server 配置
Claude Desktop / Claude Code
CLI 快速安裝(推薦):
claude mcp add price-compare -- uv run --directory /path/to/price_compare price-compare-mcp
手動編輯配置檔:
| 系統 | 路徑 |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
{
"mcpServers": {
"price-compare": {
"command": "uv",
"args": ["run", "--directory", "/path/to/price_compare", "price-compare-mcp"]
}
}
}
Gemini CLI
安裝 Gemini CLI:
npm install -g @google/gemini-cli@latest
編輯 ~/.gemini/settings.json:
{
"mcpServers": {
"price-compare": {
"command": "uv",
"args": ["run", "--directory", "/path/to/price_compare", "price-compare-mcp"]
}
}
}
ChatGPT(Developer Mode)
需要 ChatGPT Plus/Pro/Team/Enterprise 方案
ChatGPT 僅支援遠端 HTTPS MCP server,需先部署或使用 ngrok:
# 本地開發:使用 ngrok 建立 HTTPS 通道
ngrok http 8000
- 開啟 ChatGPT → Settings → Developer mode → 啟用
- Settings → Connectors → Create
- 輸入 MCP server URL(ngrok 提供的 HTTPS URL)
詳細說明:OpenAI MCP 文件
其他安裝方式
使用 uvx(無需安裝):
{
"mcpServers": {
"price-compare": {
"command": "uvx",
"args": ["--from", "mcp-taiwan-price-compare", "price-compare-mcp"]
}
}
}
使用 npx + stdio wrapper:
{
"mcpServers": {
"price-compare": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-proxy", "--", "uv", "run", "price-compare-mcp"]
}
}
}
CLI 使用
# 搜尋最便宜的 10 筆
uv run python -m price_compare "iPhone 15"
# 指定數量與價格範圍
uv run python -m price_compare "藍牙耳機" -n 20 --min 500 --max 3000
# 價格由高到低
uv run python -m price_compare "機械鍵盤" --desc
參考資料
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_taiwan_price_compare-0.1.0.tar.gz.
File metadata
- Download URL: mcp_taiwan_price_compare-0.1.0.tar.gz
- Upload date:
- Size: 57.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c80af276f322dc4c381fa157c51efcf5f714efac0c04f3369a20d8edca5dfd
|
|
| MD5 |
dea7c5a6127bed5231d4794bec116cdd
|
|
| BLAKE2b-256 |
0410473ab82afb18e82a2dfcb1caeac8be667ef6ac9d9517d220615c0e4fca7d
|
File details
Details for the file mcp_taiwan_price_compare-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_taiwan_price_compare-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
287dce9d65448a07f55b1a9abd21fee8f07e7bd61faff26677877ea8bf6f7a6b
|
|
| MD5 |
5d502b2efd43d7f359b684f3262acf56
|
|
| BLAKE2b-256 |
a25fd352589ec8efef8295002288076388393e0502bda8965f302819c8c36b63
|