Amazon Product Analysis MCP Server

Amazon Product Analysis MCP Server

Analyzes Amazon products with comprehensive insights including pricing, features, specifications, delivery options, and customer reviews, displayed through an interactive React widget.

Category
访问服务器

README

Amazon Product Analysis MCP Server

A production-ready Model Context Protocol (MCP) server for Amazon product analysis, built with mcp-use and powered by Bright Data for Web MCP tool. This server provides an interactive tool and beautiful React widget for analyzing Amazon products with comprehensive insights including pricing, features, specifications, delivery options, and customer reviews.

🚀 Built with mcp-use

This MCP server is powered by mcp-use, a modern framework for building MCP servers with:

  • Type-safe server creation - Build MCP servers with full TypeScript support
  • React widget support - Create interactive UI components using the OpenAI Apps SDK
  • Simplified client connections - Easily connect to other MCP servers
  • Built-in development tools - Hot reload, build, and deploy commands
  • Zero boilerplate - Focus on your tools, not infrastructure

Features

  • 🛒 Amazon Product Analysis - Extract comprehensive product data from any Amazon URL
  • 🎨 Interactive Widget - Beautiful React widget for displaying product insights
  • 📊 Rich Data Extraction - Pricing, features, specifications, delivery, reviews, and seller info

Prerequisites

Installation

# Install dependencies
yarn install
# or
npm install

Configuration

  1. Copy the environment example file:
cp .env.example .env
  1. Set the following required environment variables:
# Required: Your Bright Data API Key
BRIGHTDATA_API_KEY=your_brightdata_api_key_here

# Required: Your OpenAI API Key
# Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here

Development

mcp-use provides convenient development commands:

# Start development server with hot reload
yarn dev
# or
npm run dev

# Build for production
yarn build
# or
npm run build

# Start production server
yarn start
# or
npm start

# Deploy the server
yarn deploy
# or
npm run deploy

The development server starts:

  • MCP server on port 3000
  • Widget serving at /mcp-use/widgets/*
  • Inspector UI at /inspector

Available Tools

amazon-product-analysis

Analyze any Amazon product URL. Opens an interactive widget displaying comprehensive product insights.

Parameters:

  • url (required): Amazon product URL (must contain valid full URL of the product page)
  • zipcode (optional): ZIP code for location-specific pricing and delivery

Widget: amazon-product-analysis - Interactive product analysis display

Returns: Structured product data including:

  • Product info (title, image, price, rating, reviews)
  • Pricing breakdown (original price, discount, savings)
  • Product features
  • Specifications
  • Delivery options
  • Seller information
  • Customer reviews summary
  • Category rankings

UI Widgets

This server includes a custom React widget built with mcp-use:

Amazon Product Analysis (amazon-product-analysis)

An interactive widget for displaying product insights:

  • Product Card - Title, image, price, and star rating
  • Image Gallery - Zoomable carousel with thumbnails
  • Pricing Deal - Original price, discount percentage, savings
  • Features List - Key product features
  • Delivery Info - Standard and fast shipping options
  • Seller Info - Seller name, rankings, categories
  • Customer Reviews - Review summary and top review
  • Product Specs - Technical specifications table

The widget is built with:

  • React 19
  • Tailwind CSS
  • TanStack Query
  • Zod validation
  • OpenAI Apps SDK hooks

Architecture

This server demonstrates the power of mcp-use:

  • Server-side: Uses mcp-use/server to create tools and widgets
  • Client-side: Uses mcp-use/react for widget hooks
  • Type-safe: Full TypeScript support with Zod schemas
  • Bright Data Integration: Amazon product scraping via Bright Data SDK
  • OpenAI Integration: GPT-4o for intelligent data extraction

Data Flow

User → ChatGPT → MCP Server → amazon-product-analysis tool
                                       ↓
                              Bright Data SDK
                                       ↓
                                 Amazon Website
                                       ↓
                              GPT-4o Data Extraction
                                       ↓
                                Widget Display
                                       ↓
                            Product Insights UI

Project Structure

amazon-product-analysis-server/
├── index.ts                              # Main server file with API endpoints
├── resources/
│   └── amazon-product-analysis/
│       ├── widget.tsx                    # Main widget component
│       ├── types.ts                      # Zod schemas and TypeScript types
│       ├── server.ts                     # Server-side analysis logic
│       ├── brightdata-tools.ts           # Bright Data integration
│       ├── utils.ts                      # Utility functions (image proxy)
│       ├── hooks/
│       │   └── useProductAnalysis.ts     # React Query hook
│       └── components/
│           ├── ProductCard.tsx           # Product display
│           ├── ImageGallery.tsx          # Image carousel
│           ├── PricingDeal.tsx           # Price info
│           ├── Features.tsx              # Features list
│           ├── DeliveryInfo.tsx          # Shipping options
│           ├── SellerInfo.tsx            # Seller details
│           ├── CustomerReviews.tsx       # Reviews summary
│           └── ProductSpecs.tsx          # Specifications
├── package.json                          # Dependencies
├── tsconfig.json                         # TypeScript configuration
└── README.md                             # This file

Deployment

mcp-use Cloud

# Install the CLI (if not already done)
npm install -g @mcp-use/cli

# Login to mcp-use cloud
npm run mcp-use login

# Deploy your server
npm run mcp-use deploy

Other Platforms

The server can be deployed to any Node.js hosting platform:

  • Vercel
  • Railway
  • Render
  • Fly.io
  • AWS Lambda (with adapter)
  • Google Cloud Run

Make sure to set the MCP_URL environment variable to your production URL.

Usage in ChatGPT

  1. Deploy your application and get the MCP endpoint URL (e.g., https://your-app.vercel.app/mcp)
  2. In ChatGPT, go to Apps & Connectors → Advanced Settings and enable developer mode
  3. Create Connector:
    • Go to Apps & Connectors and click Create
    • Enter a name for your connector
    • Enter your MCP server URL
    • Select No Authentication (or configure auth if needed)
    • Accept the terms and conditions
    • Click Create
  4. Create a new chat and use the / command to access the connector
  5. Try: "Analyze this Amazon product: https://www.amazon.in/iPhone-Pro-Max-512-Promotion/dp/B0FQG8XCJ1?ref_=ast_sto_dp"

Troubleshooting

Products not analyzing

  • Check your BRIGHTDATA_API_KEY is set correctly
  • Verify the Amazon URL contains valid full URL of the product page
  • Ensure your Bright Data account has credits
  • Check browser console for errors

Images not loading

  • Images are proxied through /api/image-proxy to bypass CORS
  • Check that the image proxy endpoint is accessible

Widget not displaying

  • Verify server is running (npm run dev)
  • Check that widget is built (npm run build)
  • Ensure widgetMetadata is exported
  • Check browser console for errors

Learn More

📬 Stay Updated with Our Newsletter!

Get a FREE Data Science eBook 📖 with 150+ essential lessons in Data Science when you subscribe to our newsletter! Stay in the loop with the latest tutorials, insights, and exclusive resources. Subscribe now!

Daily Dose of Data Science Newsletter

Contribution

Contributions are welcome! Please fork the repository and submit a pull request with your improvements.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选