DEV Community

BuyWhere
BuyWhere

Posted on

Build an AI Shopping Agent with BuyWhere in 5 Minutes

Give your AI agent real-time Singapore product pricing with one command.

npx buywhere-mcp-server
Enter fullscreen mode Exit fullscreen mode

That connects to FairPrice, Cold Storage, Lazada, Shopee, and 15+ merchants.

How it works

BuyWhere exposes an MCP (Model Context Protocol) server with tools your agent can call:

  • search_products(query, merchant?, limit?)
  • get_product_prices(product_id)
  • get_merchants()

Example: LangChain

from langchain_mcp import MCPToolkit

toolkit = MCPToolkit(server_path="npx", args=["buywhere-mcp-server"])
tools = await toolkit.get_tools()

result = await tools[0].ainvoke({"query": "iPhone 16 Pro", "limit": 5})
Enter fullscreen mode Exit fullscreen mode

Example: Claude Desktop

{
  "mcpServers": {
    "buywhere": {
      "command": "npx",
      "args": ["buywhere-mcp-server"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Try it now

npx buywhere-mcp-server
Enter fullscreen mode Exit fullscreen mode

Get a free API key at buywhere.ai


Docs: docs.buywhere.ai

Top comments (0)