Amazon SP-API × Metabase

How to build Amazon seller dashboards in Metabase

The Amazon Selling Partner API (SP-API) exposes your seller account's orders, finances, and inventory across Amazon marketplaces. Metabase is where you turn that data into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with a managed Amazon MCP and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs SP-API data into a database so you can build dashboards anyone can read.

Heads up: Metabase connects to databases and warehouses — it does not ship a native Amazon connector. For dashboards that need history and reliability, you'll sync SP-API data into a database first (covered below).

How do you connect Amazon SP-API to Metabase?

Most sellers combine both routes: use the Amazon MCP and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the profitability dashboards the business depends on.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair a managed Amazon SP-API MCP server (to read live orders, finances, and inventory) with the Metabase CLI, whose upload command loads a CSV into Metabase as a ready-to-query table and model.

Best for
  • Quick lookups like "units sold by ASIN this week?"
  • Loading an Amazon CSV export into Metabase in seconds
  • Spot-checks on orders, inventory, and fees without a warehouse
Trade-offs
  • Great for exploration, not governed reporting
  • Use read-only mode on the Amazon MCP to avoid accidental writes
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync SP-API data into a database or warehouse with a managed connector, dlt, or the API, then point Metabase at it.

Best for
  • Profitability dashboards net of Amazon fees
  • Settlement reconciliation and payout tracking
  • Multi-marketplace and FBA inventory analysis
Trade-offs
  • You own the refresh schedule and the data model
  • SP-API is rate-limited and report-based — plan around it
  • Fees and reimbursements matter — model them for true margin

What can you analyze from Amazon seller data in Metabase?

  • Sales — units, orders, and gross sales over time
  • Fees & profitability — referral and FBA fees, net proceeds
  • ASIN performance — top sellers, units, and return rate
  • Settlements — reconcile payouts against orders
  • FBA inventory — on hand, days of cover, and stranded stock
  • Marketplaces — revenue split across regions and currencies

Which Amazon dashboards should you build in Metabase?

For: Sellers & owners

Sales overview

The daily pulse of marketplace demand.

  • Net proceeds vs. prior period (number + trend)
  • Units and orders per day (line)
  • Average selling price (number + trend)
  • Revenue by marketplace (bar)
For: Merchandising

Product / ASIN performance

What's selling and what's stuck.

  • Top ASINs by net proceeds (bar)
  • Units sold by ASIN (table)
  • Return rate by ASIN (bar)
  • Buy Box / listing performance (table)
For: Finance

Fees & profitability

What Amazon keeps, and what's left.

  • Amazon fees as % of sales (line)
  • FBA vs. referral fees (bar)
  • Net margin by ASIN (table)
  • Reimbursements over time (line)
For: Ops

Inventory & fulfillment

Keep stock healthy and in stock.

  • FBA inventory on hand vs. sell-through (table)
  • Days of cover by ASIN (bar)
  • Stranded / unfulfillable inventory (table)
  • Late-shipment / defect rate (line)

How do you use the Amazon MCP server with the Metabase CLI?

Pair a managed Amazon MCP with the Metabase CLI for fast, hands-on analysis. There's no first-party Amazon MCP, so most sellers connect SP-API through a managed MCP such as Pipedream, which reads live orders, finances, and inventory; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model. For analysis, connect the Amazon MCP in read-only mode.

Example workflow

  • Ask the Amazon MCP which ASINs sold the most units this week.
  • Export the orders, finances, or inventory you want to keep as a CSV.
  • Run mb upload csv to load it into Metabase as a table and model, then build questions and dashboards on top.

Be honest about the limits

  • The Amazon MCP is great for live lookups — not for scheduled or audited reporting.
  • A CSV upload is a point-in-time snapshot; refresh it with mb upload replace or move to the pipeline for real history.
  • Use the Amazon MCP in read-only mode so analysis can't trigger writes.
  • SP-API access requires seller authorization and the right roles.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up the Amazon MCP server and the Metabase CLI?

Amazon SP-API via Pipedreammanaged

Endpoint
https://mcp.pipedream.net/v2
Transport
Streamable HTTP
Auth
Authorize your seller account inside Pipedream
Scope
Orders, shipments, payments, seller operations

Metabase CLIofficial

Install
npm install -g @metabase/cli
Auth
mb auth login (browser OAuth on v62+, or an API key)
Load data
mb upload csv --file data.csv
Requires
An uploads database (Admin → Settings → Uploads)
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "amazon-sp-api": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.pipedream.net/v2"
      ]
    }
  }
}
TerminalLoad an Amazon CSV with the Metabase CLI
# Install the Metabase CLI
npm install -g @metabase/cli

# Log in (opens your browser; requires Metabase v62+)
mb auth login --url https://your-metabase.example.com

# Load an Amazon CSV export — creates a table AND a model
mb upload csv --file amazon-orders.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file amazon-orders.csv

Authorize your Amazon seller account inside Pipedream first, then use the static MCP URL. The Metabase CLI stores its credentials securely after mb auth login.

Verify before shipping: confirm an uploads database is enabled under Admin → Settings → Uploads (Metabase docs) and the SP-API reference in the Amazon SP-API docs.

Can you generate an Amazon dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Amazon MCP server and the Metabase CLI. It works end to end: if Amazon tables already exist in Metabase it analyzes those; otherwise it pulls the data over the Amazon MCP, loads it with mb upload csv, then builds the dashboard — netting out Amazon fees, reconciling against settlements, and skipping cards it has no data for.

Prompt for creating an Amazon Seller Overview dashboard
Create a polished Metabase dashboard for Amazon seller analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help sellers understand sales, average selling price, fees and profitability,
product/ASIN performance, and FBA inventory from Amazon SP-API data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for Amazon/SP-API tables and
  models). If durable Amazon data is already present — synced from a warehouse or
  uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull it with the Amazon MCP server in read-only mode:
  orders, order items, settlements/finances (fees, reimbursements),
  products/listings (ASIN/SKU), and FBA inventory. Write each result to a CSV, then
  load it with the Metabase CLI — run "mb upload csv --file <export>.csv" so each
  upload creates a table and a ready-to-query model. Use "mb upload replace
  <table-id> --file <export>.csv" to refresh an existing table instead of creating
  duplicates.

Step 2 — Inspect before querying:
Amazon CSV exports are usually flat and pre-aggregated (one row per ASIN or day,
with columns like units, gross sales, fees, and net proceeds). Warehouse tables are
raw and order-grained (orders, order items, finances, FBA inventory). Inspect the
actual tables and column names first; do not assume exact names. Map the available
raw tables into these analytical concepts where possible: Orders, Order items,
Settlements/finances (fees, reimbursements), Products/listings (ASIN/SKU), and FBA
inventory.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Amazon — it reads a database or CLI-uploaded tables.
- Report NET proceeds: subtract Amazon referral and FBA fees, and refunds.
- Reconcile against settlement reports, not just order totals.
- Separate marketplaces (US, EU, etc.) and currencies.
- Use order-level grain for average selling price.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
  usable date column or multiple periods have been uploaded.

Dashboard title: Amazon Seller Overview

Sections:
1. Executive summary (KPI cards): Net proceeds last 30 days; Units; Orders; Average
   selling price; Fees as % of sales.
2. Sales & demand: Net proceeds by day; Units by day; Revenue by marketplace.
3. Product performance: Top ASINs by net proceeds; Units by ASIN; Return rate.
4. Fees & profitability: Fees % of sales; FBA vs referral fees; Net margin by ASIN.
5. Inventory: FBA on hand vs sell-through; Days of cover; Stranded inventory.

Filters: Date range, Marketplace, ASIN/SKU, Fulfillment channel (FBA/FBM).

Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_amazon_orders, modeled_amazon_order_items,
modeled_amazon_finances, and modeled_amazon_inventory.

Output: Build the dashboard if you have permission; otherwise provide the exact
questions, SQL, model definitions, and layout. Include caveats for any metric
that cannot be calculated from the available data. Keep it practical, dense,
and executive-readable. Avoid vanity metrics.

How do you sync SP-API data into a database or warehouse?

For dashboards that need history and reliability, land SP-API data in a database first, then connect Metabase to that database.

Connector options

  • Managed ETL — connectors like Fivetran and Airbyte offer Amazon Seller / Ads sources that land orders, finances, and inventory into your warehouse.
  • dlt(code) — write a Python pipeline against SP-API for full control over reports and refresh.
  • SP-API(raw) — the source of truth; it's report- and rate-limit-based, so schedule report requests and upserts carefully.
  • Include finances — sync the Finances/Settlement reports to net out fees, not just order totals.

Notes

  • Land raw tables first, then build clean models on top.
  • Reconcile order totals against settlement reports for true proceeds.
  • Keep marketplace and currency columns to avoid blending regions.

How should you model Amazon seller data in Metabase?

Core tables

TableGrainKey columns
ordersone row per orderamazon_order_id, purchase_date, order_status, marketplace_id, fulfillment_channel
order_itemsone row per itemamazon_order_id, asin, sku, quantity_ordered, item_price
financesone row per fee/eventamazon_order_id, fee_type, amount, posted_date
fba_inventoryone row per ASINasin, fulfillable_quantity, reserved_quantity

Modeling advice

  • Compute net proceeds = gross sales − fees − refunds.
  • Normalize order_status and choose which count as sales.
  • Keep marketplace and currency; don't sum across regions blindly.
  • Model fees by type (referral, FBA) for accurate per-ASIN margin.

Which Amazon metrics should you track in Metabase?

MetricDefinitionNotes
Net proceedsGross sales − fees − refunds.Reconcile against settlements.
Average selling priceGross sales ÷ units.Segment by ASIN and marketplace.
Fee ratioAmazon fees ÷ gross sales.Watch FBA vs. referral split.
Return rateReturned units ÷ units sold.Break out by ASIN.
Days of coverOn-hand ÷ daily sell-through.Flags stockout and overstock risk.

What SQL powers Amazon dashboards in Metabase?

These assume synced SP-API tables in a warehouse (PostgreSQL dialect). Adjust identifiers to match your connector.

Gross sales and units per dayPostgreSQL

Shipped-order sales and units over the last 30 days.

SELECT
  date_trunc('day', o.purchase_date)                  AS day,
  COUNT(DISTINCT o.amazon_order_id)                   AS orders,
  SUM(oi.quantity_ordered)                            AS units,
  SUM(oi.item_price - COALESCE(oi.item_promo_discount, 0)) AS gross_sales
FROM orders o
JOIN order_items oi ON oi.amazon_order_id = o.amazon_order_id
WHERE o.order_status = 'Shipped'
  AND o.purchase_date >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY 1
ORDER BY 1;
Amazon fees by monthPostgreSQL

FBA vs. referral fees from the finances/settlement data.

SELECT
  date_trunc('month', f.posted_date) AS month,
  SUM(f.amount) FILTER (WHERE f.fee_type = 'FBAPerUnitFulfillmentFee') AS fba_fees,
  SUM(f.amount) FILTER (WHERE f.fee_type = 'Commission')              AS referral_fees,
  SUM(f.amount)                                                       AS total_fees
FROM finances f
GROUP BY 1
ORDER BY 1;
Top ASINs by salesPostgreSQL

Units and gross sales by ASIN over 90 days.

SELECT
  oi.asin,
  oi.title,
  SUM(oi.quantity_ordered)  AS units,
  SUM(oi.item_price)        AS gross_sales
FROM order_items oi
JOIN orders o ON o.amazon_order_id = oi.amazon_order_id
WHERE o.purchase_date >= CURRENT_DATE - INTERVAL '90 days'
  AND o.order_status = 'Shipped'
GROUP BY oi.asin, oi.title
ORDER BY gross_sales DESC
LIMIT 20;
Days of cover by ASINPostgreSQL

FBA on-hand against recent daily sell-through.

SELECT
  i.asin,
  i.fulfillable_quantity                              AS on_hand,
  s.units_30d,
  ROUND(i.fulfillable_quantity
    / NULLIF(s.units_30d / 30.0, 0), 1)               AS days_of_cover
FROM fba_inventory i
JOIN (
  SELECT oi.asin, SUM(oi.quantity_ordered) AS units_30d
  FROM order_items oi
  JOIN orders o ON o.amazon_order_id = oi.amazon_order_id
  WHERE o.purchase_date >= CURRENT_DATE - INTERVAL '30 days'
  GROUP BY oi.asin
) s ON s.asin = i.asin
ORDER BY days_of_cover ASC NULLS LAST;

What are common mistakes when analyzing Amazon in Metabase?

Reporting gross sales as profit.→ Amazon's referral and FBA fees are large — net them out for real proceeds.
Ignoring settlement reconciliation.→ Order totals and payouts differ; reconcile against settlement reports.
Summing across marketplaces and currencies.→ Keep marketplace and currency columns and convert before combining.
Overlooking stranded or reserved inventory.→ Only fulfillable stock can sell; separate reserved and stranded units.
Treating MCP answers as governed reporting.→ Use MCP for live exploration; build warehouse-backed dashboards for anything people depend on.

Related analytics

Related integrations

FAQ

Does Metabase connect natively to Amazon Seller Central?
No. Metabase reads SQL databases and warehouses. Sync SP-API data into a database first (a managed connector, dlt, or the API), then connect Metabase to that database.
Is there an official Amazon SP-API MCP server?
Not today. There's no first-party Amazon MCP, so most sellers connect SP-API through a managed MCP such as Pipedream, which exposes orders, shipments, payments, and seller operations.
How do I quickly load Amazon data without a warehouse?
Export a CSV of your Amazon data and run `mb upload csv --file data.csv` with the Metabase CLI. It creates a table and a model you can build questions on right away. You'll need an uploads database enabled under Admin → Settings → Uploads. Refresh later with `mb upload replace`, or move to the pipeline route when you need history.
How do I calculate true profitability on Amazon?
Start from gross sales, subtract referral and FBA fees and refunds, and reconcile against settlement reports. Model fees by type so you can see net margin per ASIN.