DEV Community

BuyWhere
BuyWhere

Posted on

Build a Price Comparison AI Agent with BuyWhere MCP in 5 Minutes

BuyWhere MCP gives AI agents real-time access to 5M+ products across Singapore retailers. In this tutorial, you'll build a price comparison AI agent in under 5 minutes.

What You'll Build

An AI agent that can:

  • Search products across categories
  • Compare prices across retailers
  • Find the best deals
  • All through natural language

Prerequisites

  • Claude Desktop, Cursor, or any MCP-compatible client
  • A BuyWhere API key (free, 60-second signup at buywhere.ai/developers)

Step 1: Get Your API Key

curl -X POST https://api.buywhere.ai/v1/developers/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "your@email.com"}'
Enter fullscreen mode Exit fullscreen mode

Save the returned apiKey.

Step 2: Configure MCP

Add BuyWhere to your MCP client config:

{
  "mcpServers": {
    "buywhere": {
      "command": "npx",
      "args": ["-y", "@buywhere/mcp-server"],
      "env": {
        "BUYWHERE_API_KEY": "your-api-key-here"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

For Claude Desktop, this goes in claude_desktop_config.json.

Step 3: Start Shopping

Once configured, you can ask your AI agent questions like:

  • "Find me the cheapest 65-inch TV under $800"
  • "Compare iPhone 16 prices across Singapore retailers"
  • "What are the best deals on running shoes today?"
  • "Search for a gaming laptop under $2000 with at least 16GB RAM"

What's Under the Hood

BuyWhere MCP exposes four tools:

  • search_products - Semantic product search across 5M+ SKUs
  • get_product - Get detailed product info by ID
  • compare_prices - Compare prices across retailers
  • get_deals - Find current deals and discounts

Try This: AI Price Alert

Here's a powerful use case -- ask Claude to set up recurring price checks:

"Check the price of Sony WH-1000XM5 headphones every day and alert me when it drops below $350."

Why BuyWhere MCP?

  • 5M+ products -- Largest Singapore catalog available to AI agents
  • Real-time pricing -- No stale data
  • 60-second API key -- No approval queues
  • Open source at github.com/BuyWhere/buywhere-mcp

Next Steps

  1. Get your free API key at buywhere.ai/developers
  2. Star the GitHub repo at github.com/BuyWhere/buywhere-mcp
  3. Read the docs at docs.buywhere.ai
  4. Build something cool!

Built for AI agents. BuyWhere -- the definitive commerce data layer for AI.

More BuyWhere tutorials:

Top comments (0)