Skip to main content
Glama

Amazon Shopping MCP

A Model Context Protocol (MCP) server that lets Claude shop Amazon for you — end to end. It searches products, scrapes full specs and reviews, and (once you log in) can add items to your cart and place orders using the cards and addresses already saved in your Amazon account.

Built with Playwright for reliable browsing that doesn't get blocked like simple HTTP requests.

Features

  • Search Amazon — search any Amazon domain (.ca, .com, .co.uk, etc.) and get structured results with price, rating, review count, and Prime status

  • Product Details — scrape full product pages for specs, features, description, available colors/sizes, brand, pricing (current + list price), images, and availability. Supports parallel scraping of multiple products at once for fast comparison

  • Product Reviews — pull rating distribution (5-star breakdown), overall rating, and individual reviews with title, body, star rating, date, and verified purchase status

  • Buy products — log in once, then list your saved addresses & cards, add to cart, view cart, and place orders. Checkout requires an explicit confirm step so nothing is ever bought without your go-ahead

  • No raw card numbers, ever — purchases use the cards/addresses already in your Amazon account; the server only ever sees the last 4 digits Amazon itself displays

  • CAPTCHA Detection — automatically detects when Amazon shows a bot check and returns a clear error instead of garbage data

Related MCP server: Amazon MCP Server

Tools

Browse (no login required)

Tool

Description

amazon_search

Search Amazon. Returns up to 20 results with title, price, rating, review count, Prime badge, ASIN, and product URL

amazon_product_details

Scrape one or more product pages in parallel. Returns specs, features, description, colors, sizes, brand, price, images, availability

amazon_product_reviews

Get reviews from a product page. Returns star distribution, overall rating, total review count, and individual reviews

Buy (requires amazon_login first)

Tool

Description

amazon_login

Opens a real, visible browser window so you can sign in (incl. 2FA) by hand. Session is saved to disk and reused by every tool below

amazon_login_status

Check whether the saved session is still signed in, and as whom

amazon_list_addresses

List shipping addresses saved in your account, each with an index for checkout

amazon_list_payment_methods

List saved cards — last 4 digits, network, and expiry only, each with an index

amazon_add_to_cart

Add a product (by ASIN or URL) to your cart, with optional quantity

amazon_view_cart

View cart line items, quantities, and subtotal

amazon_place_order

Walk through checkout. Default = preview only (returns ship-to / payment / total). Call again with confirm=true to actually place the order

amazon_subscribe

Set up Subscribe & Save on a product. Default = preview only (base price / discount / cadence). confirm=true creates the recurring subscription

Orders & returns (requires amazon_login first)

Tool

Description

amazon_list_orders

List recent orders — number, date, total, items, delivery status, and whether a return is currently offered

amazon_view_returns

List in-progress / past returns with their status (from the returns-filtered order history)

amazon_start_return

Open the return wizard for an order. Default = preview only (returnable items + reason options); confirm=true to submit

Setup

Prerequisites

  • Python 3.11+

  • uv (recommended) or pip

Install

git clone https://github.com/duaragha/amazon-shopping-mcp.git
cd amazon-shopping-mcp
uv sync

Install a browser for Playwright:

# Use bundled Chromium (works everywhere, recommended)
.venv/bin/playwright install chromium

# Or use an existing browser by setting BROWSER_CHANNEL:
# "chrome", "msedge", etc. — no Playwright install needed

Add to Claude Code

# Using bundled Chromium (default)
claude mcp add --scope user amazon-shopping -- /path/to/amazon-shopping-mcp/.venv/bin/python -m amazon_mcp

# Or to use a specific browser (e.g. Edge, Chrome):
claude mcp add --scope user -e BROWSER_CHANNEL=msedge amazon-shopping -- /path/to/amazon-shopping-mcp/.venv/bin/python -m amazon_mcp

Replace /path/to/amazon-shopping-mcp with the actual path where you cloned the repo.

Then restart Claude Code (or start a new session) to pick up the new tools.

Add to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "amazon-shopping": {
      "command": "/path/to/amazon-shopping-mcp/.venv/bin/python",
      "args": ["-m", "amazon_mcp"]
    }
  }
}

Usage

Once configured, just ask Claude naturally:

"Find me the best webcam under $100 on Amazon"

Claude will:

  1. Search Amazon for webcams

  2. Scrape details for the top candidates (in parallel)

  3. Read reviews for the finalists

  4. Compare everything and give you a top 3 with reasoning and direct links

You can also be more specific:

"Compare these two products on Amazon: [url1] and [url2]"

"What are people complaining about in the reviews for [url]?"

"Search Amazon US for mechanical keyboards under $150 and tell me which one has the best build quality"

Buying something

First, sign in (one time per session lifetime):

"Log me into Amazon"

This opens a real browser window — type your password and any 2FA code, and the session is saved. Then:

"List my Amazon addresses and cards"

"Add the Logitech MX Master 3S to my cart"

"Check out shipping to my home address with the Visa — but show me the total before placing it"

Claude previews the order (items, ship-to, payment, total). Only when you confirm:

"Yes, place it"

…does it actually buy. Nothing is purchased without that explicit confirmation.

Configuration (env vars)

Variable

Default

Purpose

AMAZON_DOMAIN

ca

Default storefront for account/cart/checkout

AMAZON_USER_DATA_DIR

~/.amazon-mcp/user-data

Where the logged-in browser profile is stored

AMAZON_HEADLESS

1

Set 0 to watch the buying tools drive the browser (useful for debugging checkout)

BROWSER_CHANNEL

(unset)

Use an installed browser (chrome, msedge) instead of bundled Chromium

Parameters

amazon_search

  • query — search terms (e.g. "wireless earbuds under $50")

  • domain — Amazon domain suffix: "ca" (default), "com", "co.uk", etc.

  • max_results — number of results to return (default: 20)

amazon_product_details

  • urls — list of Amazon product page URLs (scraped in parallel, up to 8 concurrent)

amazon_product_reviews

  • url — Amazon product page URL

  • max_reviews — max reviews to return (default: 15)

How It Works

Uses Playwright with a headless browser to load actual Amazon pages, then extracts data from the DOM using JavaScript evaluation. This approach is more reliable than API-based scrapers because:

  • Renders the full page like a real browser

  • Handles dynamic content loaded via JavaScript

  • Doesn't require any API keys or affiliate accounts

  • Supports any Amazon domain

The server runs over stdio using the MCP protocol, so it works with any MCP-compatible client.

Limitations & cautions

  • Buying tools automate a logged-in session, which is against Amazon's Terms of Service. Heavy or bot-like use can get your account flagged or restricted. Use it sparingly and at your own risk.

  • Login is human-in-the-loop. Password and 2FA/OTP are typed by you in a real browser window; they're never stored or automated. amazon_login therefore needs a graphical display.

  • Checkout DOM is heavily obfuscated and region-specific. The address/payment selection and place-order selectors are best-effort and may need tweaking after Amazon layout changes — run with AMAZON_HEADLESS=0 to watch and adjust. amazon_place_order never clicks "place order" unless you pass confirm=true.

  • Amazon may occasionally show CAPTCHAs on heavy use — the server detects this and reports it

  • Reviews are scraped from the product page (up to ~10-15 reviews) rather than the dedicated reviews page, which requires sign-in

  • Product page layouts vary — some fields may be empty for certain products

  • Scraping speed depends on your connection and Amazon's response time

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Amazon services through AI assistants, allowing users to search products, manage their cart, view order history, and place orders using natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      64
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to research and shop on Amazon using their own logged-in browser session, supporting product search, details, reviews, cart, wishlist, and order tracking without API keys.
      MIT