PayPal × Metabase

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.

Heads up: Metabase connects to databases and warehouses — it does not ship a native PayPal connector. For dashboards that need history, sync PayPal (via the Transaction Search / Reporting APIs or a managed connector) into a database first.

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.

1 · MCP + CLI route (AI-assisted)

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.

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

Durable dashboards with history

Sync PayPal via the Transaction Search / Reporting APIs (or a managed connector) into a database, then point Metabase at it.

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

For: Founders, finance

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

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)
For: Growth, product

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

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 csv to 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 csv needs 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/sse or /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)
ClaudeClaude Code CLI
# PayPal (remote, OAuth in browser) — production
claude mcp add --transport http paypal https://mcp.paypal.com/http

# Sandbox: https://mcp.sandbox.paypal.com/http
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "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:

Local PayPal MCP (@paypal/mcp)
{
  "mcpServers": {
    "paypal": {
      "command": "npx",
      "args": ["-y", "@paypal/mcp", "--tools=all"],
      "env": {
        "PAYPAL_ACCESS_TOKEN": "<YOUR_PAYPAL_ACCESS_TOKEN>",
        "PAYPAL_ENVIRONMENT": "SANDBOX"
      }
    }
  }
}
TerminalLoad a PayPal 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 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.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 PayPal MCP setup in the PayPal MCP docs.

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.

Prompt for creating a PayPal Payments Overview dashboard
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.

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

  • 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

ConceptGrainKey columns
transactionsone row per transactiontransaction_id, txn_type, amount, fee_amount, currency, status, transaction_date
ordersone row per orderorder_id, payer_id, amount, status, created_at
refundsone row per refundrefund_id, transaction_id, amount, reason, created_at
disputesone row per disputedispute_id, transaction_id, amount, reason, outcome, opened_at
payoutsone row per payoutpayout_id, amount, status, arrival_date

Modeling advice

  • Build one clean modeled_paypal_transactions view: 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?

MetricDefinitionNotes
Processed volumeSum of completed sale amounts.Gross, before fees and refunds.
Net revenueGross − fees − refunds.What the business keeps.
Fee rateFees ÷ processed volume.Watch by payment type and currency.
Refund rateRefunds ÷ sales.By count or amount — label which.
Dispute / chargeback rateDisputes ÷ transactions.High rates risk account penalties.
Average transaction valueVolume ÷ 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.

Daily volume, fees, and netPostgreSQL

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;
Refund rate by monthPostgreSQL

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;
Dispute win rate by monthPostgreSQL

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;

What are common mistakes when analyzing PayPal in Metabase?

Treating a live MCP lookup or a one-off CSV as governed financial reporting.→ Use the PayPal MCP and CSV uploads for lookups and triage; build warehouse-backed Metabase dashboards for anything finance depends on.
Reporting gross without fees and refunds.→ Subtract PayPal fees and refunds to see the net the business actually keeps.
Mixing currencies into one number.→ Convert to a single reporting currency, or split by currency and say so.
Counting fee and refund rows as separate transactions.→ Model one row per transaction with gross/fee/net, or volume is overstated.
Never reconciling with PayPal reports.→ Sanity-check modeled volume and net against PayPal's settlement reports before trusting them.

Related analytics

Related metrics

Related integrations

FAQ

Does Metabase connect natively to PayPal?
No. Metabase reads SQL databases and warehouses. Sync PayPal into a database first (the Transaction Search / Reporting APIs, a managed connector, or downloadable reports), then connect Metabase to that database.
How do I quickly analyze PayPal data without a warehouse?
Pull the objects you need with the PayPal MCP server (OAuth on the remote server, or an access token with the local @paypal/mcp package), 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.
Should I use the remote or local MCP server?
Both work. The remote server (mcp.paypal.com) uses an OAuth browser login; the local @paypal/mcp package runs on your machine with an access token and lets you target the sandbox. Use whichever your client supports.
How do I get net revenue, not just volume?
Model gross, fees, and refunds per transaction, then net = gross − fees − refunds. PayPal's fee lines are the key input — keep them linked to the original transaction.