MA

mansournorouzi/amazon-sp-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

53 stars 9 forks 品質 70 トレンド 8

mansournorouzi/amazon-sp-mcp は [https://github.com/mansournorouzi/amazon-sp-mcp. からインポートされた MCP サーバーの候補です

概要

mansournorouzi/amazon-sp-mcp は [https://github.com/mansournorouzi/amazon-sp-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

「Claude」と「Amazon Seller Central」をSP-API経由で接続するモデルコンテキストプロトコル(MCP)サーバー。 セールスデータ、在庫、レポート、手数料、払い戻し、分析のための自然な言語クエリを有効にします。

セキュリティ通知(2026)年3月31日: [axios]]npmパッケージは、サプライチェーン攻撃で簡単に承認されました。 悪意のあるバージョン 1.14.1 と 0.30.4] が 3 月 31 日に 00:21 と 03:15 UTC の間で公開され、npm が削除されます。 これらのバージョンは、リモートアクセストロイの木馬をインストールしたトロイの木馬依存性(plain-crypto-js)が含まれています。 このリポジトリの軸依存性は[1.14.0にピン留めされています(最後のクリーンバージョン)。 攻撃ウィンドウで[npm install]を実行した場合は、[node_modules]フォルダを削除し、再インストールします。 参照:Snykアドバイザリー、Datadog分析。

主要機能: AWS 認証不要

2023年10月現在、Amazon SP-APIはAWS IAM認証を必要としません。 このサーバーは、LWA (Amazon でログイン) OAuth 2.0 のみ* を使用しており、セットアップがシンプルでより安全です。

##特徴

コアオペレーション

  • オーダー:注文、注文の詳細、注文アイテムを入手
  • 在庫:FBAの在庫の要約および詳しい健康のメートル

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Amazon SP-API MCP Server

A Model Context Protocol (MCP) server that connects Claude to Amazon Seller Central via the SP-API. Enables natural language queries for sales data, inventory, reports, fees, reimbursements, and analytics.

Security Notice (March 31, 2026): The axios npm package was briefly compromised in a supply chain attack. Malicious versions 1.14.1 and 0.30.4 were published between 00:21 and 03:15 UTC on March 31 before npm removed them. These versions contained a trojanized dependency (plain-crypto-js) that installed a remote access trojan. This repo’s axios dependency has been pinned to 1.14.0 (the last clean version). If you ran npm install during the attack window, delete your node_modules folder and reinstall. See: Snyk advisory, Datadog analysis.

Key Feature: No AWS Credentials Required

As of October 2023, Amazon SP-API no longer requires AWS IAM credentials. This server uses LWA (Login with Amazon) OAuth 2.0 only, making setup simpler and more secure.

Features

Core Operations

  • Orders: Get orders, order details, and order items
  • Inventory: FBA inventory summary and detailed health metrics
  • Sales: Sales metrics by day/week/month with totals and averages

Financial Reports

  • Reimbursements: FBA reimbursements for lost/damaged inventory
  • Settlements: Payment disbursement details and breakdowns
  • Fee Estimates: Per-SKU FBA fee estimates
  • Storage Fees: Monthly storage charges
  • Long-term Storage Fees: LTSF for aged inventory

Analytics

  • Sales & Traffic: Sessions, page views, conversion rates, buy box %
  • Search Terms: Brand Analytics search term performance (requires Brand Registry)
  • Inventory Ledger: Track inventory movements and adjustments

Prerequisites

  • Node.js 18+
  • Amazon Seller Central account
  • SP-API application registered in Developer Central
  • LWA credentials (Client ID, Client Secret, Refresh Token)

Installation

git clone https://github.com/mansournorouzi/amazon-sp-mcp.git
cd amazon-sp-mcp
npm install
npm run build

Configuration

Create a .env file with your credentials:

# Copy the example
cp .env.example .env

Required environment variables:

# Login with Amazon (LWA) OAuth 2.0 Credentials
LWA_CLIENT_ID=amzn1.application-oa2-client.xxxxx
LWA_CLIENT_SECRET=your_lwa_client_secret
LWA_REFRESH_TOKEN=Atzr|your_refresh_token

# Seller Information
SELLER_ID=your_seller_id
MARKETPLACE_ID=ATVPDKIKX0DER

# SP-API Endpoint (optional, defaults to North America)
SP_API_ENDPOINT=https://sellingpartnerapi-na.amazon.com

Marketplace IDs

Region Marketplace ID
US Amazon.com ATVPDKIKX0DER
CA Amazon.ca A2EUQ1WTGCTBG2
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "amazon-seller": { "command": "node", "args": ["/path/to/amazon-sp-mcp/build/index.js"], "env": { "LWA_CLIENT_ID": "amzn1.application-oa2-client.xxxxx", "LWA_CLIENT_SECRET": "your_secret", "LWA_REFRESH_TOKEN": "Atzr|your_token", "SELLER_ID": "your_seller_id", "MARKETPLACE_ID": "ATVPDKIKX0DER", "SP_API_ENDPOINT": "https://sellingpartnerapi-na.amazon.com" } } } }