Skip to main content
Glama
Amazon Product Research MCP Server

Amazon Product Research MCP Server

by ludodelot

Amazon Product Research MCP Server

Сервер Model Context Protocol (MCP), который предоставляет AI-ассистенту (например, Claude Code) инструменты для поиска и просмотра данных о товарах Amazon через stdio.

Возможности

  • search_products — поиск товаров по ключевому слову.

  • get_product — получение полных сведений о товаре по ID.

  • Написан на строгом TypeScript с валидацией во время выполнения с помощью Zod.

  • Покрыт модульными тестами на Vitest.

  • Линтуется с помощью ESLint (typescript-eslint) и форматируется с помощью Prettier.

Related MCP server: Amazon Product Intelligence Agent

Структура проекта

src/
├── index.ts              # Entry point: wires the server to a stdio transport
├── server.ts              # Registers MCP tools on the McpServer instance
├── types/
│   └── product.ts         # Shared Product type
└── tools/
    ├── product-data.ts     # In-memory product catalog (mock data)
    ├── search-products.ts  # search_products tool: input schema + handler
    └── get-product.ts      # get_product tool: input schema + handler
tests/
├── search-products.test.ts
└── get-product.test.ts

Требования

  • Node.js 20+

  • npm

Начало работы

npm install
npm run dev

Это запускает сервер через stdio с помощью tsx, готовый к подключению MCP-клиентом.

Подключение из Claude Code

claude mcp add amazon-research -- npx tsx /absolute/path/to/amazon-product-research-mcp/src/index.ts

Скрипты

Команда

Описание

npm run dev

Запуск сервера напрямую из исходного кода TypeScript.

npm run build

Проверка типов и компиляция в dist/.

npm start

Запуск скомпилированного сервера из dist/.

npm test

Запуск набора модульных тестов (Vitest).

npm run lint

Линтинг кодовой базы с помощью ESLint.

npm run format

Форматирование кодовой базы с помощью Prettier.

npm run format:check

Проверка форматирования без внесения изменений.

Справочник по инструментам

search_products

Поиск товаров Amazon по ключевому слову (сопоставление с названием товара без учёта регистра).

Входные данные

{ "query": "kindle" }

Выходные данные

[
  {
    "id": "kindle-paperwhite",
    "name": "Kindle Paperwhite",
    "price": 169.99,
    "currency": "USD",
    "rating": 4.7,
    "reviewCount": 12543,
    "description": "A high-resolution e-reader designed for reading comfortably indoors and outdoors."
  }
]

get_product

Получение полных сведений о товаре по его ID.

Входные данные

{ "product_id": "kindle-paperwhite" }

Выходные данные: один объект Product или null, если подходящего товара нет.

Данные

Данные о товарах сейчас хранятся в небольшом имитированном каталоге в памяти (src/tools/product-data.ts), а не берутся из реального Amazon API — это делает проект самодостаточным и безопасным для запуска без каких-либо учётных данных. В .env.example описаны переменные окружения, которые понадобятся для реальной интеграции с API.

Лицензия

MIT © Ludovic Delot Bravo

Available Tools

2 tools
get_productC

Get detailed information about an Amazon product.

Inputs: product_id (required).

search_productsB

Search Amazon products by keyword.

Inputs: query (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools are clearly distinct: search_products finds products by keyword, while get_product retrieves detailed information for a specific product. No overlap or ambiguity exists between them.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern using snake_case (search_products, get_product), making the naming predictable and easily understandable.

    Tool Count3/5

    With only 2 tools, the set feels thin for a product research server. While it covers the basic search-and-detail flow, it lacks breadth seen in more comprehensive servers, but it is not extreme enough to be a 1 or 2.

    Completeness3/5

    The tool surface provides the minimum necessary for product research—searching and retrieving details—but notably lacks capabilities like browsing categories, accessing reviews, or comparing products, which are expected in a full research context.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables large language models to directly access and analyze Amazon product information, including product details, variants, and reviews.
      -
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server connecting AI agents to Google, YouTube, Amazon, Walmart, TikTok, and Reddit. 21 tools for web search, product lookup, video discovery, and social media analysis.
      21
      5,283 npm
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Amazon Selling Partner API and Advertising API, enabling access to orders, inventory, pricing, ads, and reports via natural language.
      2
      MIT