Overview π
I've built a powerful MCP Server for Amazon that's completely open source! This innovative server leverages the Model Context Protocol (MCP) to create a seamless bridge between your applications and Amazon product data. Supercharge your workflow with these amazing capabilities:
- π Search for Amazon products by keyword
- π¦ Scrape detailed product information (name, price, image, rating, reviews, availability, description)
- β‘ No API keys or authentication required
- π οΈ Easy integration with tools like Cursor and Claude Desktop
Setup βοΈ
- π§βπ» Clone the repository:
git clone https://github.com/r123singh/amazon-mcp-server.git
- π 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
- π¦ Install dependencies:
pip install -r requirements.txt
π« No API keys or tokens are required!
π οΈ Configure MCP JSON:
Create amcp.json
file 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 (usepwd
orcd
to 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 π¦
Now that you have the MCP server configured, you can use it in your applications. The server provides a natural language interface to interact with Amazon through the available tools such as Cursor, Claude Desktop, and more!
Cursor AI π»
- Open MCP settings in Cursor AI - File -> Settings -> MCP -> Enable MCP
- Add the following to your Cursor AI settings:
{
"mcpServers": {
"amazon": {
"command": "{PATH_TO_DIRECTORY}\\amazon-mcp-server\\venv\\Scripts\\python.exe",
"args": [
"{PATH_TO_DIRECTORY}\\amazon-mcp-server\\server.py"
]
}
}
}
π Restart Cursor AI
Use the following prompt to use the Amazon MCP server:
Search Amazon for 'wireless headphones', show top 3 results π
Or:
Get details for this Amazon product: [product URL]
Claude Desktop π₯οΈ
- Open Claude Desktop. Go to File -> Settings -> Select developer tab -> Click on "Edit config"
- It will open location of config file in your default editor. It is named 'claude_desktop_config.json'. Open it.
- Add the following to the config:
{
"mcpServers": {
"amazon": {
"command": "{PATH_TO_DIRECTORY}\\amazon-mcp-server\\venv\\Scripts\\python.exe",
"args": [
"{PATH_TO_DIRECTORY}\\amazon-mcp-server\\server.py"
]
}
}
}
The new mcp server should appear in the settings page with status "Running" or "Connected" β
Close the settings page and go back to the chat. Select the 3 line icon just below the chat input box. It should display now "amazon" in the list of available servers, clicking it will list all the tools available.
Use the following prompt to search for products:
Search Amazon for 'wireless headphones', show top 3 results π
Or to get product details:
Get details for this Amazon product: [product URL]
- It will prompt initially to run the tool. Click on "Always run". It will fetch the product data from Amazon and return the details. π
Why Use This MCP Server? π€
- π Instantly access Amazon product data without API keys or scraping headaches
- π‘οΈ 100% open source and privacy-friendly
- π§© Plug-and-play with modern AI tools and workflows
- π οΈ Extensible for your own custom use-cases
Top comments (2)
This is super practical, especially not needing API keys or tokens. Are you planning to add support for any other marketplaces in the future?
Thanks! Yes, we're definitely considering expanding to other marketplaces. The no-API-key approach makes it much easier to add new platforms