Skip to main content
Glama
README.md
<p align="center"><img alt="amazon-orders-mcp - An MCP server for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>

[![Version](https://img.shields.io/pypi/v/amazon-orders-mcp)](https://pypi.org/project/amazon-orders-mcp)
[![Python Versions](https://img.shields.io/pypi/pyversions/amazon-orders-mcp.svg)](https://pypi.org/project/amazon-orders-mcp)
[![Build](https://img.shields.io/github/actions/workflow/status/alexdlaird/amazon-orders-mcp/build.yml)](https://github.com/alexdlaird/amazon-orders-mcp/actions/workflows/build.yml)
[![Docs](https://img.shields.io/readthedocs/amazon-orders-mcp)](https://amazon-orders-mcp.readthedocs.io)
[![GitHub License](https://img.shields.io/github/license/alexdlaird/amazon-orders-mcp)](https://github.com/alexdlaird/amazon-orders-mcp/blob/main/LICENSE)

<!-- mcp-name: io.github.alexdlaird/amazon-orders-mcp -->

`amazon-orders-mcp` is an unofficial [MCP](https://modelcontextprotocol.io) server for Amazon order history, line items,
and transactions, built on [`amazon-orders`](https://amazon-orders.readthedocs.io). It gives your AI assistant
tools for your Amazon account, available from any MCP client.

The server never sees your credentials. When you sign in, a browser window opens on Amazon's own page, and the server
reuses the session that leaves behind. It also runs on a server without a display, where you sign in from a terminal
instead (see [Remote Clients](https://amazon-orders-mcp.readthedocs.io/remote.html)).

> **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](https://pypi.org/project/amazon-orders-mcp/) and is run
with [`uvx`](https://docs.astral.sh/uv/), so there's nothing to install up front. Add it to your AI assistant:

### ChatGPT

**ChatGPT Desktop:** in Settings → Plugins, add an MCP server of type STDIO, with `uvx` as the command and
`amazon-orders-mcp` as its argument.

**Codex:**

```sh
codex mcp add amazon-orders -- uvx amazon-orders-mcp
```

### Claude

**Claude Desktop:** download `amazon-orders-mcp-<version>.mcpb` from the
[latest release](https://github.com/alexdlaird/amazon-orders-mcp/releases/latest) and open it.

**Claude Code:**

```sh
claude mcp add amazon-orders -- uvx amazon-orders-mcp
```

### Other Clients

Any client that runs local MCP servers can use this JSON, or `amazon-orders-mcp` as the command if you've
installed it with `pip install amazon-orders-mcp`:

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

### Remote Clients

For clients that connect to a server instead of running one, the server can also serve
[Streamable HTTP](https://modelcontextprotocol.io/specification/latest/basic/transports/streamable-http), and sign
them in with OAuth. See [Remote Clients](https://amazon-orders-mcp.readthedocs.io/remote.html) for how.

### Docker

```sh
docker build -t amazon-orders-mcp .
docker run -i --rm -v amazon-orders:/home/app/.config/amazonorders amazon-orders-mcp
```

A container has no display, so sign in with the `login` target first. See the `Dockerfile` for how.

## Basic Usage

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

| Tool                 | Returns                                                                   |
|----------------------|---------------------------------------------------------------------------|
| `find_charge`        | The transactions behind a card or bank charge, each with its order        |
| `sign_in`            | Opens a browser window for you to sign in to Amazon, when you ask         |
| `get_orders`         | A batch of orders by year, time filter or order type, optionally detailed |
| `search_orders`      | A batch of items by product, order number, address or recipient, any year |
| `get_order`          | One order, by order number                                                |
| `get_tracking`       | A shipment's carrier and tracking number, from an order's shipment ID     |
| `get_invoices`       | An order's printable summary, and any invoice PDFs the seller issues      |
| `get_transactions`   | A batch of payment transactions over a number of days, or for an order    |
| `get_gift_cards`     | The Gift Card balance, with a batch of its activity over a number of days |
| `get_prime_payments` | Prime membership fee charges, each with its order number                  |
| `check_session`      | Whether you're signed in, on each site and account you have a session for |
| `get_config`         | The settings your assistant can change, and their values                  |
| `update_config`      | Changes one of those settings                                             |

For assistants that offer prompts, these are listed alongside the tools:

| Prompt             | Does                                                                |
|--------------------|---------------------------------------------------------------------|
| `review_spending`  | Reviews what you've spent over a period, grouped by what it was for |
| `find_returns`     | Finds items in recent orders you can still return                   |
| `track_deliveries` | Lists what you have arriving, soonest first                         |
| `explain_charge`   | Works out what an Amazon charge on your statement was               |

Every tool that reads Amazon takes an optional `site`, like `amazon.de`, so your assistant can read each Amazon site
you shop on from one server, e.g. "my last amazon.de orders". Without it, tools read your default site, the `domain`
setting. Each site has its own sign-in, so ask your assistant to sign you in to each one.

Tools also take an optional `account`, so one server can read someone else's own Amazon account too, like a
partner's, e.g. "what's arriving for my partner?". Ask your assistant to sign you in to it, with a name for it like
`spouse`. Without it, tools read your default account, the `account` setting.

### Configuration

Ask your assistant to change a setting, such as the default Amazon site (e.g. `amazon.co.uk`), the default account, or
the browser to sign in with. Settings are shared with the `amazon-orders` CLI, so it follows the same changes. See
[Supported Sites](https://amazon-orders.readthedocs.io/language-packages.html#supported-sites) for the sites
`amazon-orders` can read.

## Documentation

For more advanced usage, `amazon-orders-mcp`'s official documentation is available
at [Read the Docs](https://amazon-orders-mcp.readthedocs.io).

For more on the data the server returns, `amazon-orders`'s official documentation is available
at [Read the Docs](https://amazon-orders.readthedocs.io), including the
[Order](https://amazon-orders.readthedocs.io/api.html#amazonorders.entity.order.Order) entity's fields
and [troubleshooting](https://amazon-orders.readthedocs.io/troubleshooting.html).

## Contributing

Want to contribute financially? If you've found `amazon-orders-mcp`
useful, [sponsorship](https://github.com/sponsors/alexdlaird) would
be greatly appreciated!

TDQS

A3.7/5.0

Scored across 13 tools

Disambiguation4/5

Most tools target clearly different resources (orders, transactions, invoices, tracking, gift cards, Prime, session/config). However, get_order, get_orders, and search_orders all return orders and differ mainly by retrieval mode (single, batch-by-date, keyword search), and get_orders vs get_transactions both return dated batches of history, which could cause initial misselection even though the descriptions eventually clarify.

Naming Consistency5/5

Every tool follows a consistent snake_case verb_noun pattern (get_order, find_charge, search_orders, check_session, update_config). The plural/singular contrast between get_order and get_orders is a deliberate and readable distinction rather than a convention break.

Tool Count5/5

13 tools is well within the sweet spot for this scope, and each one maps to a distinct Amazon data surface (orders, transactions, invoices, tracking, gift cards, Prime payments, auth/session, config). Two config tools is a minimal, justified overhead.

Completeness4/5

The read-oriented lifecycle is well covered: discovery (search/history), detail (order, invoice, tracking), financial reconciliation (transactions, find_charge, Prime, gift cards), and auth/config management. The notable gap is returns/refunds/cancellations, which are a core part of an orders domain and have no tool at all.

Maintenance

ActivityActive
ResponsivenessLimited data