How to build QuickBooks dashboards in Metabase
QuickBooks Online is the accounting system of record for invoices, payments, expenses, and your chart of accounts. Metabase is where you turn that financial data into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with a QuickBooks MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs QuickBooks into a database so you can build revenue, AR, and cash-flow dashboards anyone can read.
How do you connect QuickBooks to Metabase?
Most teams combine both routes: use the QuickBooks 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 a QuickBooks Online MCP server (Intuit's local preview or a community server, to look up live invoices, payments, and customers) with the Metabase CLI, whose upload command loads a CSV into Metabase as a ready-to-query table and model.
- Quick lookups like "which invoices are overdue by more than 30 days?"
- Loading a QuickBooks CSV export into Metabase in seconds
- Spot-checks and one-off analyses without a warehouse
- Intuit's server is a local preview; community servers vary — verify
- Scope the Intuit OAuth connection to read-only so analysis can't trigger writes
- CSV uploads are snapshots — refresh or move to the pipeline for history
Durable dashboards with history
Sync QuickBooks Online into a database or warehouse with Airbyte, Fivetran, or the API, then point Metabase at it.
- Revenue, AR aging, and cash-flow dashboards finance relies on
- Trend analysis over quarters and years
- Joining accounting data with billing, CRM, or product data
- Requires a destination database and a sync to maintain
- You own the accounting definitions and refresh schedule
- Reconcile against QuickBooks' own reports before trusting numbers
What can you analyze from QuickBooks data in Metabase?
- Invoiced revenue — by month, product/service, and customer
- Accounts receivable — outstanding balance and aging buckets
- Days sales outstanding (DSO) — how fast you collect
- Cash flow — payments received vs. bills and expenses paid
- Profitability — gross margin by customer and product
- Expenses — spend by category and vendor over time
- Customer concentration — top customers by revenue and balance
Which QuickBooks dashboards should you build in Metabase?
Revenue & sales
How much you're invoicing and where it comes from.
- Invoiced revenue by month (bar)
- Revenue by product/service and customer (bar)
- New vs. returning customer revenue (stacked bar)
- Average invoice value and count (number)
AR & collections
What you're owed and how fast it comes in.
- Accounts receivable balance now (number)
- AR aging buckets: current, 1–30, 31–60, 61–90, 90+ (bar)
- Days sales outstanding (DSO) by month (line)
- Overdue invoices by customer (table)
Cash flow
Money in vs. money out over time.
- Payments received vs. bills paid by month (dual line)
- Net cash movement by month (bar)
- Expenses by category (bar)
- Upcoming bills due (table)
Profitability
Margins by customer, product, and period.
- Gross margin by month (line)
- Profit by product/service (bar)
- Top customers by revenue and margin (table)
- Revenue vs. expenses trend (combo)
How do you use the QuickBooks MCP server with the Metabase CLI?
Pair a QuickBooks Online MCP server with the Metabase CLI for fast, hands-on analysis. Intuit's QuickBooks MCP server runs locally and looks up live invoices, payments, customers, and reports; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model. For analysis, scope the Intuit connection to read-only.
Example workflow
- Ask the QuickBooks MCP which invoices are overdue by more than 30 days, or pull a customer's open balance and last payment date.
- Export the customers, invoices, and payments 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
- Intuit's QuickBooks MCP server is a local, preview release; community servers vary in features and quality — review before connecting.
- A CSV upload is a point-in-time snapshot; trends and AR-over-time still need a warehouse sync, or refresh with
mb upload replace. - Connecting requires an OAuth app on the Intuit Developer Portal; scope it 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 QuickBooks MCP server and the Metabase CLI?
QuickBooks MCPofficial
- Server
intuit/quickbooks-online-mcp-server- Runs
- Locally (stdio); preview release
- Auth
- OAuth 2.0 via an Intuit Developer app
- Community
qbo-mcp-ts(npm) adds SSE/HTTP transport
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)
# QuickBooks Online — Intuit's official server runs locally (stdio)
# Clone and run per the repo, then register it with your client:
claude mcp add quickbooks -- node /path/to/quickbooks-online-mcp-server/dist/index.js{
"mcpServers": {
"quickbooks": {
"command": "npx",
"args": ["-y", "qbo-mcp-ts"],
"env": {
"QBO_CLIENT_ID": "YOUR_INTUIT_CLIENT_ID",
"QBO_CLIENT_SECRET": "YOUR_INTUIT_CLIENT_SECRET",
"QBO_COMPANY_ID": "YOUR_REALM_ID",
"QBO_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN",
"QBO_ENVIRONMENT": "production"
}
}
}
}You'll register an app on the Intuit Developer Portal to obtain a client ID, secret, and refresh token, and choose sandbox or production. Scope the connection to read-only for analysis work.
# 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 QuickBooks CSV export — creates a table AND a model
mb upload csv --file quickbooks-invoices.csv --collection root
# Refresh that same table later from a new export
mb upload replace <table-id> --file quickbooks-invoices.csvThe Metabase CLI stores its credentials securely after mb auth login.
Can you generate a QuickBooks dashboard with AI?
Yes. Use the prompt below with any assistant that can run a QuickBooks MCP server and the Metabase CLI. It works end to end: if QuickBooks tables already exist in Metabase it analyzes those; otherwise it pulls the data over the QuickBooks MCP, loads it with mb upload csv, then builds the dashboard — skipping cards it has no data for.
Create a polished Metabase dashboard for QuickBooks Online financial 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 invoiced revenue, accounts
receivable, cash flow, and profitability from QuickBooks Online data.
Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for QuickBooks tables and
models). If durable QuickBooks 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 a QuickBooks Online MCP server using a
read-only connection: customers, invoices, invoice line items, payments, items,
and bills. 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, Invoices, Invoice line items,
Payments, Items (products/services), Bills, Vendors, Expenses/Purchases, and the
Chart of Accounts. Inspect the actual tables and column names first.
Important:
- Build on whatever data is present; don't claim Metabase connects natively to
QuickBooks — it reads a database or CLI-uploaded tables.
- QuickBooks amounts are decimals in the major currency unit — do not divide by 100.
- Recognize revenue from invoices (or from the accounting method the business uses);
do not double-count payments applied to invoices as extra revenue.
- Compute AR as unpaid invoice balances as of a date, and DSO from AR and revenue.
- Report in the company's home currency; if multi-currency, convert with a
documented rate or caveat the mix.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: trends and AR-over-time need history,
so build trend cards only if a warehouse sync or multiple uploads provide it.
Dashboard title: QuickBooks Revenue & AR Overview
Sections:
1. Executive summary (KPI cards): Invoiced revenue this month; AR balance; DSO;
Overdue AR; Payments received this month; Gross margin (only if cost data exists).
2. Revenue & sales: Invoiced revenue by month; Revenue by product/service; Revenue
by customer; Average invoice value.
3. AR & collections: AR aging buckets; DSO by month; Overdue invoices by customer;
Collection rate.
4. Cash flow: Payments received vs. bills paid by month; Net cash movement;
Expenses by category; Upcoming bills.
5. Profitability: Gross margin by month; Profit by product/service; Top customers
by revenue and margin.
Filters: Customer, Product/service, Account, Class/Location (if used), Date range.
Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_qbo_customers, modeled_qbo_invoices,
modeled_qbo_invoice_lines, modeled_qbo_payments, and modeled_qbo_ar_aging (an
as-of AR balance 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 QuickBooks'
P&L and AR aging reports. Keep it practical, dense, and executive-readable. Avoid
vanity metrics.How do you build the QuickBooks → Metabase pipeline?
For dashboards that need history and reliability, land QuickBooks data in a database first, then connect Metabase to that database.
Connector options
- dlt (free, code) — write a Python pipeline against the QuickBooks Online Accounting API for full control.
- QuickBooks Online API (free, raw) — the source of truth; query entities and reports and sync on a schedule.
- Airbyte — has a QuickBooks source covering invoices, payments, customers, items, bills, and more. Free if you self-host the open-source version; paid on Airbyte Cloud.
- Fivetran (paid, managed) — offers a QuickBooks connector with a maintained schema and incremental syncs.
Notes
- Land raw tables first, then build clean models on top.
- QuickBooks amounts are decimals in the major currency unit — don't divide by 100.
- Decide your revenue basis (accrual from invoices vs. cash from payments) and apply it consistently.
- AR aging is an as-of calculation — model unpaid invoice balances against a reference date.
How should you model QuickBooks data in Metabase?
Core tables
| Table | Grain | Key columns |
|---|---|---|
customers | one row per customer | id, display_name, balance, created_at |
invoices | one row per invoice | id, customer_id, txn_date, due_date, total_amt, balance |
invoice_lines | one row per line | invoice_id, item_id, amount, qty |
payments | one row per payment | id, customer_id, total_amt, txn_date |
items | one row per product/service | id, name, type, unit_price |
bills / purchases | one row per expense | id, vendor_id, account_id, total_amt, txn_date |
Modeling advice
- Build a
modeled_qbo_ar_agingmodel: unpaid invoice balances bucketed by days pastdue_dateas of today. - Pick one revenue basis (accrual vs. cash) and reuse the definition everywhere.
- Don't add payments to invoiced revenue — payments settle invoices, they aren't additional revenue.
- Map the chart of accounts so expenses roll up into readable categories.
- Reconcile modeled revenue and AR against QuickBooks' own reports.
Which QuickBooks metrics should you track in Metabase?
| Metric | Definition | Notes |
|---|---|---|
| Invoiced revenue | Sum of invoice totals in a period. | Accrual basis; align with your accounting method. |
| Accounts receivable | Sum of unpaid invoice balances. | An as-of figure — pick a reference date. |
| DSO | (AR ÷ revenue) × days in period. | Lower is faster collection. |
| Overdue AR rate | Overdue balance ÷ total AR. | Pair with aging buckets. |
| Gross margin | (Revenue − COGS) ÷ revenue. | Needs cost data on items or accounts. |
| Net cash movement | Payments received − bills/expenses paid. | Cash basis; watch timing. |
| Customer concentration | Top customers' share of total revenue. | Flags revenue risk. |
What SQL powers QuickBooks dashboards in Metabase?
These assume the modeled tables above (PostgreSQL dialect, amounts in major currency units). Adjust identifiers to match your warehouse.
Invoice totals, counts, and average value over the last year.
SELECT
date_trunc('month', i.txn_date) AS month,
ROUND(SUM(i.total_amt), 2) AS invoiced_revenue,
COUNT(*) AS invoices,
ROUND(AVG(i.total_amt), 2) AS avg_invoice_value
FROM invoices i
WHERE i.txn_date >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY 1
ORDER BY 1;Open invoice balances bucketed by days past due — the collections worklist.
SELECT
CASE
WHEN CURRENT_DATE - i.due_date <= 0 THEN 'Current'
WHEN CURRENT_DATE - i.due_date <= 30 THEN '1-30'
WHEN CURRENT_DATE - i.due_date <= 60 THEN '31-60'
WHEN CURRENT_DATE - i.due_date <= 90 THEN '61-90'
ELSE '90+'
END AS aging_bucket,
COUNT(*) AS open_invoices,
ROUND(SUM(i.balance), 2) AS ar_outstanding
FROM invoices i
WHERE i.balance > 0
GROUP BY 1
ORDER BY MIN(CURRENT_DATE - i.due_date);Revenue and open balance by customer, year to date.
SELECT
c.display_name AS customer,
ROUND(SUM(i.total_amt), 2) AS revenue,
ROUND(SUM(i.balance), 2) AS open_balance
FROM invoices i
JOIN customers c ON c.id = i.customer_id
WHERE i.txn_date >= date_trunc('year', CURRENT_DATE)
GROUP BY c.display_name
ORDER BY revenue DESC
LIMIT 20;