amazon-lyr
エージェントセッションの全体像
これは amazon-lyr を実行するエージェントとの実際の会話の一例です。隠されたステップはありません:
1. search_products("noise cancelling headphones", max_price=300, min_rating=4)
2. review_insights("B0X1234567") # star spread + keyword themes
3. search_in_reviews("B0X1234567", query="broke") # what actually breaks?
4. add_to_cart("B0X1234567", quantity=1)
5. checkout_preview() # totals + address + payment, nothing bought
6. place_order(confirm="PLACE_ORDER") # only after the user said "buy it"
✓ order placed · #111-2223334-5556667
7. track_shipment("111-2223334-5556667")
8. initiate_return("111-2223334-5556667", reason="defective", asin_hint="…")
9. list_returns() # refund status confirmedすべてのステップは型付きのMCPツール呼び出しです。購入ステップは誤って実行されないよう意図的に難しくしてあります — 安全モデル を参照してください。
Related MCP server: Amazon MCP Server
他と何が違うのか
APIキー不要 |
|
ライフサイクル全体 | スクレイピングだけではない:カート操作、ウィッシュリスト書き込み、確認応答解析付きチェックアウト、返品ウィザード、キャンセル |
エージェント向けエラー | CAPTCHA、サインアウトリダイレクト、ソフトスロットルは、回復ヒント( |
仕組み
browser cookies ──▶ AmazonClient (curl_cffi, captcha-aware)
│
▼
bs4 parsers ──▶ normalized dicts ──▶ 21 FastMCP tools
(readOnly / destructive annotations)認証は自分のセッションを使用します:amazon-lyr login は obscura-core を介してChrome、Brave、Firefox、Edge、Zenからクッキーをインポートするか、明示的なJSONエクスポートからインポートします。読み取りにはログイントークンが必要です。カート、注文、返品、チェックアウトにはセッションコンテキストクッキーも必要です。
インストール
# Persistent install — uv tool (isolated; bootstraps uv on clean systems)
curl -sSL https://raw.githubusercontent.com/ishan-parihar/amazon-lyr/main/install.sh | bash
# Zero-install run without persistence:
uvx --from git+https://github.com/ishan-parihar/amazon-lyr amazon-lyr --versionその後、一度認証してサーブします:
amazon-lyr login --browser chrome # or: --cookies-file cookies.json
amazon-lyr search "mechanical keyboard" # shell works immediately
amazon-lyr serve # MCP server (stdio){
"mcpServers": {
"amazon": {
"command": "amazon-lyr",
"args": ["serve"]
}
}
}ツール(21)
カテゴリ | ツール |
検索 |
|
商品 |
|
レビュー |
|
カート |
|
ウィッシュリスト |
|
注文 |
|
返品 |
|
購入 |
|
危険ゾーン |
|
セッション |
|
安全モデル
お金の移動は正確に2つのゲートを通過します:
セッションゲート — すべての変更操作には完全なログインクッキー(
at-main+session-id/ubid-main)が必要です。読み取り専用セッションは、リクエストが行われる前に拒否されます。同意ゲート —
place_orderは正確なリテラルconfirm="PLACE_ORDER"が渡されない限り実行を拒否します。意図されたフローは:ユーザーにプレビュー → ユーザーが承認 → その後リテラルを渡す、です。cancel_orderとinitiate_returnも同様に破壊的/非冪等として注釈付けされ、エージェントフレームワークがそれに応じて扱います。
カード検証(OTP / 3-D Secure)はチェックアウト中に検出され、ブラウザの指示とともに needs_verification として報告されます — 推測で通過させることはありません。
制限事項
正直な上限。すべて誤ったデータではなく型付きエラーとして表示されます:
CAPTCHAの壁 — アカウント領域のページはカタログより厳格です。新しいクッキーを再インポートするか、待機してください(
CaptchaErrorにヒントが含まれます)ソフトスロットル — 3秒未満の間隔では黙って空のグリッドが返されます。疑わしい場合、レスポンスには
possibly_throttled: trueが含まれます地域別価格バリアント — 一部のバリアントは価格をクライアント側でレンダリングします。検索はテキストスキャンにフォールバックし、
get_productが信頼できる情報源です同意なしの自動購入は不可 — 設計上の仕様です。チェックアウトには明示的なconfirmリテラルとユーザー承認が必要です
開発
git clone https://github.com/ishan-parihar/amazon-lyr && cd amazon-lyr
uv sync --extra dev
uv run ruff check . && uv run pytest -qアーキテクチャのメモ、不変条件、リリースプロセスは AGENTS.md にあります。
ライセンス
MIT © Ishan Parihar
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search products, manage shopping carts, place orders, and retrieve order history from Amazon and Target accounts.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Amazon services through AI assistants, allowing users to search products, manage their cart, view order history, and place orders using natural language.7MIT
- FlicenseNot gradedqualityFmaintenanceEnables scraping Amazon product details and searching for products on Amazon through natural language queries. No API keys required as it scrapes publicly available Amazon pages.10
- AlicenseNot gradedqualityCmaintenanceEnables 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.742MIT
Related MCP Connectors
Shopping MCP for AI agents: search, compare, Amazon buy links. Auto-register.
Agent-native product catalog for AI shopping agents. 296M+ products, 28 countries.
Amazon brand, seller, niche & buy-box intelligence inside your own Claude or ChatGPT.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ishan-parihar/amazon-lyr'
If you have feedback or need assistance with the MCP directory API, please join our Discord server