Stripe × Metabase

How to build Stripe revenue dashboards in Metabase

Stripe is where your subscriptions, invoices, and payments live. Metabase is where you turn that billing activity into shared, trustworthy revenue dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Stripe MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs Stripe into a database so you can build MRR, churn, and retention dashboards anyone can read.

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

How do you connect Stripe to Metabase?

Most teams combine both routes: use the Stripe MCP server and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the revenue dashboards finance depends on.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair the official Stripe MCP server (to look up live customers, subscriptions, and payments) 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 "which subscriptions failed to renew this week?"
  • Loading a Stripe CSV export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed revenue reporting
  • Use a read-only Stripe key so analysis can't trigger writes
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync Stripe into a database or warehouse with Airbyte, Fivetran, Stripe Data Pipeline, or the API, then point Metabase at it.

Best for
  • MRR/ARR, churn, and retention dashboards finance relies on
  • Cohort and trend analysis over quarters and years
  • Joining billing data with product usage, support, or CRM data
Trade-offs
  • Requires a destination database and a sync to maintain
  • You own the revenue definitions and refresh schedule
  • Reconcile against the Stripe Dashboard before anyone trusts the numbers

What can you analyze from Stripe data in Metabase?

  • MRR and ARR — recurring revenue now and its monthly movement
  • Churn and retention — customer and revenue churn, gross and net retention
  • Expansion and contraction — upgrades, downgrades, and add-ons
  • Failed payments and dunning — declines, recovery, and involuntary churn
  • LTV and ARPU — value per customer and per account
  • Cohort revenue — how each signup cohort retains and grows
  • Cash and fees — gross vs. net after Stripe fees, refunds, and disputes

Which Stripe dashboards should you build in Metabase?

For: Founders, finance

MRR & ARR

The core recurring-revenue picture, month over month.

  • MRR and ARR right now (number + trend)
  • MRR movement: new, expansion, contraction, churn (waterfall)
  • Net new MRR per month (bar)
  • ARR by plan and billing interval (bar)
For: Growth, RevOps

Churn & retention

Where recurring revenue leaks and how well you keep it.

  • Gross and net revenue retention by month (line)
  • Customer vs. revenue churn rate (dual line)
  • Voluntary vs. involuntary (failed-payment) churn (bar)
  • Logos lost vs. saved by dunning (number)
For: Finance, ops

Failed payments & dunning

Recover revenue lost to declines before it becomes churn.

  • Failed charges and $ at risk this month (number)
  • Recovery rate after retries / dunning (line)
  • Declines by reason code (bar)
  • Past-due subscriptions by age (table)
For: Finance, leadership

Cohort revenue

Does each signup cohort grow or decay over time?

  • Revenue retention by signup-month cohort (heatmap)
  • Cumulative LTV by cohort (line)
  • ARPU by cohort and plan (table)
  • Months-to-payback by acquisition channel (bar)

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

Pair the Stripe MCP server with the Metabase CLI for fast, hands-on analysis. Stripe hosts a first-party remote MCP server that looks up live customers, subscriptions, and payments; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model. For analysis, scope the Stripe key to read-only.

Example workflow

  • Ask the Stripe MCP which subscriptions went past_due this week, or list failed charges over $500 with their decline reason.
  • Export the customers, subscriptions, and charges you want to keep as CSVs.
  • Run mb upload csv to load them into Metabase as tables and models, then build questions and dashboards on top.

Be honest about the limits

  • The Stripe MCP is great for live lookups — not for scheduled or audited revenue reporting.
  • A CSV upload is a point-in-time snapshot; MRR movement and cohorts still need a warehouse sync, or refresh with mb upload replace.
  • Scope the Stripe key to read-only so analysis can't trigger writes.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

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

Stripe MCPofficial

Endpoint
https://mcp.stripe.com
Transport
Remote (Streamable HTTP)
Auth
OAuth (browser) or a restricted API key
Local
@stripe/mcp (npm) for a self-run server

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": {
    "stripe": {
      "url": "https://mcp.stripe.com"
    }
  }
}

Clients without native remote support can use the mcp-remote bridge instead of a "url" field. On first connection the Stripe server opens a browser window to authorize.

Prefer a self-run server with a scoped, read-only restricted API key? Use the local package:

Local Stripe MCP (restricted key)
{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": ["-y", "@stripe/mcp", "--tools=all", "--api-key=rk_live_..."]
    }
  }
}
TerminalLoad a Stripe 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 a Stripe CSV export — creates a table AND a model
mb upload csv --file stripe-subscriptions.csv --collection root

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

On first connection the Stripe server opens a browser window to authorize (or use a restricted key). The Metabase CLI stores its credentials securely aftermb auth login.

Verify before shipping: confirm an uploads database is enabled under Admin → Settings → Uploads (Metabase docs) and the current Stripe MCP setup in the Stripe MCP docs. Scope the Stripe key to read-only for analysis work.

Can you generate a Stripe dashboard with AI?

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

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

Goal: Help founders and finance leaders understand recurring revenue, churn,
retention, failed payments, and cohort economics from Stripe data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for Stripe tables and
  models). If durable Stripe 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 Stripe MCP server using a read-only
  restricted key: customers, subscriptions, subscription items, prices, invoices,
  and charges. 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:
Do not assume exact table names. Map the available raw tables into these
analytical concepts where possible: Customers, Subscriptions, Subscription items,
Invoices, Invoice line items, Charges, Payment intents, Prices/Plans, Products,
Refunds, Disputes, and Balance transactions. Inspect the actual tables and column
names first.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Stripe — it reads a database or CLI-uploaded tables.
- Compute MRR from active subscription items, normalizing every plan to a monthly
  amount (divide annual by 12, multiply weekly, etc.) and converting all amounts
  from the smallest currency unit (e.g. cents) to a major unit.
- Report revenue in a single reporting currency; if multiple currencies exist,
  convert with a documented rate or caveat the mix.
- Separate voluntary churn from involuntary (failed-payment) churn.
- Exclude one-time charges, taxes, and refunds from MRR unless explicitly asked.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: MRR movement and cohorts need history,
  so build trend cards only if a warehouse sync or multiple uploads provide it.

Dashboard title: Stripe Revenue Overview

Sections:
1. Executive summary (KPI cards): MRR; ARR; Active subscriptions; Net new MRR this
   month; Gross revenue churn %; Net revenue retention (only if MRR-movement data
   can be derived).
2. MRR movement: New, expansion, contraction, and churned MRR by month (waterfall
   or stacked bar); Net new MRR by month.
3. Churn & retention: Customer churn vs. revenue churn by month; Gross vs. net
   retention; Voluntary vs. involuntary churn.
4. Failed payments & dunning: Failed charges and $ at risk; Recovery rate after
   retries; Declines by reason; Past-due subscriptions by age.
5. Cohorts & LTV: Revenue retention by signup-month cohort; Cumulative LTV by
   cohort; ARPU by plan.

Filters: Plan/Price, Product, Billing interval, Currency, Country, Date range.

Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_stripe_customers, modeled_stripe_subscriptions,
modeled_stripe_invoices, modeled_stripe_charges, and modeled_stripe_mrr (a monthly
per-subscription MRR model).

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. Reconcile totals against the
Stripe Dashboard. Keep it practical, dense, and executive-readable. Avoid vanity
metrics.

How do you build the Stripe → Metabase pipeline?

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

No paid tool required. A fully free stack: a small dlt or hand-written script (extract) → a free Postgres database like Neon or Supabase (load) → a scheduler such as GitHub Actions cron (host) → Metabase (visualize). For hosting and scheduling details, see our data pipeline guide.

Connector options

  • dlt (free, code) — a verified Stripe source for a Python pipeline when you want full control and a no-vendor sync.
  • Stripe API (free, raw) — the source of truth; paginate objects and use event/webhook history for changes.
  • Stripe Data Pipeline (first-party) — syncs your full Stripe data directly into Snowflake or Redshift, no third-party connector needed.
  • Airbyte — has a Stripe source covering customers, subscriptions, invoices, charges, and more. Free if you self-host the open-source version; paid on Airbyte Cloud.
  • Fivetran (paid, managed) — offers a Stripe connector with a maintained schema and incremental syncs.

Notes

  • Land raw tables first, then build clean models on top.
  • Stripe amounts are in the smallest currency unit (e.g. cents) — divide by 100 in your model layer, and handle zero-decimal currencies.
  • Stripe timestamps are Unix epochs — convert with to_timestamp() once in a model.
  • MRR is derived, not stored: build it from active subscription items and normalized prices.

How should you model Stripe data in Metabase?

Core tables

TableGrainKey columns
customersone row per customerid, email, created, currency, delinquent
subscriptionsone row per subscriptionid, customer_id, status, created, current_period_end, canceled_at, cancel_at_period_end
subscription_itemsone row per linesubscription_id, price_id, quantity
pricesone row per priceid, product_id, unit_amount, currency, interval, interval_count
invoicesone row per invoiceid, customer_id, subscription_id, status, total, created, paid
chargesone row per chargeid, customer_id, amount, status, failure_code, created, refunded

Modeling advice

  • Build a modeled_stripe_mrr table: one row per subscription per month with a normalized monthly amount — the backbone of every revenue chart.
  • Normalize all prices to a monthly figure (annual ÷ 12, etc.) and to a single reporting currency.
  • Define subscription status once (active / trialing / past_due / canceled) and reuse it everywhere.
  • Separate one-time charges from recurring invoice lines so they don't inflate MRR.
  • Reconcile modeled MRR and revenue against the Stripe Dashboard before anyone trusts the numbers.

Which Stripe metrics should you track in Metabase?

MetricDefinitionNotes
MRRSum of active subscriptions' normalized monthly amount.Exclude one-time charges, tax, and refunds.
Net new MRRNew + expansion − contraction − churned MRR.Best shown as a monthly waterfall.
Revenue churn rateChurned MRR ÷ MRR at period start.Track separately from customer (logo) churn.
Net revenue retention(Starting MRR + expansion − contraction − churn) ÷ starting MRR.Over 100% means expansion outpaces churn.
ARPUMRR ÷ active customers (or accounts).Decide customer vs. account grain and stick to it.
LTVARPU × average customer lifetime (1 ÷ churn rate).Sensitive to churn; treat as a range, not a point.
Failed-payment rateFailed charges ÷ attempted charges in a period.The main driver of involuntary churn.

What SQL powers Stripe dashboards in Metabase?

These assume the modeled tables above (PostgreSQL dialect, amounts in cents, epoch timestamps). Adjust identifiers to match your warehouse.

Current MRR and ARRPostgreSQL

Normalize active subscription items to a monthly amount and sum.

WITH monthly AS (
  SELECT
    si.subscription_id,
    -- normalize every price to a monthly amount, in major currency units
    SUM(
      CASE p.interval
        WHEN 'year'  THEN p.unit_amount / 100.0 / 12.0
        WHEN 'month' THEN p.unit_amount / 100.0
        WHEN 'week'  THEN p.unit_amount / 100.0 * 52.0 / 12.0
        WHEN 'day'   THEN p.unit_amount / 100.0 * 365.0 / 12.0
      END * si.quantity / NULLIF(p.interval_count, 0)
    ) AS mrr
  FROM subscription_items si
  JOIN prices p        ON p.id = si.price_id
  JOIN subscriptions s ON s.id = si.subscription_id
  WHERE s.status IN ('active', 'past_due')
  GROUP BY si.subscription_id
)
SELECT ROUND(SUM(mrr), 2) AS mrr_now,
       ROUND(SUM(mrr) * 12, 2) AS arr_now
FROM monthly;
Subscription churn by monthPostgreSQL

Cancellations against subscriptions active at each month's start.

WITH months AS (
  SELECT generate_series(
    date_trunc('month', CURRENT_DATE - INTERVAL '11 months'),
    date_trunc('month', CURRENT_DATE),
    INTERVAL '1 month'
  ) AS month
)
SELECT
  m.month,
  COUNT(*) FILTER (
    WHERE s.created <= m.month
      AND date_trunc('month', s.canceled_at) = m.month
  ) AS churned_subscriptions,
  COUNT(*) FILTER (
    WHERE s.created <= m.month
      AND (s.canceled_at IS NULL OR s.canceled_at > m.month)
  ) AS active_at_month_start
FROM months m
CROSS JOIN subscriptions s
GROUP BY m.month
ORDER BY m.month;
Failed payments and dollars at riskPostgreSQL

Declined charges by week and reason code — the dunning worklist.

SELECT
  date_trunc('week', to_timestamp(c.created)) AS week,
  COUNT(*)                                     AS failed_charges,
  ROUND(SUM(c.amount) / 100.0, 2)              AS dollars_at_risk,
  c.failure_code
FROM charges c
WHERE c.status = 'failed'
  AND to_timestamp(c.created) >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY 1, c.failure_code
ORDER BY 1, dollars_at_risk DESC;

What are common mistakes when analyzing Stripe in Metabase?

Treating a live MCP lookup or a one-off CSV as governed revenue reporting.→ Use the Stripe MCP and CSV uploads for lookups and triage; build warehouse-backed Metabase dashboards for anything finance depends on.
Leaving amounts in cents.→ Divide by 100 in a model layer (and handle zero-decimal currencies) so every chart reads in real money.
Counting one-time charges and tax as MRR.→ MRR is recurring subscription revenue only — exclude invoices' one-off lines, tax, and refunds.
Mixing currencies into one MRR number.→ Convert everything to a single reporting currency, or split by currency and say so.
Blending voluntary and involuntary churn.→ Separate cancellations from failed-payment churn — the fixes are completely different.
Never reconciling with the Stripe Dashboard.→ Sanity-check modeled MRR and gross revenue against Stripe's own reports before trusting them.

Related analytics

Related metrics

Related dashboards

Related integrations

FAQ

Does Metabase connect natively to Stripe?
No. Metabase reads SQL databases and warehouses. Sync Stripe into a database first (Stripe Data Pipeline, Airbyte, Fivetran, dlt, or the API), then connect Metabase to that database.
How do I quickly analyze Stripe data without a warehouse?
Pull the objects you need with the Stripe MCP server (use a read-only restricted key), export them to CSV, 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.
Can I calculate MRR directly from the Stripe MCP server?
Use the MCP for live lookups (a customer's subscriptions, this week's failed charges), not for MRR. MRR is a derived, historical metric — build it from synced subscription and price tables in your warehouse, or from CSV snapshots loaded with the CLI, and reconcile against the Stripe Dashboard.
How do I handle annual plans in MRR?
Normalize every price to a monthly amount: divide annual plans by 12, and convert weekly or daily intervals accordingly. Store the normalized figure in a modeled MRR table so all charts agree.