amazon-orders-mcp
This MCP server lets an AI assistant access Amazon order, transaction, gift card, Prime, tracking, invoice, session, and configuration data for one or more Amazon sites/accounts.
Sign in to Amazon sites/accounts through a browser or terminal without exposing credentials.
Check whether saved sessions still work and list available sites/accounts.
Fetch order history by year, time period, order type, or household member, with pagination and optional full details.
Search all order years by product, order number, address, or recipient.
Get a specific order with its items, shipments, totals, dates, and details.
Find the transactions behind a card or bank charge by amount and date.
Get transaction history over a number of days or for a specific order.
Retrieve a shipment’s carrier and tracking number.
Get invoice documents for an order, including printable summaries and seller PDFs.
Read Gift Card balance and activity history.
Read Prime membership payment charges.
View and update settings such as default site, default account, sign-in browser, and tuning options.
Use optional
siteandaccountparameters to read different Amazon sites or accounts.
Provides tools for accessing Amazon order history, retrieving individual orders by order number, viewing payment transactions and gift card activity, and managing settings such as the Amazon site and sign-in session.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@amazon-orders-mcp what did I order on Amazon last month?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
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).
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. 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:
codex mcp add amazon-orders -- uvx amazon-orders-mcpClaude
Claude Desktop: download amazon-orders-mcp-<version>.mcpb from the
latest release and open it.
Claude Code:
claude mcp add amazon-orders -- uvx amazon-orders-mcpOther 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:
{
"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, and sign them in with OAuth. See Remote Clients for how.
Docker
docker build -t amazon-orders-mcp .
docker run -i --rm -v amazon-orders:/home/app/.config/amazonorders amazon-orders-mcpA container has no display, so sign in with the login target first. See the Dockerfile for how.
Related MCP server: Amazon MCP Server
Basic Usage
Just ask your assistant about your orders, and it will use the following tools:
Tool | Returns |
| The transactions behind a card or bank charge, each with its order |
| Opens a browser window for you to sign in to Amazon, when you ask |
| A batch of orders by year, time filter or order type, optionally detailed |
| A batch of items by product, order number, address or recipient, any year |
| One order, by order number |
| A shipment's carrier and tracking number, from an order's shipment ID |
| An order's printable summary, and any invoice PDFs the seller issues |
| A batch of payment transactions over a number of days, or for an order |
| The Gift Card balance, with a batch of its activity over a number of days |
| Prime membership fee charges, each with its order number |
| Whether you're signed in, on each site and account you have a session for |
| The settings your assistant can change, and their values |
| Changes one of those settings |
For assistants that offer prompts, these are listed alongside the tools:
Prompt | Does |
| Reviews what you've spent over a period, grouped by what it was for |
| Finds items in recent orders you can still return |
| Lists what you have arriving, soonest first |
| 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 for the sites
amazon-orders can read.
Documentation
For more advanced usage, amazon-orders-mcp's official documentation is available
at Read the Docs.
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!
Available Tools
13 toolscheck_sessionARead-only
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.
Inputs: site, account. Returns: The user's Amazon session status, returned by the ``check_session`` and ``sign_…
find_chargeARead-only
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.
Inputs: amount (required), charge_date (required), site, account, +2 more. Returns: The Transactions that match the charge, each with its Order.
get_configARead-only
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
Inputs: no named parameters. Returns: The settings that can be changed, returned by the ``get_config`` tool.
get_gift_cardsARead-only
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.
Inputs: days, site, limit, cursor, +1 more. Returns: The Gift Card balance, the batch of GiftCardActivity, and the cursor for the ne…
get_invoicesARead-only
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).
Inputs: order_id (required), site, account. Returns: The Order's Invoices, the Printable Order Summary first.
get_orderBRead-only
Get the full details for a given Amazon Order ID.
Inputs: order_id (required), site, account. Returns: The requested Order.
get_ordersARead-only
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.
Inputs: site, year, limit, cursor, +6 more. Returns: The batch of Orders, the Amazon Household members, and the cursor for the next…
get_prime_paymentsCRead-only
Get every charge in the Prime membership payment history.
Inputs: site, account. Returns: A list of the PrimePayments, newest first.
get_trackingBRead-only
Get the carrier and tracking number of a Shipment from its package tracking page.
Inputs: order_id (required), shipment_id (required), site, account. Returns: The requested Tracking. Its fields are `None` when the page only shows the deli…
get_transactionsARead-only
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.
Inputs: days, site, limit, cursor, +2 more. Returns: The batch of Transactions, and the cursor for the next one.
search_ordersARead-only
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.
Inputs: query (required), site, limit, cursor, +1 more. Returns: The OrderSearchResults, one per matching Item, or an empty list if nothing matc…
sign_inAIdempotent
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.
Inputs: site, account, browser. Returns: The user's Amazon session status, returned by the ``check_session`` and ``sign_…
update_configAIdempotent
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. domain is the default site, which tools read when they aren't given site, so to read another site once, pass it as site instead. After changing domain, check with check_session, since the user may need to sign in to the new default site. account is the default account the same way, one from check_session. What each setting does: https://amazon-orders.readthedocs.io/api.html#amazonorders.conf.AmazonOrdersConfig
Inputs: key (required), value (required), save. Returns: A setting's new value, returned by the ``update_config`` tool.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
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.
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.
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.
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
Related MCP Connectors
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Managed Amazon Seller Central and Ads access for OAuth-capable MCP clients.
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
Shopping infrastructure for AI agents: product search, category price overviews, price checks and seller vetting across US online retail, as structured facts over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search products, manage shopping carts, place orders, and retrieve order history from Amazon and Target accounts.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Amazon services through AI assistants, allowing users to search products, manage their cart, view order history, and place orders using natural language.MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to search for products, retrieve details, and manage their shopping cart on Amazon through the MCP framework. It also supports viewing order history and provides a demonstration of ordering capabilities within AI interfaces.64MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language querying of a customer and orders database through read-only MCP tools for finding customers, listing orders, and generating revenue summaries.-