Logo Amazon Order History CSV Download MCP

Amazon Order History CSV Download MCP

Cộng đồng
marcusquinn

Download Amazon Order History As Orders & Items CSV files, plus simplified CSV file versions for importing to your accounting software. Supports Amazon United States (US), United Kingdom, Canada, Germany, France, Spain, Italy, Netherlands, Japan, Australia, Mexico, India, UAE, Saudi Arabia, Ireland, Belgium

Nhà phát hànhmarcusquinn
Kho mãamazon-order-history-csv-download-mcp
Ngôn ngữTypeScript
Bản fork
10
Sao
19
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Amazon Order History CSV Download MCP cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    19 sao và 10 bản fork từ kho mã được liên kết.

Amazon Order History CSV Download MCP

GitHub Actions License: MIT Version MCP AGENTS.md

MCP (Model Context Protocol) server for downloading Amazon order history as CSV files. Supports orders, items, shipments, and transactions export across 16 Amazon regional sites.

Features

  • 4 Export Types: Orders summary, item details, shipment tracking, payment transactions
  • 16 Amazon Regions: US, UK, Canada, Germany, France, Spain, Italy, and more
  • Browser Automation: Uses Playwright for reliable data extraction
  • AI Assistant Integration: Works with Claude, GPT, and other MCP-compatible assistants
  • Flexible Date Ranges: Export by year, date range, or recent months

Quick Start

Installation

Install the MCP server globally from npm, then install Chromium for Playwright:

bash
npm install --global amz-order-history-csv-mcp
npx playwright install chromium

You can also run the server without a global installation:

bash
npx --yes playwright install chromium
npx --yes amz-order-history-csv-mcp

Node.js 18 or newer is required.

For source development, clone the repository and build it locally:

bash
git clone https://github.com/marcusquinn/amazon-order-history-csv-download-mcp.git
cd amazon-order-history-csv-download-mcp
npm ci
npm run build
npx playwright install chromium

Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

json
{
  "mcpServers": {
    "amazon-orders": {
      "command": "npx",
      "args": ["--yes", "amz-order-history-csv-mcp"]
    }
  }
}

Source checkouts can instead use node with the absolute path to dist/index.js.

Usage

Once configured, you can ask your AI assistant:

  • "Download my Amazon orders from 2024 as CSV"
  • "Export all items I purchased on Amazon UK this year"
  • "Get shipment tracking for my recent Amazon orders"
  • "Export my Amazon payment transactions for tax purposes"
  • "What's my Amazon gift card balance?"
  • "Show me all my Amazon transactions from last month"

Supported Regions

RegionDomainCurrency
United Statesamazon.comUSD
United Kingdomamazon.co.ukGBP
Canadaamazon.caCAD
Germanyamazon.deEUR
Franceamazon.frEUR
Spainamazon.esEUR
Italyamazon.itEUR
Netherlandsamazon.nlEUR
Japanamazon.co.jpJPY
Australiaamazon.com.auAUD
Mexicoamazon.com.mxMXN
Indiaamazon.inINR
UAEamazon.aeAED
Saudi Arabiaamazon.saSAR
Irelandamazon.ieEUR
Belgiumamazon.com.beEUR

Export Types

Orders (export_amazon_orders_csv)

Fast order summary from the order list page (~0.5s per 10 orders). Best for browsing and basic reporting.

ColumnDescription
Order IDAmazon order identifier (XXX-XXXXXXX-XXXXXXX)
Order DateDate order was placed (YYYY-MM-DD)
TotalOrder total amount
StatusDelivery status (Delivered, Shipped, etc.)
ItemsNumber of items in order
Address Line 1-7Shipping address (up to 7 lines)
Subscribe & SaveSubscription frequency if applicable
PlatformAlways "amazon"
RegionAmazon region code (us, uk, de, etc.)
Order URLLink to order details page

Items (export_amazon_items_csv)

Detailed item-level export with full order context (~2s per order). Best for expense tracking and accounting.

ColumnDescription
Order IDParent order identifier
Order DateDate order was placed
ASINAmazon product identifier
Product NameFull product title
ConditionNew, Used, etc.
QuantityNumber of units
Unit PricePrice per item
Item TotalQuantity × Unit Price
SellerSeller/merchant name
Subscribe & SaveSubscription frequency
Order SubtotalPre-tax/shipping subtotal
Order ShippingShipping cost
Order TaxSales tax amount
Order VATVAT amount (UK/EU)
Order PromotionDiscount amount
Order TotalFinal order total
Order Grand TotalIncluding all fees
Order StatusDelivery status
RecipientShip-to name
Address Line 1-7Full shipping address
Payment MethodCard type (Visa, Mastercard, etc.)
Card Last 4Last 4 digits of card
Product URLLink to product page
Image URLProduct image URL
Order URLLink to order details
RegionAmazon region code

Shipments (export_amazon_shipments_csv)

Shipment and tracking information (~4s per order, +2s with fetch_tracking_numbers). Best for delivery tracking.

ColumnDescription
Order IDParent order identifier
Order DateDate order was placed
Shipment IDUnique shipment identifier
StatusShipment status text
DeliveredYes/No/Unknown
Tracking IDCarrier tracking number
CarrierCarrier name (Royal Mail, DPD, etc.)
Tracking URLLink to carrier tracking
Items in ShipmentNumber of items
Item NamesList of product names
Payment AmountAmount charged (falls back to order total)
RefundRefund amount if any
RegionAmazon region code

Note: Set fetch_tracking_numbers: true to visit ship-track pages and extract actual carrier tracking IDs (e.g., "AZ218181365JE") and carrier names. Without this option, only Amazon's internal tracking URLs are captured.

Transactions (export_amazon_transactions_csv)

Payment transaction details for financial reconciliation.

ColumnDescription
Transaction DateDate of charge
Order ID(s)Associated order(s)
Payment MethodCard/payment type
Card InfoLast 4 digits
AmountTransaction amount
CurrencyCurrency code

Gift Cards (export_amazon_gift_cards_csv)

Gift card activity and balance history.

ColumnDescription
DateTransaction date
DescriptionActivity description
Typeadded/applied/refund
AmountTransaction amount
Closing BalanceBalance after transaction
Order IDAssociated order if any
Claim CodeGift card claim code
Serial NumberGift card serial number
CurrencyCurrency code
RegionAmazon region code

Additional Tools

Query Tools

ToolDescription
get_amazon_ordersFetch orders with optional items/shipments
get_amazon_order_detailsGet full details for a specific order
get_amazon_transactionsFetch all transactions from transactions page
get_amazon_gift_card_balanceGet current balance and history
get_amazon_gift_card_transactionsGet detailed gift card activity
check_amazon_auth_statusCheck if browser is logged in

Invoice PDF download (download_amazon_invoice)

Downloads an A4 PDF for one authenticated order after confirming that the print page contains both the requested order ID and invoice-specific content.

json
{
  "order_id": "123-4567890-1234567",
  "region": "uk",
  "output_path": "/absolute/path/to/invoice.pdf"
}

output_path is optional and must be absolute when supplied. The default is ~/Downloads/amazon-{region}-invoice-{order_id}.pdf; its parent directory is created when needed. A successful response reports the saved path and exact bytes. Authentication redirects, Amazon error pages, mismatched invoice identity, rendering failures, and write failures return an MCP error without publishing a partial PDF or replacing a prior file.

Transactions Page (get_amazon_transactions)

Extracts ALL payment transactions from Amazon's dedicated transactions page (/cpe/yourpayments/transactions). Much faster than extracting from individual order pages.

json
{
  "region": "us",
  "start_date": "2024-01-01",
  "end_date": "2024-12-31"
}

Gift Card Balance (get_amazon_gift_card_balance)

Gets your current Amazon gift card balance and recent activity from /gc/balance.

json
{
  "region": "us"
}

Returns:

  • Current balance
  • Recent gift card activity (credits/debits)
  • Associated order IDs

Authentication Check (check_amazon_auth_status)

Verify if the browser session is authenticated before running exports.

json
{
  "region": "uk"
}

Returns authentication status, username if logged in, or login URL if not.

Timeouts & Large Order Histories

When exporting large order histories (100+ orders), the extraction process can take several minutes. MCP clients typically have timeout limits that may need adjustment.

Estimated Processing Times

OrdersEstimated Time
10~15 seconds
50~1.5 minutes
100~3 minutes
500~15 minutes

Recommendations

  1. Use max_orders parameter to limit extraction scope
  2. Export by year rather than entire history
  3. Configure client timeouts if needed (see below)

Client Timeout Configuration

For OpenCode/Claude Desktop, the timeout is typically set in the MCP client configuration. If you see MCP error -32001: Maximum total timeout exceeded, you may need to:

  1. Use smaller batches with max_orders
  2. Configure your MCP client's maxTotalTimeout setting (if available)
  3. The server sends progress notifications which can reset timeouts if resetTimeoutOnProgress is enabled in your client

Progress Notifications

The server sends progress notifications during extraction:

  • Order X/Y (order-id) - ETA: ~Xm Xs

These help track progress and can reset client timeouts if configured.

Development

bash
# Run in development mode
npm run dev

# Run tests
npm test

# Type checking
npm run typecheck

# Linting
npm run lint

Testing with MCP Inspector

For development and debugging, use the official MCP Inspector tool instead of running through an AI assistant. This provides:

  • Direct tool invocation - Call MCP tools directly with custom parameters
  • Real-time response viewing - See full JSON responses without AI interpretation
  • Faster iteration - No waiting for AI to process requests
  • Debug visibility - View raw server output and errors

Quick Start

bash
# Install MCP Inspector globally
npm install -g @modelcontextprotocol/inspector

# Run inspector with this server
npx @modelcontextprotocol/inspector node dist/index.js

Then open http://localhost:5173 in your browser to:

  1. See all available tools listed
  2. Click a tool to view its schema
  3. Fill in parameters and execute
  4. View the raw JSON response

Example Test Workflow

  1. Test authentication: Call check_amazon_auth_status with {"region": "uk"}
  2. Test order fetch: Call get_amazon_orders with a small date range
  3. Test order details: Call get_amazon_order_details with a known order ID
  4. Test exports: Call any export_amazon_*_csv tool

This is the recommended approach for:

  • Debugging extraction issues
  • Verifying new features work correctly
  • Testing region-specific behavior
  • Investigating error responses

Architecture

This project uses a plugin architecture designed for extensibility:

  • Core Framework: Shared utilities for CSV, dates, currencies, browser automation
  • Platform Plugins: Amazon-specific extraction logic (future: eBay, AliExpress, etc.)

See AGENTS.md for detailed architecture documentation.

Related Projects

  • QuickFile MCP - MCP server for QuickFile UK accounting software. Use Amazon order exports with QuickFile for expense tracking and VAT reconciliation.
  • OpenCode - Open-source AI coding assistant with MCP support
  • QuickFile - UK accounting software
  • QuickFile API - QuickFile API documentation
  • Model Context Protocol - Protocol specification for AI tool integration
  • AI DevOps Framework - Comprehensive AI infrastructure management

Credits

This project was inspired by AZAD, a Chrome extension for Amazon order history export. This is an original implementation built as an MCP server - not a fork or derivative work.

See CREDITS.md for full acknowledgments.

License

MIT License - see LICENSE for details.

Contributing

Contributions welcome! Please read AGENTS.md for development guidelines.

Cài đặt

TypingMind
{
  "mcpServers": {
    "amazon-order-history-csv-download-mcp": {
      "command": "node",
      "args": [
        "/path/to/amazon-order-history-csv-download-mcp/dist/index.js"
      ]
    }
  }
}

Dùng MCP Amazon Order History CSV Download MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Amazon Order History CSV Download MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm Amazon Order History CSV Download MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Amazon Order History CSV Download MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "amazon-order-history-csv-download-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "amazon-order-history-csv-download-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Amazon Order History CSV Download MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Amazon Order History CSV Download MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng Amazon Order History CSV Download MCP giúp tôi làm việc này không?
Amazon Order History CSV Download MCP
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng Amazon Order History CSV Download MCP.

Câu hỏi thường gặp

Máy chủ MCP Amazon Order History CSV Download MCP dùng để làm gì?

Amazon Order History CSV Download MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Amazon Order History CSV Download MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Amazon Order History CSV Download MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Amazon Order History CSV Download MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Amazon Order History CSV Download MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Amazon Order History CSV Download MCP với TypingMind?

Amazon Order History CSV Download MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Amazon Order History CSV Download MCP cung cấp những công cụ nào trong TypingMind?

Amazon Order History CSV Download MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Amazon Order History CSV Download MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Amazon Order History CSV Download MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇