MA

madebydia/amazon-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 9 forks 质量 75 趋势 14MIT

为你的亚马逊购物车提供MCP服务器。为 Poke.com 设计,但对所有人都适用。

概览

本地MCP(模型上下文协议)服务器,使AI助手通过浏览器自动化与您的个人亚马逊购物车交互。支持Claude Desktop、Poke及任何兼容MCP的客户端。 - 确保其使用符合亚马逊服务条款 - 本项目不用于商业自动化或转售 - 作者不承担亚马逊政策违规或后果的任何责任 - - 这是一个独立的非官方工具 - 亚马逊可能随时更改其网站或政策,可能导致功能崩溃 - 过度自动化可能导致账户限制或封禁 使用该软件即表示您已承认并接受这些风险。 - 🔍 - 通过搜索查询查找产品 - 🛒 - 自动将商品添加到您的亚马逊购物车 - 👀 - 检查当前购物车内容和小计 - 🔐 - 会话保存本地以便无缝使用 - 🌐 - 通过ngrok隧道进行持有令牌认证 - 节点。

概述(AI 翻译)

本地MCP(模型上下文协议)服务器,使AI助手通过浏览器自动化与您的个人亚马逊购物车交互。支持Claude Desktop、Poke及任何兼容MCP的客户端。

⚠️ 重要免责声明

该工具使用浏览器自动化与 Amazon.com 交互。

  • 用户需完全负责确保其使用符合亚马逊服务条款
  • 本项目仅供个人、教育用途**——不用于商业自动化或转售
  • 使用自负风险 - 作者不承担任何违反亚马逊政策或其后果的责任
  • 与亚马逊无关 - 这是一个独立的非官方工具
  • 亚马逊可能随时更改其网站或政策,可能导致功能中断
  • 过度自动化可能导致账户限制或封禁

使用该软件即表示您已承认并接受这些风险。

特色

  • 🔍 搜索亚马逊 - 通过搜索查询查找产品
  • 🛒 加入购物车 - 自动将商品添加到您的亚马逊购物车
  • 👀 查看购物车 - 检查当前购物车内容和小计
  • 🔐 登录持久化 - 会话保存在本地以便无缝使用

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Amazon Cart MCP Server

Local MCP (Model Context Protocol) server that enables AI assistants to interact with your personal Amazon cart through browser automation. Works with Claude Desktop, Poke, and any MCP-compatible client.

⚠️ Important Disclaimer

This tool uses browser automation to interact with Amazon.com.

  • Users are solely responsible for ensuring their use complies with Amazon’s Terms of Service
  • This project is for personal, educational use only - not for commercial automation or reselling
  • Use at your own risk - the authors assume no liability for any violations of Amazon’s policies or consequences thereof
  • Not affiliated with Amazon - this is an independent, unofficial tool
  • Amazon may change their website or policies at any time, potentially breaking functionality
  • Excessive automation may result in account restrictions or bans

By using this software, you acknowledge and accept these risks.

Features

  • 🔍 Search Amazon - Find products by search query
  • 🛒 Add to Cart - Add items to your Amazon cart automatically
  • 👀 View Cart - Check current cart contents and subtotal
  • 🔐 Login Persistence - Session saved locally for seamless use
  • 🌐 Secure Access - Bearer token authentication via ngrok tunnel

Quick Start

Prerequisites

  • Node.js v20 or higher
  • npm or yarn
  • ngrok account (free tier works)

Installation

  1. Clone the repository:

    git clone https://github.com/madebydia/amazon-mcp-server.git
    cd amazon-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Configure environment:

    cp .env .env.local  # Optional: keep your settings separate
    

    Edit .env and set:

    • AUTH_TOKEN - Generate a secure random token (required)
    • HEADLESS=false - For first-time login
    • AMAZON_DOMAIN=amazon.com - Or your local Amazon domain
  4. Build the project:

    npm run build
    
  5. Start the server:

    npm start
    
  6. First-time login:

    • A Chrome browser window will open
    • Log into your Amazon account manually
    • Session will be saved in ./user-data/
    • After logging in once, you can:
      • Stop the server (Ctrl+C)
      • Set HEADLESS=true in .env
      • Restart with headless mode
  7. Expose via ngrok (in a separate terminal):

    npm run tunnel
    # Note the HTTPS URL (e.g., https://abc123.ngrok.io)
    

Connecting to Poke

  1. Copy your ngrok URL from the terminal

  2. In Poke, add a custom MCP integration:

    • URL: https://your-ngrok-url.ngrok.io/sse
    • API Key: Your AUTH_TOKEN from .env
    • Type: MCP Server
  3. Important: Always use the /sse endpoint!

  4. Test the connection by asking Poke:

    • “What tools do you have?”
    • “Search Amazon for wireless mouse”
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "amazon-cart": { "command": "node", "args": ["/absolute/path/to/amazon-mcp-server/dist/server.js"], "env": { "AUTH_TOKEN": "your-token-here", "HEADLESS": "true", "AMAZON_DOMAIN": "amazon.com" } } } }