Skip to main content
Glama
brand-comparison-server

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      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
      C
      maintenance
      Enables users to compare and get recommendations across multiple supermarket products, combining curated specifications with realtime price and review lookups.
      -