Buywhere Mcp

io.github.richmondteo-code由 GitHub 帳號 richmondteo-code 發布v1.0.0更新於 Oct 24, 2026

Agent-native product catalog API for Southeast Asia — search, compare prices, find deals.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理搜尋 BuyWhere 東南亞商品目錄、比較價格並取得聯盟連結。

可以做什麼
依關鍵字或自然語言搜尋商品目錄,可選用國家、分類和結果數量篩選,並列出新加坡、馬來西亞和印尼的可用分類及子分類。依 BuyWhere 商品 ID 取得單一商品的完整詳情。比較單一商品在各商家的目前價格,依含運費總價排序,並提供最低價與最佳性價比建議。對 2 至 5 個商品進行並排比較,給出價格區間、差異和優缺點。為商品產生帶點擊追蹤的聯盟連結。
適用情境
適合助理協助東南亞購物研究時使用:尋找商品、確認哪個商家最便宜,或在購買決策前比較候選商品。
執行需求
作為本機 Python 程序由 MCP 用戶端啟動,需要本機存在伺服器腳本。必須透過環境變數 BUYWHERE_API_KEY 提供 BuyWhere API 金鑰,需在 BuyWhere 開發者網站註冊取得。需要連線至 BuyWhere API 的網路存取,可用 BUYWHERE_API_URL 覆寫基礎位址。
安裝前請注意
API 金鑰是寫入用戶端設定檔的憑證,應妥善保管該檔案。聯盟連結帶點擊追蹤並記錄推薦來源,分享時應告知使用者。商品資料和查詢內容會傳送到 BuyWhere API。此伺服器只讀取目錄資料,不下單也不付款。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Buywhere Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

buywhere-mcp

MCP server for the BuyWhere product catalog. Lets Claude Desktop, Cursor, Windsurf, and other MCP-compatible agents search and retrieve products without writing any HTTP code.

Setup

1. Get your API key

Sign up at buywhere.ai/developers and copy your API key.

2. Configure your client

Claude Desktop

Open ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) and add:

json
{  "mcpServers": {    "buywhere": {      "command": "python",      "args": ["mcp_server.py"],      "env": {        "BUYWHERE_API_KEY": "your_api_key_here"      }    }  }}
Cursor

Open Settings → MCP and add a new server, or edit ~/.cursor/mcp.json:

json
{  "mcpServers": {    "buywhere": {      "command": "python",      "args": ["mcp_server.py"],      "env": {        "BUYWHERE_API_KEY": "your_api_key_here"      }    }  }}
Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "buywhere": {      "command": "python",      "args": ["mcp_server.py"],      "env": {        "BUYWHERE_API_KEY": "your_api_key_here"      }    }  }}

3. Ask your agent to search products

Restart your client, then try:

"Search BuyWhere for wireless earbuds under $50 in Singapore"

"Use BuyWhere to compare the cheapest iPhone 15 cases"

"Get me the affiliate link for product ID abc123 from BuyWhere"


Tools

search_products

Search the BuyWhere catalog using keywords or natural language.

ParameterTypeRequiredDescription
querystringyesKeyword or natural-language query
countrystringnoCountry code hint (sg, my, id)
categorystringnoCategory slug (e.g. electronics/smartphones)
limitintegernoMax results, 1–50 (default 10)

get_product

Fetch full details for a single product.

ParameterTypeRequiredDescription
product_idstringyesBuyWhere product ID

get_price

Compare current prices for a product across all available merchants. Returns listings ranked by total price (including shipping), plus best-price and best-value recommendations.

ParameterTypeRequiredDescription
product_idstringyesBuyWhere product ID

compare_prices

Side-by-side comparison of 2–5 products. Returns structured differentiators, price range, pros/cons, and a best-value recommendation — purpose-built for AI agent decision-making.

ParameterTypeRequiredDescription
product_idsstring[]yesArray of 2–5 BuyWhere product IDs

get_affiliate_link

Get the click-tracked BuyWhere affiliate link for a product. Always use this instead of raw product URLs when sharing links with users — it logs the referral and redirects to the merchant page.

ParameterTypeRequiredDescription
product_idstringyesBuyWhere product ID

get_catalog

List available product categories. Use this to discover what categories exist before searching or filtering.

ParameterTypeRequiredDescription
parent_slugstringnoParent slug for subcategories (omit for top-level)

Resources

URIDescription
buywhere://catalog/sgAvailable categories in Singapore
buywhere://catalog/myAvailable categories in Malaysia
buywhere://catalog/idAvailable categories in Indonesia

Environment variables

VariableRequiredDescription
BUYWHERE_API_KEYyesYour BuyWhere API key
BUYWHERE_API_URLnoOverride API base URL (default: https://api.buywhere.ai)

Sample agent conversation

User: Find the cheapest mechanical keyboard on BuyWhere and compare the top 2
Claude: I'll search BuyWhere for mechanical keyboards and compare the top results.
[Calls search_products with query="mechanical keyboard", limit=5]
Found 12 products. Top results:1. Keychron K2 — SGD 89.00 (prod_abc123)2. Royal Kludge RK61 — SGD 65.00 (prod_def456)
[Calls compare_prices with product_ids=["prod_abc123", "prod_def456"]]
Comparison: Keychron K2 vs Royal Kludge RK61Price range: SGD 65 – SGD 89Key differences:  • Keychron K2: full-size TKL layout, Mac-optimised keycaps  • RK61: compact 60% layout, budget-friendlyBest value: Royal Kludge RK61 at SGD 65
[Calls get_affiliate_link with product_id="prod_def456"]
Here's your purchase link: https://api.buywhere.ai/r/prod_def456

Development

bash
npm installnpm run buildBUYWHERE_API_KEY=your_key python mcp_server.py

來源:README.md,提交 e263ba0

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。