QuickBooks × Metabase

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.

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

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.

1 · MCP + CLI route (AI-assisted)

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.

Best for
  • 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
Trade-offs
  • 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
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

Sync QuickBooks Online into a database or warehouse with Airbyte, Fivetran, or the API, then point Metabase at it.

Best for
  • 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
Trade-offs
  • 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?

For: Founders, finance

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)
For: Finance, collections

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)
For: Finance, ops

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)
For: Leadership

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 csv to 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 csv needs 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)
ClaudeClaude Code CLI (Intuit official, local)
# 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
Cursor~/.cursor/mcp.json (community qbo-mcp-ts)
{
  "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.

TerminalLoad a QuickBooks 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 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.csv

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 current QuickBooks MCP setup in the Intuit QuickBooks MCP repo and the Intuit Developer Portal. Scope the connection to read-only for analysis work.

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.

Prompt for creating a QuickBooks Revenue & AR dashboard
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.

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) — 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

TableGrainKey columns
customersone row per customerid, display_name, balance, created_at
invoicesone row per invoiceid, customer_id, txn_date, due_date, total_amt, balance
invoice_linesone row per lineinvoice_id, item_id, amount, qty
paymentsone row per paymentid, customer_id, total_amt, txn_date
itemsone row per product/serviceid, name, type, unit_price
bills / purchasesone row per expenseid, vendor_id, account_id, total_amt, txn_date

Modeling advice

  • Build a modeled_qbo_ar_aging model: unpaid invoice balances bucketed by days past due_date as 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?

MetricDefinitionNotes
Invoiced revenueSum of invoice totals in a period.Accrual basis; align with your accounting method.
Accounts receivableSum of unpaid invoice balances.An as-of figure — pick a reference date.
DSO(AR ÷ revenue) × days in period.Lower is faster collection.
Overdue AR rateOverdue balance ÷ total AR.Pair with aging buckets.
Gross margin(Revenue − COGS) ÷ revenue.Needs cost data on items or accounts.
Net cash movementPayments received − bills/expenses paid.Cash basis; watch timing.
Customer concentrationTop 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.

Invoiced revenue by monthPostgreSQL

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;
AR agingPostgreSQL

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);
Top customers this yearPostgreSQL

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;

What are common mistakes when analyzing QuickBooks in Metabase?

Treating a live MCP lookup or a one-off CSV as governed financial reporting.→ Use the QuickBooks MCP and CSV uploads for lookups and triage; build warehouse-backed Metabase dashboards for anything finance depends on.
Counting payments as extra revenue.→ Payments settle invoices — recognize revenue from invoices (or your chosen basis), not from both.
Mixing accrual and cash bases in one chart.→ Pick a revenue basis and label it; don't blend invoiced and collected amounts.
Reporting AR without an as-of date.→ AR aging is point-in-time — model unpaid balances against a clear reference date.
Ignoring multi-currency.→ Convert foreign-currency invoices to the home currency, or split by currency and say so.
Never reconciling with QuickBooks reports.→ Sanity-check revenue and AR against QuickBooks' P&L and AR aging before trusting them.

Related analytics

Related integrations

FAQ

Does Metabase connect natively to QuickBooks?
No. Metabase reads SQL databases and warehouses. Sync QuickBooks Online into a database first (Airbyte, Fivetran, dlt, or the API), then connect Metabase to that database.
How do I quickly analyze QuickBooks data without a warehouse?
Pull the entities you need with a QuickBooks Online MCP server (use a read-only connection), 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.
Is there an official QuickBooks MCP server?
Intuit publishes an official QuickBooks Online MCP server, but it runs locally (stdio) and is a preview release. Community servers such as qbo-mcp-ts add HTTP/SSE transport. All require an OAuth app on the Intuit Developer Portal.
What's the cheapest way to sync QuickBooks into a database?
A small dlt or hand-written script against the QuickBooks Online API loading into a free Postgres tier like Neon or Supabase, scheduled with GitHub Actions cron, can run at $0 for small volumes. Managed connectors like Fivetran or Airbyte Cloud cost more but require no maintenance.
Should I recognize revenue from invoices or payments?
Pick a basis and stick to it. Accrual accounting recognizes revenue when invoiced; cash accounting recognizes it when paid. Don't add payments to invoiced revenue — payments settle invoices.