How to build PayPal payment dashboards in Metabase
PayPal processes your payments, refunds, and payouts across the web and marketplaces. Metabase is where you turn that transaction activity into shared dashboards for volume, net revenue, refunds, and disputes. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the PayPal MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs PayPal into a database so you can build volume, net-revenue, and dispute dashboards anyone can read.
How do you connect PayPal to Metabase?
Most teams combine both routes: use the PayPal MCP server and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the financial dashboards finance depends on.
Live data in, quick analysis out
Pair the official PayPal MCP server (to look up live transactions, orders, and disputes) with the Metabase CLI, whose upload command loads a CSV into Metabase as a ready-to-query table and model.
- Quick lookups like "which transactions were refunded today?"
- Loading a PayPal CSV export into Metabase in seconds
- Spot-checks and one-off analyses without a warehouse
- Great for exploration, not governed financial reporting
- The remote server uses OAuth; the local @paypal/mcp package uses an access token
- CSV uploads are snapshots — refresh or move to the pipeline for history
Durable dashboards with history
Sync PayPal via the Transaction Search / Reporting APIs (or a managed connector) into a database, then point Metabase at it.
- Processed-volume, net-revenue, and fee dashboards finance relies on
- Refund, dispute, and chargeback trends over time
- Joining payments with orders, product, and support data
- Requires a destination database and a sync to maintain
- PayPal fees and holds affect net — model them explicitly
- Reconcile against PayPal reports before anyone trusts the numbers
What can you analyze from PayPal data in Metabase?
- Processed volume — gross volume and transaction count
- Net revenue — what lands after PayPal fees and refunds
- Refunds and disputes — refund rate, chargebacks, and win/loss
- Payment mix — by type, country, and currency
- Fees — cost of processing as a share of volume
- Payouts — settlement and withdrawals over time
Which PayPal dashboards should you build in Metabase?
Volume & net revenue
Processed volume and what lands after PayPal fees.
- Processed volume and count by day (line)
- Net revenue after PayPal fees (line)
- Gross vs. net by month (dual bar)
- Average transaction value (number)
Refunds & disputes
Where money leaks back out.
- Refund rate and refunded amount (number + line)
- Disputes and chargebacks by month (bar)
- Dispute win/loss rate (table)
- Reasons for refunds and disputes (bar)
Payments mix
How customers pay and from where.
- Volume by payment type (bar)
- Volume by country and currency (map/table)
- New vs. returning payers (line)
- Capture success rate (line)
Fees & payouts
Cost of processing and cash landing in your account.
- Fees as a share of volume (line)
- Payouts / withdrawals over time (bar)
- Currency conversion costs (table)
- Net settlement by month (number)
How do you use the PayPal MCP server with the Metabase CLI?
Pair the PayPal MCP server with the Metabase CLI for fast, hands-on analysis. PayPal offers a remote MCP server (OAuth) and a local @paypal/mcp package that look up live transactions, orders, and disputes; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model.
Example workflow
- Ask the PayPal MCP which transactions were refunded today, or pull an order's captures and refunds.
- Export the transactions, refunds, and disputes 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 PayPal MCP is great for live lookups — not for scheduled or audited financial reporting.
- A CSV upload is a point-in-time snapshot; volume and dispute trends still need a warehouse sync, or refresh with
mb upload replace. - Respect PayPal API rate limits and the scope of the credentials.
mb upload csvneeds an uploads database configured under Admin → Settings → Uploads.
How do you set up the PayPal MCP server and the Metabase CLI?
PayPal MCP official
- Endpoint
https://mcp.paypal.com/sseor/http- Sandbox
https://mcp.sandbox.paypal.com/*- Auth
- OAuth (browser login)
- Local
@paypal/mcp(npm) with an access token
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)
# PayPal (remote, OAuth in browser) — production
claude mcp add --transport http paypal https://mcp.paypal.com/http
# Sandbox: https://mcp.sandbox.paypal.com/http{
"mcpServers": {
"paypal": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.paypal.com/sse"]
}
}
}The remote server opens a browser to authorize on first connection. Prefer a self-run server with an access token? Use the local package:
{
"mcpServers": {
"paypal": {
"command": "npx",
"args": ["-y", "@paypal/mcp", "--tools=all"],
"env": {
"PAYPAL_ACCESS_TOKEN": "<YOUR_PAYPAL_ACCESS_TOKEN>",
"PAYPAL_ENVIRONMENT": "SANDBOX"
}
}
}
}# 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 PayPal CSV export — creates a table AND a model
mb upload csv --file paypal-transactions.csv --collection root
# Refresh that same table later from a new export
mb upload replace <table-id> --file paypal-transactions.csvThe Metabase CLI stores its credentials securely after mb auth login.
Can you generate a PayPal dashboard with AI?
Yes. Use the prompt below with any assistant that can run the PayPal MCP server and the Metabase CLI. It works end to end: if PayPal tables already exist in Metabase it analyzes those; otherwise it pulls the data over the PayPal MCP, loads it with mb upload csv, then builds the dashboard — separating gross from net and skipping cards it has no data for.
Create a polished Metabase dashboard for PayPal payments 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 processed volume, net revenue
after fees, refunds, disputes/chargebacks, and payment mix from PayPal data.
Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for PayPal tables and
models). If durable PayPal 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 PayPal MCP server (OAuth on the remote
server, or an access token with the local @paypal/mcp package): transactions,
orders/payments, captures, refunds, disputes, and payouts. 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 (PayPal data often arrives as a transactions
export from the Transaction Search / Reporting API). Map the available raw tables
into these analytical concepts where possible: Transactions, Orders/Payments,
Captures, Refunds, Disputes, Fees, and Payouts. Inspect the actual tables and
column names first.
Important:
- Build on whatever data is present; don't claim Metabase connects natively to
PayPal — it reads a database or CLI-uploaded tables.
- Separate gross processed volume from net revenue (after PayPal fees and
refunds).
- Compute payment/capture success rate on a consistent denominator.
- Show refunds and disputes as their own lines; don't silently net them into
volume.
- Report in a single reporting currency; PayPal is multi-currency, so convert
with a documented rate or split by currency.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: volume and dispute trends need
history, so build trend cards only if a warehouse sync or multiple uploads
provide it.
Dashboard title: PayPal Payments Overview
Sections:
1. Executive summary (KPI cards): Processed volume; Net revenue; Fees %; Refund
rate; Dispute rate; Average transaction value.
2. Volume & net revenue: Volume by day; Gross vs. net; Average transaction value.
3. Refunds & disputes: Refund rate; Disputes/chargebacks by month; Win/loss rate.
4. Payments mix: Volume by payment type, country, and currency; Capture success
rate.
5. Fees & payouts: Fees as a share of volume; Payouts over time; Net settlement.
Filters: Payment type, Country, Currency, Date range.
Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_paypal_transactions, modeled_paypal_refunds, and
modeled_paypal_disputes.
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
PayPal reports. Keep it practical, dense, and executive-readable. Avoid vanity
metrics.How do you build the PayPal → Metabase pipeline?
For dashboards that need history and reliability, land PayPal data in a database first, then connect Metabase to that database.
Connector options
- Transaction Search API (free, first-party) — pull transaction history with fees and status into your own pipeline.
- Downloadable reports (free, CSV) — settlement and activity reports for periodic loads when an API pipeline is overkill.
- Airbyte — has a PayPal Transaction source for scheduled syncs. Free if you self-host the open-source version; paid on Airbyte Cloud.
Notes
- Land raw tables first, then build clean models on top.
- PayPal is multi-currency — convert to a single reporting currency or split by currency.
- Separate fees, refunds, and holds so net revenue is accurate.
- Transaction events can arrive as several rows (sale, fee, refund) — model a clean one-row-per-transaction view.
How should you model PayPal data in Metabase?
Core tables
| Concept | Grain | Key columns |
|---|---|---|
transactions | one row per transaction | transaction_id, txn_type, amount, fee_amount, currency, status, transaction_date |
orders | one row per order | order_id, payer_id, amount, status, created_at |
refunds | one row per refund | refund_id, transaction_id, amount, reason, created_at |
disputes | one row per dispute | dispute_id, transaction_id, amount, reason, outcome, opened_at |
payouts | one row per payout | payout_id, amount, status, arrival_date |
Modeling advice
- Build one clean
modeled_paypal_transactionsview: one row per transaction with gross, fee, and net. - Convert all amounts to a single reporting currency in a model layer.
- Link refunds and disputes to their original transaction to net them.
- Define success rate on a consistent denominator (comparable transaction types).
- Reconcile modeled totals against PayPal's settlement reports.
Which PayPal metrics should you track in Metabase?
| Metric | Definition | Notes |
|---|---|---|
| Processed volume | Sum of completed sale amounts. | Gross, before fees and refunds. |
| Net revenue | Gross − fees − refunds. | What the business keeps. |
| Fee rate | Fees ÷ processed volume. | Watch by payment type and currency. |
| Refund rate | Refunds ÷ sales. | By count or amount — label which. |
| Dispute / chargeback rate | Disputes ÷ transactions. | High rates risk account penalties. |
| Average transaction value | Volume ÷ transaction count. | Trend by segment. |
What SQL powers PayPal dashboards in Metabase?
These assume the modeled tables above (PostgreSQL dialect, amounts in minor units). Adjust identifiers to match your schema.
Processed volume and what lands after PayPal fees.
SELECT
date_trunc('day', transaction_date) AS day,
COUNT(*) AS transactions,
ROUND(SUM(amount) / 100.0, 2) AS gross_volume,
ROUND(SUM(fee_amount) / 100.0, 2) AS fees,
ROUND(SUM(amount - fee_amount) / 100.0, 2) AS net_volume
FROM paypal_transactions
WHERE status = 'completed'
AND transaction_date >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY 1
ORDER BY 1;Refunds as a share of sales.
SELECT
date_trunc('month', transaction_date) AS month,
COUNT(*) FILTER (WHERE txn_type = 'sale') AS sales,
COUNT(*) FILTER (WHERE txn_type = 'refund') AS refunds,
ROUND(100.0 * COUNT(*) FILTER (WHERE txn_type = 'refund')
/ NULLIF(COUNT(*) FILTER (WHERE txn_type = 'sale'), 0), 2)
AS refund_rate_pct
FROM paypal_transactions
GROUP BY 1
ORDER BY 1;How often you win disputes and chargebacks.
SELECT
date_trunc('month', opened_at) AS month,
COUNT(*) AS disputes,
COUNT(*) FILTER (WHERE outcome = 'won') AS won,
ROUND(100.0 * COUNT(*) FILTER (WHERE outcome = 'won')
/ NULLIF(COUNT(*), 0), 1) AS win_rate_pct
FROM paypal_disputes
GROUP BY 1
ORDER BY 1;