Amazon.in MCP Server
Allows searching products, reading order history, and analyzing order trends on Amazon.in using a persistent browser session.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Amazon.in MCP Server search for wireless mouse under 1000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
amazon-in-mcp
A stdio MCP server for Amazon.in that drives a single, persistent, logged-in Playwright/Chromium session. It lets an MCP client (Claude Code, Claude Desktop, etc.) search products, read your orders, and analyze your order trends.
⚠️ Personal-use tool, unofficial. Not affiliated with, endorsed by, or associated with Amazon. It automates your own logged-in Amazon account via a browser — there is no official consumer API for order history, so it reads the same pages you see. Heavy automation can trip CAPTCHAs and brushes against Amazon's Terms of Service. Use it privately and responsibly; you are responsible for your own account and how you use it.
Tools
Tool | Auth needed | What it returns |
| – | Opens a visible window at the Amazon.in sign-in page and holds it open so you can sign in by hand — no terminal needed |
| – | Confirms sign-in, closes the window, returns to headless |
| – | Whether you're signed in / walled by CAPTCHA |
| – | Current mode (headless/headed), whether a browser is open, idle timeout, profile dir |
| – | Switch headless ↔ headed at runtime (relaunches on next call; login preserved) |
| no | title, price ₹, rating, ASIN, URL |
| yes | order id, date, total, item titles (paginated) |
| yes | readable detail of one order |
| yes | total spend, avg order value, spend by month, top repeated items, biggest orders |
Related MCP server: mcp-amazon
Install as a Claude Desktop extension (MCPB) — easiest
A prebuilt MCPB bundle (.mcpb) is attached to each
GitHub Release.
This is the one-click path for Claude Desktop — no cloning or building.
Download
amazon-in-marketplace-mcp.mcpbfrom the latest release.Install it: open Claude Desktop → Settings → Extensions → drag the
.mcpbfile in (or double-click the file). Review the tools it exposes and click Install.Configure (optional) in the extension's settings pane:
Run headless — on by default (no window). Turn off if order pages start showing CAPTCHAs.
Idle auto-close (ms) — how long the browser lingers before closing itself (default 45000;
0= never).
Sign in — no terminal needed. Just ask Claude to run the
logintool. A Chrome window opens at the Amazon.in sign-in page and stays open; sign in by hand (including OTP/CAPTCHA). When you see "Hello, <name>", ask Claude to runfinish_login— it confirms, closes the window, and goes back to headless. Your session is saved to~/.amazon-in-mcp/profileand reused on every later call.Chromium requirement. The bundle ships the server + Node deps but not the Chromium binary (Playwright keeps that in a shared cache). If the
logintool errors that a browser is missing, run once in a terminal:npx playwright install chromium
To build the .mcpb yourself: npm run build && npx @anthropic-ai/mcpb pack .
Install from Git
Clone the repo and build from source (there is no npm-registry package — install straight from Git):
# 1. Clone
git clone git@github.com:kausikram/amazon-in-marketplace-mcp.git
cd amazon-in-marketplace-mcp
# 2. Install deps (postinstall also downloads the Chromium browser binary)
npm install
# 3. Build the TypeScript
npm run build
# 4. Build only — no CLI login step needed. Sign in later from your MCP client
# by asking Claude to run the `login` tool (opens a window), then
# `finish_login`. (A CLI fallback still exists: `npm run login`.)You can also install a specific commit or branch by cloning that ref, e.g.
git clone -b main git@github.com:kausikram/amazon-in-marketplace-mcp.git.
After npm run build, the runnable entry
point is dist/index.js — that's the path you register with your MCP client
(see Register below).
Requires Node 18+ and enough disk for the Chromium download (~150 MB).
Setup
cd amazon-in-mcp
npm install # also runs `playwright install chromium`
npm run buildSigning in: you don't need the command line. Once the server is registered
with your MCP client, ask Claude to run the login tool — a Chrome window
opens at the sign-in page; sign in by hand, then run finish_login. The
session is stored in a persistent profile at ~/.amazon-in-mcp/profile
(override with AMAZON_MCP_PROFILE_DIR) and reused, so you sign in just once.
CLI fallback:
npm run logindoes the same thing from a terminal if you prefer.
Environment variables
Var | Default | Meaning |
|
| Chrome profile dir (holds your session) |
|
| Set |
|
| Idle ms before the browser auto-closes. |
Register with Claude Code
Add to your .mcp.json (or claude mcp add):
{
"mcpServers": {
"amazon-in": {
"command": "node",
"args": ["/Users/kausikram/MCP_Servers/amazon-in-mcp/dist/index.js"],
"env": {
"AMAZON_MCP_HEADLESS": "0"
}
}
}
}Then, in a chat: "search amazon for a 100W usb-c charger", "list my orders from the last 3 months", "analyze my 2024 amazon spending."
How it works / where to fix things
src/browser.ts— the single persistent Chromium context (profile reuse, stealth touches).src/auth.ts— sign-in / CAPTCHA detection; every order tool guards on it.src/parse.ts— all fragile DOM selectors live here. When Amazon changes markup, fix this one file.src/tools/*— the five tools.src/index.ts— MCP wiring over stdio.
Known limitations
Order-history has no API; scraping breaks when Amazon changes HTML — update
parse.ts.CAPTCHA/OTP require a manual
npm run loginagain.Trend analysis derives from the order-list view (dates, totals, item titles), not deep per-item category data. Extend
get_order+trends.tsfor category-level analysis.
License
Released into the public domain under The Unlicense — the most
lenient option available. Do anything you like with it: copy, modify, sell,
redistribute, no attribution required, no warranty. See LICENSE.
Available Tools
9 toolsanalyze_order_trendsAnalyze Amazon.in order trendsA
Pull a window of orders and compute spend trends: total spend, average order value, spend by month, most-repeated items, and biggest orders.
Inputs: maxOrders, timeFilter.
finish_loginConfirm login & close the windowA
Verifies you're signed in after using the login tool, then closes the visible window and returns to headless mode. Pass keepHeaded=true to keep the browser visible for this session.
Inputs: keepHeaded.
get_browser_stateGet browser mode & stateA
Report the current browser configuration: whether it's running headless or headed, whether a browser is currently open, the idle auto-close timeout, and the profile directory.
Inputs: no named parameters.
get_orderGet one Amazon.in order's detailsA
Open a single order's detail page by order id (format 123-1234567-1234567) and return its readable contents: items, prices, shipping and payment summary.
Inputs: orderId (required).
list_ordersList my Amazon.in ordersA
List your recent Amazon.in orders (requires a signed-in session). Returns order id, date, total, and item titles. Paginates automatically up to maxOrders.
Inputs: maxOrders, timeFilter.
loginSign in to Amazon.in (opens a window)A
Opens a visible Chrome window at the Amazon.in sign-in page and keeps it open so you can sign in by hand (including OTP/CAPTCHA). Your session is saved automatically for future calls. After signing in, call finish_login. Use this instead of any command-line login.
Inputs: no named parameters.
login_statusCheck Amazon.in login statusA
Loads the Amazon.in homepage in the persistent browser session and reports whether you are signed in, or whether a CAPTCHA/sign-in wall is blocking access. Run npm run login once if not signed in.
Inputs: no named parameters.
search_itemsSearch Amazon.inA
Search Amazon.in for products. Returns title, price (₹), rating, rating count, ASIN and product URL. Works without being signed in.
Inputs: query (required), maxResults, includeSponsored.
set_browser_modeSwitch headless / headedA
Switch the browser between headless (no window) and headed (visible window). If the browser is currently open, it is closed so the next tool call relaunches in the new mode. Your login is preserved. Returns the resulting state.
Inputs: headless (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct aspect: login flow, order details, order listing, trend analysis, search, and browser configuration. No two tools overlap in function.
Most tools follow a verb_noun pattern (e.g., get_order, list_orders), but 'login' is a plain verb and 'login_status' is noun_noun, causing slight inconsistency.
With 9 tools covering login, orders, search, and browser state, the count is well-scoped for an Amazon.in assistant focused on data retrieval and account management.
Core workflows (login, order lookup, search, trend analysis) are covered, but missing cart, wishlist, or purchase operations, though those may be out of scope.
Maintenance
Related MCP Connectors
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
Let your AI agent operate any website through a real, logged-in browser session.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with your personal Amazon cart through browser automation, allowing search, add to cart, and view cart functionalities.22MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search products, manage cart, place orders, and track shipments on Amazon via browser automation.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching Amazon India products, retrieving details, tracking prices, managing favorites, and more with fast caching.-
- AlicenseAqualityDmaintenanceMCP server that uses a visible Playwright browser to search products and manage an Amazon Business cart, requiring manual login for security, and never finalizes orders.9MIT