Amazon.in MCP Server

Amazon.in MCP Server

Enables searching products, viewing orders, and analyzing order trends on Amazon.in via a persistent Playwright browser session.

Category
访问服务器

README

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
login 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
finish_login Confirms sign-in, closes the window, returns to headless
login_status Whether you're signed in / walled by CAPTCHA
get_browser_state Current mode (headless/headed), whether a browser is open, idle timeout, profile dir
set_browser_mode Switch headless ↔ headed at runtime (relaunches on next call; login preserved)
search_items no title, price ₹, rating, ASIN, URL
list_orders yes order id, date, total, item titles (paginated)
get_order yes readable detail of one order
analyze_order_trends yes total spend, avg order value, spend by month, top repeated items, biggest orders

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.

  1. Download amazon-in-marketplace-mcp.mcpb from the latest release.
  2. Install it: open Claude Desktop → Settings → Extensions → drag the .mcpb file in (or double-click the file). Review the tools it exposes and click Install.
  3. 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).
  4. Sign in — no terminal needed. Just ask Claude to run the login tool. 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 run finish_login — it confirms, closes the window, and goes back to headless. Your session is saved to ~/.amazon-in-mcp/profile and reused on every later call.
  5. Chromium requirement. The bundle ships the server + Node deps but not the Chromium binary (Playwright keeps that in a shared cache). If the login tool 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 build

Signing 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 login does the same thing from a terminal if you prefer.

Environment variables

Var Default Meaning
AMAZON_MCP_PROFILE_DIR ~/.amazon-in-mcp/profile Chrome profile dir (holds your session)
AMAZON_MCP_HEADLESS 1 (headless) Set 0 to run headed (visible window). Headed draws fewer CAPTCHAs on order pages. Also switchable at runtime via set_browser_mode.
AMAZON_MCP_IDLE_MS 45000 Idle ms before the browser auto-closes. 0 = never close.

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.tsall 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 login again.
  • Trend analysis derives from the order-list view (dates, totals, item titles), not deep per-item category data. Extend get_order + trends.ts for 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选