Amazon SP-API MCP Server
Allows interaction with Amazon Seller Central via SP-API, providing tools for managing orders, inventory, sales metrics, financial reports, and analytics.
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 SP-API MCP Server show my sales from last week"
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 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
axiosnpm package was briefly compromised in a supply chain attack. Malicious versions1.14.1and0.30.4were 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 to1.14.0(the last clean version). If you rannpm installduring the attack window, delete yournode_modulesfolder 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.
Related MCP server: Amazon Seller MCP
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 buildConfiguration
Create a .env file with your credentials:
# Copy the example
cp .env.example .envRequired 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.comMarketplace IDs
Region | Marketplace | ID |
US | Amazon.com | ATVPDKIKX0DER |
CA | Amazon.ca | A2EUQ1WTGCTBG2 |
MX | Amazon.com.mx | A1AM78C64UM0Y8 |
UK | Amazon.co.uk | A1F83G8C2ARO7P |
DE | Amazon.de | A1PA6795UKMFR9 |
JP | Amazon.co.jp | A1VC38T7YXB528 |
SP-API Endpoints
Region | Endpoint |
North America | |
Europe | |
Far East |
Usage with Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"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"
}
}
}
}Restart Claude Desktop after making changes.
Usage with Claude Code
Add .mcp.json to your project root:
{
"mcpServers": {
"amazon-seller": {
"command": "node",
"args": ["./build/index.js"],
"env": {
"LWA_CLIENT_ID": "${LWA_CLIENT_ID}",
"LWA_CLIENT_SECRET": "${LWA_CLIENT_SECRET}",
"LWA_REFRESH_TOKEN": "${LWA_REFRESH_TOKEN}",
"SELLER_ID": "${SELLER_ID}",
"MARKETPLACE_ID": "${MARKETPLACE_ID}",
"SP_API_ENDPOINT": "${SP_API_ENDPOINT}"
}
}
}
}Available Tools
Orders
Tool | Description |
| List orders by date range, status, fulfillment channel |
| Get details for a specific order |
| Get line items for an order |
Inventory
Tool | Description |
| FBA inventory levels and health |
| Detailed breakdown of reserved/unfulfillable quantities |
Sales
Tool | Description |
| Sales aggregates by day/week/month |
Financial Reports
Tool | Description |
| Lost/damaged inventory reimbursements |
| Payment disbursement details |
| Per-SKU fee breakdown |
| Monthly storage charges |
| LTSF for aged inventory (365+ days) |
Analytics
Tool | Description |
| Sessions, page views, conversion rates |
| Brand Analytics search terms (Brand Registry required) |
| Inventory movement summary |
Example Queries
Once configured, you can ask Claude questions like:
"What were my sales last week?"
"Show me my FBA reimbursements for January"
"What's my current inventory health?"
"Pull my settlement report for the last payment"
"What are my storage fees by SKU?"
"Which products have the best conversion rate?"
"Show me my long-term storage fees"
Development
# Build
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Lint
npm run lint
# Format
npm run formatArchitecture
src/
├── index.ts # MCP server entry point
├── config/
│ └── index.ts # Configuration & validation
├── auth/
│ └── token-manager.ts # LWA OAuth 2.0 token management
├── client/
│ ├── sp-api-client.ts # HTTP client (no AWS signing!)
│ └── rate-limiter.ts # SP-API rate limiting
├── tools/
│ ├── index.ts # Tool registry
│ ├── orders.ts # Orders API tools
│ ├── inventory.ts # Inventory API tools
│ ├── sales.ts # Sales API tools
│ └── reports/
│ ├── reimbursements.ts # FBA reimbursements
│ ├── settlements.ts # Settlement reports
│ ├── fees.ts # Fee reports
│ └── analytics.ts # Brand analytics
├── types/
│ └── sp-api.ts # TypeScript definitions
└── utils/
├── csv-parser.ts # Report CSV parsing
└── report-poller.ts # Async report pollingLicense
MIT
Resources
Available Tools
20 toolsget_catalog_itemB
Get detailed product information from the Amazon catalog by ASIN. Returns product title, brand, category, BSR (Best Sellers Rank), images, bullet points, and attributes.
Inputs: asin (required), includedData.
get_fba_fee_estimatesC
Get estimated FBA fees per SKU including referral fees, fulfillment fees, and other charges. Helpful for understanding per-unit costs and profitability analysis.
Inputs: no named parameters.
get_fba_inventory_detailsB
Get detailed FBA inventory information including breakdown of reserved quantities, unfulfillable reasons, and researching quantities. Provides deeper insight into inventory status.
Inputs: sellerSku, asin.
get_fba_reimbursementsA
Get FBA reimbursements for lost, damaged, or returned inventory within a date range. Shows reimbursement amounts, reasons, and affected products. Useful for tracking Amazon credits for inventory issues.
Inputs: startDate (required), endDate (required).
get_financial_event_groupsA
Get financial event groups (payment disbursements) from Amazon Seller Central. Shows grouped financial events including fund transfers, account balances, and settlement periods. Useful for tracking payments and reconciliation.
Inputs: financialEventGroupStartedAfter (required), financialEventGroupStartedBefore, maxResults, nextToken.
get_financial_eventsB
Get financial events for a date range from Amazon Seller Central. Returns all financial events including sales, refunds, fees, reimbursements, and adjustments. Events are grouped by type for easy analysis.
Inputs: postedAfter (required), postedBefore, maxResults, nextToken.
get_inventory_ledgerA
Get inventory ledger summary showing inventory movements including receipts, shipments, returns, adjustments, and balance changes over time. Helps track where inventory went.
Inputs: startDate (required), endDate (required).
get_inventory_summaryB
Get FBA inventory summary including quantity available, reserved, inbound, and unfulfillable. Shows inventory health at a glance for all or specific SKUs.
Inputs: sellerSkus, nextToken.
get_longterm_storage_feesB
Get long-term storage fees (LTSF) for inventory stored over 365 days. Shows aged inventory charges to help identify products incurring extra storage costs.
Inputs: startDate (required), endDate (required).
get_order_detailsA
Get detailed information about a specific Amazon order by order ID. Returns full order details including shipping address, buyer info, and order status.
Inputs: orderId (required).
get_order_financial_eventsA
Get all financial events for a specific Amazon order. Returns detailed financial breakdown including the sale amount, fees, taxes, shipping charges, and any adjustments for that order.
Inputs: orderId (required), maxResults, nextToken.
get_order_itemsB
Get the line items (products) for a specific Amazon order. Returns details about each item including ASIN, SKU, quantity, price, and tax.
Inputs: orderId (required).
get_ordersB
Retrieve a list of orders from Amazon Seller Central. You can filter by date range, status, and fulfillment channel. Returns order summaries including order ID, status, total, and buyer info.
Inputs: createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, +3 more.
get_sales_metricsA
Get aggregated sales metrics from Amazon Sales API. USE THIS for longer date ranges (7+ days, 30 days, etc). IMPORTANT: Data has a 24-48 hour delay, so the last 2 days will NOT have data. For yesterday/today sales, use get_sales_summary instead. Returns total sales, unit count, order count grouped by day/week/month.
Inputs: startDate (required), endDate (required), interval, asin, +1 more.
get_sales_summaryA
Get REAL-TIME sales summary calculated from orders data. USE THIS for yesterday/today sales (last 48 hours) since Sales API has a delay. Also useful when you need accurate recent data. Returns total sales, order count, units sold, and daily breakdown.
Inputs: startDate (required), endDate (required).
get_sales_traffic_reportB
Get detailed sales and traffic data including sessions, page views, conversion rate (unit session percentage), buy box percentage, and sales by ASIN. Essential for understanding product performance and conversion optimization.
Inputs: startDate (required), endDate (required), reportOptions.
get_search_terms_reportA
Get Brand Analytics search term report showing top search terms, search frequency rank, and click/conversion share by ASIN. Requires Brand Registry. Helps understand how customers find your products.
Inputs: startDate (required), endDate (required).
get_settlement_reportA
Get settlement report showing payment disbursements, including order sales, refunds, fees, and other charges. Provides detailed breakdown of what Amazon paid and deducted.
Inputs: startDate (required), endDate (required).
get_storage_feesA
Get FBA monthly storage fee charges by SKU. Shows storage costs, volume, and utilization for each product in Amazon fulfillment centers.
Inputs: startDate (required), endDate (required).
search_catalogA
Search the Amazon catalog by keywords or identifiers (ASIN, SKU, UPC, EAN). Returns a list of matching items with summaries. Useful for finding products or looking up items by identifier.
Inputs: keywords, identifiers, identifiersType, includedData, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Tools are mostly distinct, with some closely related sales reporting functions (get_sales_metrics, get_sales_summary, get_sales_traffic_report) but descriptions clearly differentiate their use cases. No significant ambiguity.
All tools follow a consistent 'get_' prefix with descriptive noun phrases in lowercase with underscores. Pattern is uniform across the entire set.
20 tools cover the major areas of Amazon SP-API (catalog, inventory, orders, finances, sales) without being excessive. The count is well-scoped for the server's purpose.
Covers core seller operations comprehensively. Minor gaps exist (e.g., lack of listing management or FBA shipment creation), but the main workflows are supported.
Maintenance
Related MCP Connectors
Connect Amazon Seller Central to Claude or ChatGPT via MCP. Orders, inventory, pricing, fees, FBA.
Amazon Seller Central, Ads and Vendor Central in ChatGPT & Claude. 106 tools; writes need approval.
Amazon Seller Central and Ads inside Claude, ChatGPT or Grok. Fees from your own settlements.
Amazon Seller Central and Ads inside Claude, ChatGPT or Grok. Fees from your own settlements.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceExposes Amazon Selling Partner API tools for sellers to manage orders, inventory, listings, pricing, analytics, and reports via natural language.1-
- FlicenseAqualityCmaintenanceConnects Claude to your Amazon Seller Central account via the Selling Partner API, enabling queries for recent orders, sales summaries, FBA inventory, and financial events.4-
- FlicenseNot gradedqualityDmaintenanceConnects Claude to your MercadoLibre seller account, enabling natural language management of listings, orders, and shipments.-
- AlicenseNot gradedqualityCmaintenanceEnables sellers to interact with Amazon Selling Partner API and Advertising API data—orders, inventory, pricing, ads, reports, and more—through MCP clients like Claude and Cursor.MIT