
product search agent
Web-based ecommerce product search agent
Repository Info
About This Server
Web-based ecommerce product search agent
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Product Search Agent
A web-based e-commerce product search agent. It allows users to search for products across multiple online platforms using a natural language query. The backend entails a combination of web scraping capabilities (via BrightData MCP) and a LLM (configured for Google Gemini via Langchain) to find and present relevant product information.
Features
- Search for products using natural language queries.
- Select from multiple e-commerce platforms (Amazon, Best Buy, Ebay, Walmart, Target, Costco, Newegg).
- Displays product title, URL, and rating.
- Web interface built with Flask.
Prerequisites
- Python 3.x
- Node.js and npm (which includes npx for running the MCP client)
- Access to Google Gemini API (or another compatible LLM)
- BrightData account and credentials (for web scraping)
Setup and Installation
-
Create a Python virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install Python dependencies:
pip install flask python-dotenv pydantic model-context-protocol langchain_mcp_adapters langgraph langchain-google-genai -
Set up Environment Variables: Create a file named
.envin the root directory of the project and copy the contents of '.env.example' file, replacing the placeholder values with actual credentials:# BrightData Credentials API_TOKEN=your_brightdata_api_token_here BROWSER_AUTH=your_brightdata_browser_auth_here WEB_UNLOCKER_ZONE=your_brightdata_web_unlocker_zone_here # Google Gemini API Key GOOGLE_API_KEY=your_google_api_key_here
How to Run
- Ensure all prerequisites are met and environment variables are set.
- Open your terminal in the project's root directory.
- Run the Flask application:
python app.py - Open your web browser and navigate to
http://localhost:8000(orhttp://0.0.0.0:8000).
Quick Start
Clone the repository
git clone https://github.com/con-fucius/product-search-agentInstall dependencies
cd product-search-agent
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.