Skip to main content

amazon-orders-mcp - An MCP server for Amazon order history

Version Python Versions Build GitHub License

amazon-orders-mcp is an unofficial MCP server for Amazon order history, line items, and transactions, built on amazon-orders. It gives your AI assistant read-only tools for your Amazon account, available from Claude and any other MCP client.

The server never signs in itself, and never sees your credentials. Instead, it reuses the session amazon-orders saves when you sign in on Amazon's own page, in a browser window.

Note: This server reads its data through amazon-orders, which works by parsing data from Amazon's consumer-facing website. As Amazon provides no official API to use, older versions may break at any time, so it's recommended that you use the latest version.

Installation

amazon-orders-mcp is available on PyPI and is run with uvx, so there's nothing to install up front. First, sign in once from a terminal:

uvx --from "amazon-orders[browser]" amazon-orders login --browser

Run this again whenever the session expires (your assistant will tell you when it has). Then add the server to your MCP client.

For Claude Code:

claude mcp add amazon-orders -- uvx amazon-orders-mcp

For Claude Desktop, download amazon-orders-mcp-<version>.mcpb from the latest release and open it.

For any other client configured with JSON:

{
  "mcpServers": {
    "amazon-orders": {
      "command": "uvx",
      "args": ["amazon-orders-mcp"]
    }
  }
}

That's it! Your assistant can now answer questions about your Amazon account.

If you'd rather not use uv, amazon-orders-mcp can also be installed and/or upgraded using pip:

pip install amazon-orders-mcp --upgrade

Then use amazon-orders-mcp as the command, and sign in with amazon-orders login --browser.

Basic Usage

Just ask your assistant about your orders, and it will use the following tools:

Tool Returns
check_session Whether you're signed in, and to which Amazon site
get_order_history A batch of orders for a year or time filter, optionally fully detailed
get_order One order, by order number
get_transactions A batch of payment transactions over a number of days, or for an order
get_gift_card_activity Gift Card activity over a number of days

Order history and transactions come back in batches of limit results (25 by default, and a batch can run up to a page over), with a cursor your assistant passes back to get the next batch.

Configuration

The server uses the same config as the amazon-orders CLI, so settings such as the Amazon site (e.g. amazon.co.uk) are set in AmazonOrdersConfig. See Supported Sites for the sites amazon-orders can read.

Documentation

For more on the data the server returns, amazon-orders's official documentation is available at Read the Docs, including the Order entity's fields and troubleshooting.

Contributing

Want to contribute financially? If you've found amazon-orders-mcp useful, sponsorship would be greatly appreciated!

Metadata

Release files for amazon-orders-mcp 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazon-orders-mcp 1.0.0
File Size Uploaded
amazon_orders_mcp-1.0.0.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amazon-orders-mcp 1.0.0
File Interpreter ABI Platform
amazon_orders_mcp-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / amazon_orders_mcp-1.0.0.tar.gz

Download URL amazon_orders_mcp-1.0.0.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
14d78843d33409e0109d57e05c5b31d58fad0b5530912e9e76c58d9a36e0c5f6
BLAKE2b-256 checksum
How to use checksums
c55e06a2724c67febf8346a7ae55f4a8aa3f0f0c12f6875b4b5095c4435f29e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / amazon_orders_mcp-1.0.0-py3-none-any.whl

Download URL amazon_orders_mcp-1.0.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ac00ef2f4d0ffe6d016dd776f5907609fb3af0e5ecc01a27f276cf4a612a5e1
BLAKE2b-256 checksum
How to use checksums
f345ab8d4f69eb63ed50fb6c2048611e690e10030f56f4051ccfef5de0473934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.0

2 release files

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page