Amazon MCP Server
Scrapes and searches for products on Amazon.
Amazon MCP Server
This is a Model Context Protocol (MCP) server for scraping Amazon products and searching for products on Amazon.
Setup
-
Clone the repository:
git clone https://github.com/r123singh/amazon-mcp-server.git -
Navigate to the project directory:
cd amazon-mcp-server -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- On Linux/macOS:
source venv/bin/activate - On Windows:
venv\Scripts\activate
- On Linux/macOS:
-
Install dependencies:
pip install -r requirements.txt -
No API keys or tokens are required.
-
Configure MCP JSON: Create a
mcp.jsonfile with:{ "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).
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.
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"
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.
Related Servers
Outscraper
Access Outscraper's data extraction services for business intelligence, location data, reviews, and contact information from various online platforms.
brosh
A browser screenshot tool to capture scrolling screenshots of webpages using Playwright, with support for intelligent section identification and multiple output formats.
YouTube Transcript MCP Server
A high-performance MCP server for fetching YouTube video transcripts, with support for caching, rate limiting, and proxy rotation.
NBA Player Stats
Provides comprehensive NBA player statistics from basketball-reference.com, including career stats, season comparisons, and advanced metrics.
BrowserCat
Automate remote browsers using the BrowserCat API.
Hacker News
Fetches and parses stories from Hacker News, providing structured data for top, new, ask, show, and job posts.
Tech Collector MCP
Collects and summarizes technical articles from sources like Qiita, Dev.to, NewsAPI, and Hacker News using the Gemini API.
Context Scraper MCP Server
A server for web crawling and content extraction using the Crawl4AI library.
MCP Webscan Server
Fetch, analyze, and extract information from web pages.
Oxylabs
Scrape websites with Oxylabs Web API, supporting dynamic rendering and parsing for structured data extraction.