
Amazon MCP Server
This is a Model Context Protocol (MCP) server for scraping Amazon products and searching for products on Amazon.
Available Tools
The server provides the following tools for interacting with Amazon:
-
Scrape a product:
scrape_product(product_url)
Scrape product details (name, price, image, rating, reviews, availability, description) from a given Amazon product URL. -
Search for products:
search_products(query, max_results)
Search for products on Amazon by keyword and return a list of results.
Notes
- No API key or authentication is required.
- The server scrapes publicly available Amazon product and search pages.
- For best results, use valid Amazon product URLs and clear search queries.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
pip install -r requirements.txtSetup
-
Clone the repository:
Copy & paste โ that's itgit clone https://github.com/r123singh/amazon-mcp-server.git -
Navigate to the project directory:
Copy & paste โ that's itcd amazon-mcp-server -
Create a virtual environment:
Copy & paste โ that's itpython -m venv venv -
Activate the virtual environment:
- On Linux/macOS:
Copy & paste โ that's it
source venv/bin/activate - On Windows:
Copy & paste โ that's it
venv\Scripts\activate
- On Linux/macOS:
-
Install dependencies:
Copy & paste โ that's itpip install -r requirements.txt -
No API keys or tokens are required.
-
Configure MCP JSON: Create a
mcp.jsonfile with:Copy & paste โ that's it{ "mcpServers": { "amazon": { "command": "{PATH_TO_DIRECTORY}\\amazon-mcp-server\\venv\\Scripts\\python.exe", "args": [ "{PATH_TO_DIRECTORY}\\amazon-mcp-server\\server.py" ] } } }Replace
{PATH_TO_DIRECTORY}with the absolute path to this directory (usepwdorcdto get the path).
Usage
Once configured, the MCP server can be started using the standard MCP client configuration. The server provides a natural language interface to interact with Amazon through the available tools.
Example usage:
- "Get details for this Amazon product: [product URL]"
- "Search Amazon for 'wireless headphones', show top 3 results"
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.