Amazon Product Search MCP
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
Related MCP server: Amazon MCP Server
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
# Activate your virtual environment
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Run the server
python main.pyThe 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.
python client.pyFeatures:
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.
# Basic search
python cli_client.py "laptop"
# With features and price range
python cli_client.py "laptop" --features "8GB RAM, SSD storage" --min-price 30000 --max-price 80000
# Smartphone search
python cli_client.py "smartphone" --features "good camera, 5G" --min-price 15000 --max-price 50000Arguments:
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.
# Install additional dependencies
pip install fastapi uvicorn
# Run the web server
python web_client.pyThen 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:
# Install MCP CLI if not already installed
pip install mcp
# Connect to your server
mcp connect stdio -- python main.pyUsage Examples
Example 1: Laptop Search
{
"product": "laptop",
"specific_features": "8GB RAM, SSD storage, good for programming",
"min_price": 30000,
"max_price": 80000
}Example 2: Smartphone Search
{
"product": "smartphone",
"specific_features": "good camera, long battery life, 5G support",
"min_price": 15000,
"max_price": 50000
}Example 3: Budget Headphones
{
"product": "wireless headphones",
"specific_features": "noise cancellation, comfortable",
"min_price": 1000,
"max_price": 5000
}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:
{
"mcpServers": {
"amazon-search": {
"command": "python",
"args": ["path/to/your/main.py"],
"env": {}
}
}
}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
# Test the server directly
python -c "from server.buy import mcp; print('Server loads successfully')"
# Test with the interactive client
python client.pyArchitecture
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β MCP Client βββββΊβ MCP Server βββββΊβ External APIs β
β (Your Choice) β β (FastMCP) β β (Amazon/HF AI) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β’ client.py β β β’ Tool: getdata β β β’ Amazon Search β
β β’ cli_client β β β’ AI Agent β β β’ HuggingFace β
β β’ web_client β β β’ FastMCP β β β’ Recommendationsβ
β β’ Claude β β β β β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββLicense
This project is open source. Please ensure you comply with the terms of service of the APIs used (Amazon, RapidAPI, Hugging Face).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with Amazon services through AI assistants, allowing users to search products, manage their cart, view order history, and place orders using natural language.Last updated26MIT
- Flicense-qualityFmaintenanceEnables scraping Amazon product details and searching for products on Amazon through natural language queries. No API keys required as it scrapes publicly available Amazon pages.Last updated10
- Alicense-qualityDmaintenanceEnables users to search for products, retrieve details, and manage their shopping cart on Amazon through the MCP framework. It also supports viewing order history and provides a demonstration of ordering capabilities within AI interfaces.Last updated2639MIT
- Alicense-qualityDmaintenanceEnables AI agents to search products, manage cart, place orders, and track shipments on Amazon via browser automation.Last updated121MIT
Related MCP Connectors
AI-agent search API: Google, YouTube, Amazon, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn
Search and get fashion products recommendations across multiple e-ecom stores
Search Rakuten Ichiba products and compare prices via Claude. Zero setup, no API key needed.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sharavanask/ShopAssist-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server