Skip to main content
Glama
Jovita15-anto

brand-comparison-server

🛍️ MCP Brand Comparison

An AI-powered brand comparison application built using the Model Context Protocol (MCP).

The application fetches real-time shopping data for two brands using SerpAPI, calculates price and rating statistics, determines value for money, and uses an LLM hosted through Hugging Face to generate a structured comparison.

🚀 Features

  • 🔎 Real-time Google Shopping data

  • 🏷️ Compare two different brands

  • 👟 Supports multiple product categories:

    • Shoes

    • Watches

    • Bags

    • Clothing

  • 💰 Average price calculation

  • ⭐ Average rating calculation

  • 📊 Product-level Value Score

  • 🏆 Brand-level value comparison

  • 🤖 AI-generated comparison and explanation

  • 🔌 MCP-based client-server architecture

  • 🌐 Streamlit user interface

  • ⚠️ Error handling for missing data and API failures

  • 🔒 API keys stored securely using environment variables

Related MCP server: Amazon Product Search MCP

🏗️ Architecture

                    ┌─────────────────────┐
                    │       User          │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │     Streamlit UI    │
                    │       app.py        │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │     MCP Client      │
                    │   ClientSession     │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │    FastMCP Server   │
                    │  compareserver.py   │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │       SerpAPI       │
                    │  Google Shopping    │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │   Shopping Data     │
                    │ Price / Rating      │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │   Python Analysis   │
                    │ Price / Rating /    │
                    │ Value Score         │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │        LLM          │
                    │ Hugging Face Router │
                    └──────────┬──────────┘
                               │
                               ▼
                    ┌─────────────────────┐
                    │   AI Comparison     │
                    │ Winner / Reason /   │
                    │ Price / Rating      │
                    └─────────────────────┘

🖥️ Application Preview

Brand Comparison Dashboard

The application allows users to select two brands and a product category, then retrieves real-time shopping data for comparison.

Brand Comparison

AI Analysis & Product Comparison

The application calculates average price, average rating, and Value Score, then provides an AI-generated comparison and displays the retrieved products.

AI Analysis

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables querying and comparing product prices across different marketplaces with real-time updates. Deployable on Cloudflare Workers with tools for searching products, comparing prices, and retrieving price history.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered Amazon product searches and recommendations by integrating the Amazon API with Hugging Face models. It allows users to filter products by price and specific features to receive tailored shopping suggestions.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides AI agents with real-time access to neutral, sourced comparisons across products and services in multiple languages and countries, with tools for searching, fetching detailed comparisons, and listing categories.
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables users to compare and get recommendations across multiple supermarket products, combining curated specifications with realtime price and review lookups.
    -