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) 服务器,通过 stdio 为 AI 助手(例如 Claude Code)提供搜索和查看 Amazon 产品数据的工具。

功能

  • 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

这会使用 tsx 通过 stdio 启动服务器,可供 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