Provides tools for searching Amazon products, allowing for feature-based matching and price range filtering.
Utilizes Hugging Face for AI-powered product recommendations and intelligent feature-based matching.
Uses RapidAPI to access Amazon product data and search functionality.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Amazon Product Search MCPFind a 16GB RAM laptop for programming between 40000 and 80000 rupees"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Amazon Product Search MCP Server
The site is live here ! : https://shopassist-sharavana.streamlit.app/
An MCP (Model Context Protocol) server that provides AI-powered Amazon product search and recommendations using FastMCP.
Features
π Smart product search with Amazon API
π€ AI-powered product recommendations using Hugging Face
π° Price range filtering
π Feature-based matching
π― Tailored recommendations for Small/Medium Enterprises
Installation
Clone this repository and navigate to the project directory
Install dependencies:
# Using uv (recommended) uv sync # Or using pip pip install -r requirements.txt
Server Setup
Running the MCP Server
The server exposes one main tool:
getdata: Search Amazon products with AI recommendations
Client Options
We provide multiple client implementations to interact with your MCP server:
1. Python Interactive Client (client.py)
A full-featured Python client with examples and interactive mode.
Features:
Pre-built examples (laptops, smartphones)
Interactive search mode
Real-time communication with MCP server
2. Command Line Interface (cli_client.py)
Quick command-line searches for automation and scripting.
Arguments:
product: Product to search for (required)--features,-f: Specific features to look for--min-price,-min: Minimum price in rupees--max-price,-max: Maximum price in rupees
3. Web Interface (web_client.py)
A beautiful web interface with REST API backend.
Then open http://localhost:8000 in your browser for a user-friendly interface.
API Endpoints:
GET /: Web interfacePOST /search: REST API for product searchGET /health: Health check
4. MCP CLI Integration
You can also use the MCP CLI to interact with your server:
Usage Examples
Example 1: Laptop Search
Example 2: Smartphone Search
Example 3: Budget Headphones
Configuration
API Keys Required
Make sure you have:
Hugging Face API Token: Update
HF_API_TOKENinserver/buy.pyRapidAPI Key: Update the
x-rapidapi-keyinserver/buy.py
Customization
You can customize the AI recommendation prompt in the decision_agent function in server/buy.py.
Integration with Claude Desktop
To use this MCP server with Claude Desktop, add this configuration to your claude_desktop_config.json:
Troubleshooting
Common Issues
Import errors: Make sure you're in the correct virtual environment
API failures: Check your API keys and internet connection
Connection issues: Ensure the MCP server is running before starting clients
Error Messages
"No result": Usually indicates API issues or no products found
"Connection refused": MCP server is not running
"Tool not found": Server initialization issue
Development
Adding New Features
Add new tools in
server/buy.pyusing the@mcp.tool()decoratorUpdate client code to use new tools
Test with the interactive client first
Testing
Architecture
License
This project is open source. Please ensure you comply with the terms of service of the APIs used (Amazon, RapidAPI, Hugging Face).