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 分

    请在仓库或注册中心条目中声明许可证。