Pipedrive × Metabase

How to build Pipedrive sales dashboards in Metabase

Pipedrive is where your deals, stages, and activities live. Metabase is where you turn that pipeline activity into shared, trustworthy sales dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Pipedrive MCP server and loads a CSV into Metabase with the Metabase CLI for quick analysis, and a durable pipeline route that syncs Pipedrive into a database so you can build pipeline, win-rate, and conversion dashboards anyone can read.

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

How do you connect Pipedrive to Metabase?

Most teams combine both routes: use the Pipedrive MCP server and Metabase CLI route to pull live data and stand up a quick analysis, and the pipeline route for the sales dashboards the team depends on.

1 · MCP + CLI route (AI-assisted)

Live data in, quick analysis out

Pair Pipedrive's native MCP server (to read live deals, persons, and activities) 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 deals are rotting in negotiation?"
  • Loading a Pipedrive CSV export into Metabase in seconds
  • Spot-checks and one-off analyses without a warehouse
Trade-offs
  • Great for exploration, not governed reporting
  • Use a scoped, read-only Pipedrive connection to avoid accidental writes
  • CSV uploads are snapshots — refresh or move to the pipeline for history
2 · Pipeline route (warehouse-backed)

Durable dashboards with history

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

Best for
  • Pipeline, win-rate, and conversion dashboards the whole team relies on
  • Sales cycle and stage-conversion trends over quarters
  • Joining CRM data with product usage, billing, or support data
Trade-offs
  • Requires a destination database and a sync to maintain
  • You own the stage and win definitions and the refresh schedule
  • Sync deal flow / changes if you want accurate velocity metrics

What can you analyze from Pipedrive data in Metabase?

  • Pipeline — open value by stage, owner, and pipeline, plus coverage against target
  • Win rate — deals won vs. closed, by pipeline, source, and stage
  • Sales cycle length — add time to won, with median and p90
  • Stage conversion — where deals advance and where they stall
  • Velocity — time-in-stage and deal velocity
  • Deal size — average and median value, plus mix by pipeline
  • Activity — calls, emails, and meetings by rep and deal

Which Pipedrive dashboards should you build in Metabase?

For: Sales leaders

Pipeline

The open book of business, right now.

  • Open deals by stage (funnel)
  • Pipeline value by owner and pipeline (bar)
  • Coverage vs. target for the period (number)
  • Rotting deals and stale stages (table)
For: Sales ops

Conversion

Where deals advance and where they stall.

  • Stage-to-stage conversion (funnel)
  • Win rate by pipeline and source (bar)
  • Deals added vs. won by week (dual line)
  • Loss reasons breakdown (bar)
For: Revenue leadership

Velocity

How fast deals move and close.

  • Median sales cycle length (number + trend)
  • Time-in-stage by stage (bar)
  • Deal velocity: value / cycle time (number)
  • Aging of open deals (table)
For: Managers

Sales activity

Effort and coverage, not surveillance.

  • Activities by type and rep (bar)
  • Activities per open deal (number)
  • Overdue activities (number)
  • New-deal response time (line)

How do you use the Pipedrive MCP server with the Metabase CLI?

Pair the Pipedrive MCP server with the Metabase CLI for fast, hands-on analysis. The Pipedrive MCP looks up current deals, persons, and activities; the Metabase CLI's upload command loads a CSV into Metabase and creates a ready-to-query table and model. For analysis, use a scoped, read-only connection.

Example workflow

  • Ask the Pipedrive MCP which deals are rotting in a late stage, or an organization's open deals and recent activities.
  • Export the deals or activity you want to keep as a CSV.
  • Run mb upload csv to load it into Metabase as a table and model, then build questions and dashboards on top.

Be honest about the limits

  • The Pipedrive MCP is great for live lookups — not for scheduled or audited pipeline reporting.
  • A CSV upload is a point-in-time snapshot; refresh it with mb upload replace or move to the pipeline for real history — sales cycle and stage conversion still need synced deal history.
  • Use a scoped, read-only connection and respect Pipedrive API rate limits and the permissions of the connected user.
  • mb upload csv needs an uploads database configured under Admin → Settings → Uploads.

How do you set up the Pipedrive MCP server and the Metabase CLI?

Pipedrive MCPofficial

Type
Native MCP server, built by Pipedrive
Auth
OAuth connection (no coding), all plans
Setup
Follow Pipedrive's MCP connection flow
Local
Community @ckalima/pipedrive-mcp-server (stdio, API key)

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)

Pipedrive's native server connects through a secure OAuth flow in your MCP client and respects your user permissions and change logs. If you'd rather run a local server with a scoped API token, a community package works too:

CursorLocal community server (stdio + API key)
{
  "mcpServers": {
    "pipedrive": {
      "command": "npx",
      "args": ["-y", "@ckalima/pipedrive-mcp-server"],
      "env": {
        "PIPEDRIVE_API_KEY": "your-40-character-api-key"
      }
    }
  }
}
TerminalLoad a Pipedrive 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 Pipedrive CSV export — creates a table AND a model
mb upload csv --file pipedrive-deals.csv --collection root

# Refresh that same table later from a new export
mb upload replace <table-id> --file pipedrive-deals.csv

Because the local option is community-maintained, review the package source and use a scoped, read-only PIPEDRIVE_API_KEY for analysis work. 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 Pipedrive's current MCP setup in the Pipedrive developer docs.

Can you generate a Pipedrive dashboard with AI?

Yes. Use the prompt below with any assistant that can run the Pipedrive MCP server and the Metabase CLI. It works end to end: if Pipedrive tables already exist in Metabase it analyzes those; otherwise it pulls the data over the Pipedrive MCP, loads it with mb upload csv, then builds the dashboard — defining "won" and "closed" and skipping metrics the data can't support instead of faking them.

Prompt for creating a Pipedrive Sales Overview dashboard
Create a polished Metabase dashboard for Pipedrive sales analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.

Goal: Help sales leaders understand pipeline, win rate, conversion, sales cycle,
and rep activity from Pipedrive CRM data.

Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for Pipedrive tables and
  models). If durable Pipedrive 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 Pipedrive MCP server (scoped, read-only
  where supported): deals, pipelines/stages, persons, organizations, and
  activities. 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:
Pipedrive CSV exports are usually flat and pre-aggregated (one row per deal,
person, or organization, with columns like stage, value, status, and add time).
Warehouse tables are raw and include deal flow / changes for velocity metrics.
Inspect the actual tables and column names first; do not assume exact names or
that deal-flow history exists.

Important:
- Build on whatever data is present; don't claim Metabase connects natively to
  Pipedrive — it reads a database or CLI-uploaded tables.
- Only recompute rates over the correct base (e.g. win rate) when raw counts are
  available; if the data already provides a rate, chart it directly.
- Define "won" and "closed" once (status = won vs. won/lost) and reuse them.
- For win rate, state the denominator explicitly (won / closed vs. won / created)
  and hold the cohort fixed.
- Report sales cycle length and deal size as medians (p50) and p90, never plain
  averages — both are right-skewed.
- If deal flow/stage-change history is missing, do not calculate sales cycle
  length, time-in-stage, or stage conversion. Use a caveat instead.
- Convert all amounts to a single reporting currency; caveat any mix.
- Only build a card if its underlying column/metric exists in the data.
- A single CSV is a point-in-time snapshot: only build trend cards if there is a
  usable date column or multiple periods have been uploaded.

Dashboard title: Pipedrive Sales Overview

Sections:
1. Executive summary (KPI cards): Open pipeline; Coverage vs. target; Win rate
   (last 90 days); Median sales cycle length; Average and median deal size;
   Deals closing this period.
2. Pipeline: Open deals by stage; value by owner and pipeline; rotting deals.
3. Conversion: Stage-to-stage conversion; win rate by pipeline and source; loss
   reasons.
4. Velocity: Median cycle length; time-in-stage; deal velocity; aging.
5. Activity: Activities by type and rep; activities per open deal; overdue
   activities.

Filters: Pipeline, Stage, Owner, Source, Date range.

Reuse the models Metabase auto-created from uploaded CSVs, or (for a warehouse)
create reusable models: modeled_pipedrive_deals,
modeled_pipedrive_stage_history, modeled_pipedrive_persons,
modeled_pipedrive_organizations, and modeled_pipedrive_activities.

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
Pipedrive's Insights. Keep it practical, dense, and executive-readable. Avoid
vanity metrics.

How do you sync Pipedrive data into a database or warehouse?

For dashboards that need history and reliability, land Pipedrive data in a database first, then connect Metabase to that database.

Connector options

  • Airbyte (managed ETL) — has a Pipedrive source covering deals, persons, organizations, activities, and more.
  • Fivetran (managed ETL) — offers a Pipedrive connector with a maintained schema and incremental syncs.
  • dlt (code) — a verified Pipedrive source for a Python pipeline when you want full control.
  • Pipedrive API (raw) — the source of truth; use the deals, stages, and deal flow endpoints for stage changes.

Notes

  • Land raw tables first, then build clean models on top.
  • Sync deal flow / changes if you want sales cycle length, time-in-stage, and stage conversion — a snapshot alone loses the transitions.
  • Map stage IDs to names and an order once, in a model, so funnels stay stable.
  • Deals have status (open / won / lost) and a won_time / lost_time — use those to define closed_at.

How should you model Pipedrive data in Metabase?

Core tables

TableGrainKey columns
dealsone row per dealid, stage_id, pipeline_id, value, currency, status, add_time, won_time, user_id
deal_flowone row per changedeal_id, field_key (stage_id), old_value, new_value, log_time
stagesone row per stageid, pipeline_id, name, order_nr, deal_probability
personsone row per personid, org_id, add_time, owner_id
organizationsone row per orgid, name, owner_id
activitiesone row per activityid, deal_id, type, done, due_date, user_id

Modeling advice

  • Build a modeled_pipedrive_deals table with clean status, stage_id, value (one currency), and closed_at (won_time or lost_time).
  • Derive modeled_pipedrive_stage_history from deal_flow (stage_id changes) for time-in-stage and cycle length.
  • Resolve stage and pipeline IDs to names and order once, in a model.
  • Convert deal value to one reporting currency if you sell in several.
  • Reconcile modeled pipeline and win rate against Pipedrive Insights before anyone trusts the numbers.

Which Pipedrive metrics should you track in Metabase?

MetricDefinitionNotes
Open pipelineSum of value for open deals.Segment by stage, owner, pipeline.
Win rateWon ÷ closed deals in a cohort.Fix the denominator (closed vs. created) before comparing.
Sales cycle lengthAdd time → won, in days.Report median and p90; it's right-skewed.
Stage conversionDeals reaching stage N+1 ÷ reaching stage N.Needs deal flow history.
Deal velocityWon value ÷ average cycle time.Read alongside coverage, not alone.
Average deal sizeWon value ÷ won deals.Report the median too; outliers distort the mean.

What SQL powers Pipedrive dashboards in Metabase?

These assume the modeled tables above (PostgreSQL dialect). Adjust identifiers to match your warehouse.

Win rate by monthPostgreSQL

Won as a share of closed deals over the last 12 months.

SELECT
  date_trunc('month', d.closed_at) AS month,
  COUNT(*) FILTER (WHERE d.status = 'won')                     AS won,
  COUNT(*) FILTER (WHERE d.status IN ('won', 'lost'))          AS closed,
  ROUND(
    100.0 * COUNT(*) FILTER (WHERE d.status = 'won')
      / NULLIF(COUNT(*) FILTER (WHERE d.status IN ('won', 'lost')), 0),
    1
  ) AS win_rate_pct
FROM modeled_pipedrive_deals d
WHERE d.status IN ('won', 'lost')
  AND d.closed_at >= CURRENT_DATE - INTERVAL '12 months'
GROUP BY 1
ORDER BY 1;
Open pipeline by stagePostgreSQL

The current funnel — deals and value by stage, in order.

SELECT
  s.name         AS stage_name,
  s.order_nr,
  COUNT(*)       AS open_deals,
  ROUND(SUM(d.value), 2) AS open_value
FROM modeled_pipedrive_deals d
JOIN modeled_pipedrive_stages s ON s.id = d.stage_id
WHERE d.status = 'open'
GROUP BY s.name, s.order_nr
ORDER BY s.order_nr;
Sales cycle length (median and p90)PostgreSQL

Days from add to won; medians beat averages here.

-- Median days from add to won, by month closed
SELECT
  date_trunc('month', d.closed_at) AS month,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (d.closed_at - d.add_time)) / 86400.0
  ) AS median_cycle_days,
  percentile_cont(0.9) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (d.closed_at - d.add_time)) / 86400.0
  ) AS p90_cycle_days
FROM modeled_pipedrive_deals d
WHERE d.status = 'won'
GROUP BY 1
ORDER BY 1;

What are common mistakes when analyzing Pipedrive in Metabase?

Treating a live MCP lookup or a one-off CSV as governed reporting.→ Use the Pipedrive MCP and CSV uploads for live exploration; build warehouse-backed dashboards for anything people depend on.
Computing sales cycle without deal flow history.→ Sync deal flow / changes — a current snapshot can't tell you when a deal entered or left a stage.
Leaving win rate's denominator ambiguous.→ Won ÷ closed and won ÷ created are different metrics — pick one and label it.
Summing values across currencies.→ Convert to one reporting currency before totaling deal value.
Averaging deal size and cycle length.→ Both are right-skewed; report the median (and p90) alongside the mean.
Never reconciling with Pipedrive Insights.→ Sanity-check modeled pipeline and win rate against Pipedrive's own reports before trusting them.

Related analytics

Related metrics

Related integrations

FAQ

Does Metabase connect natively to Pipedrive?
No. Metabase reads databases and warehouses. Sync Pipedrive into a database first (Airbyte, Fivetran, dlt, or the API), then connect Metabase to that database.
Is there an official Pipedrive MCP server?
Yes. Pipedrive launched a native MCP server that connects through a secure OAuth flow, works with MCP-compatible clients, respects user permissions, and is available on all plans. A community package (@ckalima/pipedrive-mcp-server) also offers a local, API-key server for self-hosted setups. Use MCP for live lookups, not governed reporting.
How do I quickly load Pipedrive data without a warehouse?
Export a CSV from Pipedrive 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.
How do I calculate sales cycle length from Pipedrive data?
Sync deal flow (stage changes), then measure days from add_time to won_time. Report the median and p90 rather than the average — the distribution is heavily right-skewed.