Amazon Orders

v3.0.2
io.github.alexdlaird/amazon-orders-mcp Checked 2 days ago Published 1 day ago

An MCP server for Amazon order history, line items, and transactions, built on amazon-orders

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find_charge

Find the Amazon Transactions behind a card or bank charge, by its amount and date, each with its Order and the Items in it. A Transaction matches when its amount equals `amount` and it completed within `window_days` of `charge_date`, since Amazon can complete a charge on a different day than a statement shows it.

ParameterTypeDescription
amount *numberThe charge or refund's amount, e.g. `12.99`. Its sign is ignored, since statements and Amazon show charges and refunds with different signs.
charge_date *stringThe date the charge shows, e.g. `2026-11-10`.
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
last_fourThe last four digits of the card it was charged to, to match only that card's Transactions.
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).
window_daysintegerHow many days either side of `charge_date` a Transaction can have completed.

sign_in

Sign the user in to Amazon, when they ask you to or after a tool says they aren't signed in. Opens a browser window on the user's computer, where they sign in on Amazon's own page, so their credentials are never seen. Wait for them to finish, which they have 120 seconds to do. If it says there's no browser to sign in with, ask the user which to use, then call this again with `browser`.

ParameterTypeDescription
accountThe Amazon account to sign in to, by a name for it, e.g. `spouse`, to add someone else's own account, like a partner's. By default, the user's default account.
browserOnly when there's no browser to sign in with: the one the user chose, either one offered to download for them or a browser they already have installed. It's saved, so they're only asked once.
siteThe Amazon site to sign in to, e.g. `amazon.de`, since each site has its own sign-in. By default, the user's default site.

get_orders

Get a batch of the Amazon Order history for a given time period, with the Amazon Household members whose Orders the account can view and a cursor to fetch the next batch.

ParameterTypeDescription
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
cursorThe `cursor` of the previous batch, to fetch the next one. The filters it was fetched with carry over.
family_member_idThe ID of an Amazon Household member whose Orders to get, such as a linked Teen account, from `household_members`. An account in an Amazon Household gets the whole household's Orders by default; pass…
full_detailsbooleanGet the full details for each Order in the batch. This will execute an additional request per Order.
limitStop fetching history pages once at least this many Orders are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
order_filterThe order type filter to use, e.g. `"digital"` for Kindle and other digital purchases, which the default history doesn't include. If provided, appended alongside the time filter.
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).
start_indexThe index of the Order from which to start fetching in the history. Ignored if `cursor` is provided.
time_filterThe time filter to use. Supported values are `"last30"` (last 30 days), `"months-3"` (past 3 months), or `"year-YYYY"` (specific year). Only one of `year` or `time_filter` may be given.
yearThe year for which to get history. Only one of `year` or `time_filter` may be given, and it's ignored if `cursor` is provided. Defaults to the current year if neither `year` nor `time_filter` is speci…

search_orders

Search every year of the Order history for Orders by product title, Order number, address, or recipient, as the search box on Your Orders does, getting each matching Item with its Order's number and date.

ParameterTypeDescription
query *stringWhat to search for: words from a product title, an Order number, or a name or address an Order was sent to.
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
cursorThe `cursor` of the previous batch, to fetch the next one.
limitStop fetching result pages once at least this many results are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_order

Get the full details for a given Amazon Order ID.

ParameterTypeDescription
order_id *stringThe Amazon Order ID to lookup.
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_tracking

Get the carrier and tracking number of a Shipment from its package tracking page.

ParameterTypeDescription
order_id *stringThe Amazon Order ID of the Shipment.
shipment_id *stringThe Shipment's `shipment_id`. Amazon stops showing the tracking link it comes from on older Orders.
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_invoices

Get the invoice documents of a given Amazon Order ID from its invoice list: the Printable Order Summary (an HTML page, on every site), then any invoice and credit note PDFs (issued by sellers, mostly on EU sites).

ParameterTypeDescription
order_id *stringThe Amazon Order ID to lookup.
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_transactions

Get a batch of Amazon Transaction history for a given number of days, or for a single Order, with a cursor to fetch the next batch.

ParameterTypeDescription
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
cursorThe `cursor` of the previous batch, to fetch the next one. The `days` window or `order_id` it was fetched with carries over.
daysintegerThe number of days worth of Transactions to get. Ignored when `order_id` or `cursor` is given.
limitStop fetching Transaction pages once at least this many Transactions are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
order_idIf given, only Transactions for this Amazon Order ID are returned, as in `get_transactions`. Ignored when `cursor` is given.
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_gift_cards

Get the Amazon Gift Card balance, and a batch of its activity for a given number of days, with a cursor to fetch the next batch.

ParameterTypeDescription
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
cursorThe `cursor` of the previous batch, to fetch the next one. The `days` window it was fetched with carries over.
daysintegerThe number of days worth of Gift Card activity to get. Ignored when `cursor` is given.
limitStop fetching activity pages once at least this many GiftCardActivity entries are collected. Whole pages are fetched, so the batch can hold up to a page more than `limit`. `None` fetches every page.
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

get_prime_payments

Get every charge in the Prime membership payment history.

ParameterTypeDescription
accountAnother Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`).
siteThe Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`).

check_session

Check with Amazon whether the user's saved sessions still work: on `site`, or else on their default site and every other Amazon site they have a saved session for. Also says which site is the default, and lists the user's accounts.

ParameterTypeDescription
accountThe Amazon account to check, e.g. `spouse`. By default, the default account.
siteThe Amazon site to check, e.g. `amazon.de`. By default, the default site and every other site with a saved session are checked.

get_config

Get the settings that can be changed with `update_config`, and their values. What each one does: https://amazon-orders.readthedocs.io/api.html#amazonorders.conf.AmazonOrdersConfig

update_config

Change a setting. Change a preference, like the Amazon site (`domain`) or the browser to sign in with (`browser`), only when the user asks. You may change a tuning setting yourself when calls keep failing (e.g. a longer `request_timeout` after timeouts, or a smaller `thread_pool_size` when Amazon throttles requests), and tell the user what you changed. `warn_on_missing_required_field` returns partial data instead of an error, so say so if you change it. A preference is saved, and tuning lasts until the server restarts unless `save` is true, which you can offer if a change keeps helping. `domai…

ParameterTypeDescription
key *stringThe setting, from `get_config`.
value *The new value. Null or an empty string sets it back to the default.
saveWhether to save the change. By default, a preference is saved and tuning isn't.