Skip to main content
Glama
Amazon Seller MCP

Amazon Seller MCP

by bhavykhatri

Amazon Seller MCP

npm version npm downloads VS Code installs license CI

āœ… Published on npm as seller-central-mcp — run instantly with npx seller-central-mcp (no clone or build needed).

🧩 Also available as a VS Code extension for one-click install with secure credential storage.

A Model Context Protocol (MCP) server for the Amazon Selling Partner API (SP-API). It exposes seller data and listing operations as MCP tools so any MCP-compatible client (VS Code, Claude Desktop, etc.) can query and manage your Amazon catalogue.

Works with any SP-API marketplace and region — set SP_API_MARKETPLACE_ID and SP_API_ENDPOINT for your target (defaults to India / amazon.in). LWA-only auth — no AWS SigV4 signing required.

Features

Tools exposed by this server:

Tool

Description

get_seller_profile

Seller marketplace participations (store name, marketplace, currency).

list_listings

Real-time list of catalogued SKUs (searchListingsItems).

get_listing

Full details for one SKU (summaries, offers, issues, attributes).

upsert_listing

Create or update a listing (PUT a product type + attributes).

update_price

Set selling price (and optional MRP) for a SKU.

set_quantity

Set fulfillment quantity for a SKU.

delete_listing

Delete a listing (destructive — requires confirm: true).

get_product_type_definition

Fetch a product type schema (required attributes + enums).

get_orders

List orders (default: last 30 days).

get_order_items

Line items for a specific order.

request_report

Create a report request (returns a reportId).

get_report

Poll a report's processing status.

download_report

Download + decompress a report document.

submit_feed

Submit a feed (create doc → upload → create feed) for bulk operations.

get_feed

Poll a feed's processing status.

Related MCP server: Ozon API MCP Server

Requirements

  • Node.js >= 18

  • Amazon SP-API access (LWA app credentials + refresh token). See the SP-API docs.

Install

Run directly from npm (no clone needed):

npx seller-central-mcp

Or install globally:

npm install -g seller-central-mcp
seller-central-mcp

Provide credentials via environment variables (see Configuration).

Setup (from source)

npm install
cp .env.example .env   # fill in your credentials
npm run build

Configuration

Set these via .env (local dev) or via the MCP host's env block:

Variable

Description

SP_API_CLIENT_ID

LWA app client ID (amzn1.application-oa2-client...)

SP_API_CLIENT_SECRET

LWA app client secret

SP_API_REFRESH_TOKEN

Long-lived refresh token (a long opaque string)

SP_API_SELLER_ID

Merchant Token (Seller ID, starts with A)

SP_API_MARKETPLACE_ID

Marketplace ID (default India A21TJRUUN4KGV)

SP_API_ENDPOINT

Regional endpoint for your marketplace (default EU, used by India)

SP_API_TOKEN_ENDPOINT

LWA token endpoint (default https://api.amazon.com/auth/o2/token)

Marketplaces & regions

This server is not tied to India — point it at any marketplace by setting the two variables above:

Region

SP_API_ENDPOINT

Example marketplaces

NA

https://sellingpartnerapi-na.amazon.com

US ATVPDKIKX0DER, CA, MX, BR

EU

https://sellingpartnerapi-eu.amazon.com

UK, DE, FR, IT, ES, IN A21TJRUUN4KGV, AE, SA

FE

https://sellingpartnerapi-fe.amazon.com

JP, AU, SG

Full list: Amazon marketplace IDs. Defaults live in src/config.ts.

Never commit .env — it is git-ignored.

Run

npm start          # run the built server (stdio)
npm run dev        # watch mode with tsx

VS Code extension

Prefer a one-click setup? Install the Seller Central MCP VS Code extension. It registers this server automatically and stores your SP-API credentials in encrypted SecretStorage — no manual mcp.json or .env editing.

  1. Install the extension (from the Marketplace, or the packaged .vsix in vscode-extension/).

  2. Run Seller Central MCP: Set Credentials from the Command Palette.

  3. The Seller Central MCP server appears in the MCP view — use its tools from Chat.

Under the hood it just launches npx -y seller-central-mcp with your credentials injected as environment variables. See vscode-extension/README.md for details.

Use with VS Code (manual)

This repo ships a .vscode/mcp.json. Open it in VS Code and start the server from the MCP view, or point your MCP host at:

{
  "servers": {
    "amazon-seller": {
      "type": "stdio",
      "command": "node",
      "args": ["dist/index.js"],
      "env": { "SP_API_CLIENT_ID": "...", "SP_API_CLIENT_SECRET": "...", "SP_API_REFRESH_TOKEN": "...", "SP_API_SELLER_ID": "..." }
    }
  }
}

Use with Claude, Codex, Cursor & other MCP hosts

This is a standard MCP server, so it works with any MCP-compatible host — not just VS Code. The VS Code extension is only a convenience wrapper for VS Code/Copilot; other hosts configure the same npx seller-central-mcp server directly in their own config files.

Every host uses the same four required env vars (SP_API_CLIENT_ID, SP_API_CLIENT_SECRET, SP_API_REFRESH_TOKEN, SP_API_SELLER_ID), plus optional SP_API_MARKETPLACE_ID / SP_API_ENDPOINT.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "amazon-seller": {
      "command": "npx",
      "args": ["-y", "seller-central-mcp"],
      "env": { "SP_API_CLIENT_ID": "...", "SP_API_CLIENT_SECRET": "...", "SP_API_REFRESH_TOKEN": "...", "SP_API_SELLER_ID": "...", "SP_API_MARKETPLACE_ID": "A21TJRUUN4KGV", "SP_API_ENDPOINT": "https://sellingpartnerapi-eu.amazon.com" }
    }
  }
}

Claude Code (CLI)

claude mcp add amazon-seller \
  -e SP_API_CLIENT_ID=... -e SP_API_CLIENT_SECRET=... \
  -e SP_API_REFRESH_TOKEN=... -e SP_API_SELLER_ID=... \
  -- npx -y seller-central-mcp

OpenAI Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.amazon-seller]
command = "npx"
args = ["-y", "seller-central-mcp"]
env = { SP_API_CLIENT_ID = "...", SP_API_CLIENT_SECRET = "...", SP_API_REFRESH_TOKEN = "...", SP_API_SELLER_ID = "...", SP_API_MARKETPLACE_ID = "A21TJRUUN4KGV", SP_API_ENDPOINT = "https://sellingpartnerapi-eu.amazon.com" }

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) — same shape as Claude Desktop:

{
  "mcpServers": {
    "amazon-seller": {
      "command": "npx",
      "args": ["-y", "seller-central-mcp"],
      "env": { "SP_API_CLIENT_ID": "...", "SP_API_CLIENT_SECRET": "...", "SP_API_REFRESH_TOKEN": "...", "SP_API_SELLER_ID": "..." }
    }
  }
}

Only VS Code (via the extension) stores credentials in encrypted SecretStorage. For the hosts above, credentials live in their config env blocks — keep those files private and out of version control.

Project structure

mcp/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts            # server entry (stdio)
│   ā”œā”€ā”€ config.ts           # env loading + validation
│   ā”œā”€ā”€ spapi/
│   │   └── client.ts       # SP-API client (LWA auth + request wrapper)
│   └── tools/
│       ā”œā”€ā”€ index.ts        # registers all tools
│       ā”œā”€ā”€ shared.ts       # result helpers
│       ā”œā”€ā”€ sellers.ts      # get_seller_profile
│       ā”œā”€ā”€ listings.ts     # list/get/upsert/update_price/set_quantity/delete
│       ā”œā”€ā”€ definitions.ts  # get_product_type_definition
│       ā”œā”€ā”€ orders.ts       # get_orders, get_order_items
│       ā”œā”€ā”€ reports.ts      # request/get/download report
│       └── feeds.ts        # submit_feed, get_feed
ā”œā”€ā”€ .vscode/mcp.json
ā”œā”€ā”€ .github/copilot-instructions.md
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ package.json
└── tsconfig.json

Security

  • Credentials are read from environment variables only; nothing is logged to stdout (reserved for the MCP protocol).

  • delete_listing is destructive and requires an explicit confirm: true argument.

License

MIT Ā© Bhavy Khatri

Available Tools

15 tools
delete_listingDelete a listingA
Destructive

DESTRUCTIVE: permanently deletes the listing for a SKU. Requires confirm=true. Tip: if the listing has an active offer, set quantity to 0 first, then delete.

Inputs: sku (required), confirm (required).

download_reportDownload report documentB

Downloads and decompresses a report document by its reportDocumentId, returning the text.

Inputs: reportDocumentId (required).

get_feedGet feed statusC

Returns a feed's processing status. When DONE, use resultFeedDocumentId with download_report-style retrieval.

Inputs: feedId (required).

get_listingGet a listingA

Full details for one SKU: summaries (ASIN/status), attributes, offers, issues, and fulfillment availability.

Inputs: sku (required), includedData.

get_order_itemsGet order itemsC

Returns the line items for a specific order.

Inputs: orderId (required).

get_ordersGet ordersA

Lists orders. Defaults to orders created in the last 30 days. Note: full buyer/address data requires the restricted PII role.

Inputs: nextToken, maxResults, createdAfter, orderStatuses, +1 more.

get_product_type_definitionGet product type definitionA

Fetches the product type definition metadata (includes a link to the JSON schema with required attributes and enums).

Inputs: productType (required), locale.

get_reportGet report statusA

Returns a report's processing status. When DONE, use the reportDocumentId with download_report.

Inputs: reportId (required).

get_seller_profileGet seller profileA

Returns the seller's marketplace participations (store name, marketplace, currency, participation status).

Inputs: no named parameters.

list_listingsList all listingsA

Real-time list of catalogued SKUs for the seller (searchListingsItems). Paginates through all pages.

Inputs: no named parameters.

request_reportRequest a reportA

Creates a report request and returns a reportId. Example types: GET_MERCHANT_LISTINGS_ALL_DATA, GET_FLAT_FILE_OPEN_LISTINGS_DATA, GET_FBA_INVENTORY_PLANNING_DATA.

Inputs: reportType (required).

set_quantitySet listing quantityB

Sets the fulfillment quantity for a SKU (merchant-fulfilled / DEFAULT channel).

Inputs: sku (required), quantity (required), productType (required).

submit_feedSubmit a feedA
Destructive

Submits a feed in one call: creates a feed document, uploads the content, and creates the feed. Common for flat-file / JSON_LISTINGS_FEED bulk operations. Returns the feedId to poll with get_feed. This WRITES to your account.

Inputs: content (required), feedType (required), contentType.

update_priceUpdate listing priceA

Convenience: sets the selling price (and optional MRP) for a SKU via a purchasable_offer PATCH, without a full upsert.

Inputs: sku (required), price (required), productType (required), mrp, +1 more.

upsert_listingCreate or update a listingA

Creates or updates a listing via PUT. Provide productType, sku, and the full attributes object. Use requirements=LISTING for a complete/offer listing or LISTING_PRODUCT_ONLY for a product-only draft.

Inputs: sku (required), attributes (required), productType (required), requirements.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have distinct purposes and clear descriptions. Potential confusion between get_orders and get_order_items (one lists orders, the other fetches line items for a specific order) is mitigated by context, but get_ and list_ verbs could be more consistently separated.

    Naming Consistency4/5

    Names generally follow verb_noun pattern with verbs like get, list, upsert, set, delete, update, request, submit. Minor inconsistency: list_ is used for plural collections (list_listings, list_orders) while get_ is used for singular resources, but get_orders is plural and list_listings is plural, creating slight overlap.

    Tool Count4/5

    15 tools is at the upper bound of the ideal range. They cover a reasonable breadth of seller operations (profile, listings, orders, reports, feeds) without being overwhelming, though some consolidation could be considered.

    Completeness4/5

    The tool set covers major listing CRUD, order listing, report/feed submission and retrieval. Missing a dedicated 'get_order' for full order details (only line items are available) and no order update/shipment actions, but core workflows are represented.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers