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.
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.
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.
- 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
- 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
Durable dashboards with history
Sync Pipedrive into a database or warehouse with Airbyte, Fivetran, dlt, or the API, then point Metabase at it.
- 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
- 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?
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)
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)
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)
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 csvto 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 replaceor 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 csvneeds 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:
{
"mcpServers": {
"pipedrive": {
"command": "npx",
"args": ["-y", "@ckalima/pipedrive-mcp-server"],
"env": {
"PIPEDRIVE_API_KEY": "your-40-character-api-key"
}
}
}
}# 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.csvBecause 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.
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.
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 awon_time/lost_time— use those to define closed_at.
How should you model Pipedrive data in Metabase?
Core tables
| Table | Grain | Key columns |
|---|---|---|
deals | one row per deal | id, stage_id, pipeline_id, value, currency, status, add_time, won_time, user_id |
deal_flow | one row per change | deal_id, field_key (stage_id), old_value, new_value, log_time |
stages | one row per stage | id, pipeline_id, name, order_nr, deal_probability |
persons | one row per person | id, org_id, add_time, owner_id |
organizations | one row per org | id, name, owner_id |
activities | one row per activity | id, deal_id, type, done, due_date, user_id |
Modeling advice
- Build a
modeled_pipedrive_dealstable with cleanstatus,stage_id,value(one currency), andclosed_at(won_time or lost_time). - Derive
modeled_pipedrive_stage_historyfromdeal_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
valueto 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?
| Metric | Definition | Notes |
|---|---|---|
| Open pipeline | Sum of value for open deals. | Segment by stage, owner, pipeline. |
| Win rate | Won ÷ closed deals in a cohort. | Fix the denominator (closed vs. created) before comparing. |
| Sales cycle length | Add time → won, in days. | Report median and p90; it's right-skewed. |
| Stage conversion | Deals reaching stage N+1 ÷ reaching stage N. | Needs deal flow history. |
| Deal velocity | Won value ÷ average cycle time. | Read alongside coverage, not alone. |
| Average deal size | Won 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.
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;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;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;