Skip to main content
AM

Amazon

v0.2.0-alpha.2API Keyalpha

Amazon Selling Partner API (SP-API). A maior plataforma de marketplace global — cobre US/EU/global + Amazon BR pra sellers cross-border da LatAm. Pedidos, listings, catálogo, estoque, relatórios, finanças, envio, notificações. Alpha no npm — auth LWA verificada; testes de integração pendentes.

24 ferramentas6 env vars🌐 GLOBALalpha — validação pendente

O que seu agente faz

O Amazon dá ao seu agente 24 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • list_ordersList orders from Amazon SP-API. Filters by marketplace, creation/update time, order status, fulfillment channel, etc. Returns a page of orders plus NextToken for pagination.
  • get_orderGet one order by AmazonOrderId (e.g. '902-3159896-1390916').
  • get_order_itemsGet the line items for an order by AmazonOrderId. Returns ASIN, SellerSKU, quantity, item price, taxes, promotions.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("list_orders", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-amazon@alpha

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "amazon": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-amazon@alpha"
      ],
      "env": {
        "AMAZON_LWA_CLIENT_ID": "<your_amazon_lwa_client_id>",
        "AMAZON_LWA_CLIENT_SECRET": "<your_amazon_lwa_client_secret>",
        "AMAZON_REFRESH_TOKEN": "<your_amazon_refresh_token>",
        "AMAZON_MARKETPLACE_ID": "<your_amazon_marketplace_id>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 24 ferramentas abaixo — teste list_orders primeiro.

Variáveis de ambiente · 6

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

AMAZON_LWA_CLIENT_ID
obrigatório

Login with Amazon (LWA) client_id from Seller Central > Developer Central (SP-API app).

AMAZON_LWA_CLIENT_SECRET
obrigatóriosecret

LWA client_secret paired with AMAZON_LWA_CLIENT_ID.

AMAZON_REFRESH_TOKEN
obrigatóriosecret

Long-lived seller-authorized refresh_token exchanged for 1-hour LWA access tokens used as x-amz-access-token.

AMAZON_MARKETPLACE_ID
obrigatório

Default marketplace id. BR: A2Q3Y263D00KWC, US: ATVPDKIKX0DER, MX: A1AM78C64UM0Y8, CA: A2EUQ1WTGCTBG2. Required by most endpoints; can be overridden per-call.

AMAZON_REGION
opcional

SP-API region: 'na' (default — Americas, incl. BR/US/MX/CA), 'eu' (Europe + India + MENA), 'fe' (Far East — JP/AU/SG).

AMAZON_SELLER_ID
opcional

Default sellerId (merchant token) used by Listings endpoints. Can be overridden per-call.

Ferramentas disponíveis · 24

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

READlist_orders
List orders from Amazon SP-API. Filters by marketplace, creation/update time, order status, fulfillment channel, etc. Returns a page of orders plus NextToken for pagination.
READget_order
Get one order by AmazonOrderId (e.g. '902-3159896-1390916').
READget_order_items
Get the line items for an order by AmazonOrderId. Returns ASIN, SellerSKU, quantity, item price, taxes, promotions.
READget_listings_item
Get a single listing item for the seller by SKU.
WRITEput_listings_item
Create or fully replace a listing item for the seller by SKU. Body must be a Listings Items submission (productType + attributes).
DELETEdelete_listings_item
Delete a listing item for the seller by SKU.
READsearch_catalog_items
Search the Amazon catalog for reference product data (ASIN, title, brand, images) by identifiers or keywords. Use this to map merchant SKUs to ASINs before creating listings.
READget_inventory_summary
Get FBA inventory summaries (fulfillable, inbound, reserved, researching, unfulfillable quantities) for the seller's SKUs.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-amazon` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Amazon — MCP server · 24 tools | CodeSpar