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.
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.
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.
- 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
- 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
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.
- 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
- 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?
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)
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)
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)
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_duethis 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 csvto 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 csvneeds 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)
{
"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:
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": ["-y", "@stripe/mcp", "--tools=all", "--api-key=rk_live_..."]
}
}
}# 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.csvOn 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.
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.
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.
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
| Table | Grain | Key columns |
|---|---|---|
customers | one row per customer | id, email, created, currency, delinquent |
subscriptions | one row per subscription | id, customer_id, status, created, current_period_end, canceled_at, cancel_at_period_end |
subscription_items | one row per line | subscription_id, price_id, quantity |
prices | one row per price | id, product_id, unit_amount, currency, interval, interval_count |
invoices | one row per invoice | id, customer_id, subscription_id, status, total, created, paid |
charges | one row per charge | id, customer_id, amount, status, failure_code, created, refunded |
Modeling advice
- Build a
modeled_stripe_mrrtable: 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?
| Metric | Definition | Notes |
|---|---|---|
| MRR | Sum of active subscriptions' normalized monthly amount. | Exclude one-time charges, tax, and refunds. |
| Net new MRR | New + expansion − contraction − churned MRR. | Best shown as a monthly waterfall. |
| Revenue churn rate | Churned 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. |
| ARPU | MRR ÷ active customers (or accounts). | Decide customer vs. account grain and stick to it. |
| LTV | ARPU × average customer lifetime (1 ÷ churn rate). | Sensitive to churn; treat as a range, not a point. |
| Failed-payment rate | Failed 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.
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;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;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;