How to build Vercel dashboards in Metabase
Vercel is a frontend cloud platform for deploying and hosting web applications, with builds, previews, and edge infrastructure. Metabase is where you turn those operational signals into shared, trustworthy dashboards. This guide covers two complementary paths: a lightweight MCP + CLI route that pulls live data with the Vercel MCP and loads a CSV into Metabase with the Metabase CLI, and a durable pipeline route that syncs Vercel rollups into a database so you can build dashboards anyone can read.
How do you connect Vercel to Metabase?
Most teams combine both routes: use MCP and CLI uploads for a fast first pass, then move recurring reliability reporting to a warehouse-backed model.
Live data in, quick analysis out
Pair the Vercel MCP with the Metabase CLI. Use MCP for live lookups, write a scoped result to CSV, then load it into Metabase as a ready-to-query table and model.
- Quick lookups such as "show me deployment frequency and failures"
- Loading a Vercel export into Metabase in seconds
- Spot-checks and one-off analyses without a warehouse
- Great for exploration, not governed reliability reporting
- Use read-only/scoped credentials wherever the MCP server supports them
- CSV uploads are snapshots — refresh or move to the pipeline for history
Durable dashboards with history
Sync Vercel rollups and metadata into a database or warehouse with a connector, custom pipeline, or API, then point Metabase at it.
- Vercel reliability dashboards leaders depend on
- Joining Vercel data with deploys, issues, support, or cost data
- Long-run trends for deployment frequency and failures and build duration trends
- You own the refresh schedule and the rollup grain
- Sync aggregates and entities — not the raw event firehose
- Metric definitions must be consistent across services and teams
What can you analyze from Vercel data in Metabase?
- Deployment frequency and failures — built from deployments and the related builds, checks, projects data your sync exposes.
- Build duration trends — built from deployments and the related builds, checks, projects data your sync exposes.
- Preview vs. production activity — built from deployments and the related builds, checks, projects data your sync exposes.
- Project delivery health — built from deployments and the related builds, checks, projects data your sync exposes.
- Error and rollback correlation — built from deployments and the related builds, checks, projects data your sync exposes.
Which Vercel dashboards should you build in Metabase?
Deployment health
How often you ship and how often it fails.
- Production deployments per week (bar)
- Failed and canceled deployments (line)
- Deployment frequency by project (table)
- Change failure rate (number + trend)
Build performance
Whether the path to production is getting slower.
- Median build duration by week (line)
- p95 build duration by project (bar)
- Failed builds and checks per week (bar)
- Slowest projects to build (table)
Preview and promotion flow
How work moves from preview to production.
- Preview vs. production deployments per week (stacked bar)
- Time from first preview to production (line)
- Active projects by deployment volume (table)
- Stale projects with no recent deploys (table)
Release quality
What each release did to production.
- Deployments followed by an error spike (table, joined to error data)
- Rollbacks and redeploys per week (bar)
- Checks failed per deployment (line)
- Releases per project, trailing 30 days (bar)
How do you use the Vercel MCP with the Metabase CLI?
Pair the Vercel MCP with the Metabase CLI for fast, hands-on analysis. MCP is useful for scoped lookups and summarized exports; the Metabase CLI's upload command loads CSV data into Metabase and creates a ready-to-query table and model.
Example workflow
- Ask the MCP server for the latest deployments with status, environment, and build duration.
- Export the result as CSV, keeping stable IDs, services, environments, severities, and timestamps.
- 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
- MCP lookups are excellent for exploration, not scheduled reporting.
- A CSV upload is a snapshot; refresh it with
mb upload replaceor move to the pipeline for real history. - Deployment timestamps and statuses are required for frequency and failure trends.
mb upload csvneeds an uploads database configured under Admin → Settings → Uploads.
How do you set up Vercel MCP and the Metabase CLI?
Vercel MCPofficial
- Transport
- Hosted remote MCP via Streamable HTTP
- Auth
- OAuth through Vercel (approved AI clients only)
- Best for
- Live scoped lookup and export
Metabase CLIofficial
- Install
npm install -g @metabase/cli- Auth
mb auth login- Load data
mb upload csv --file data.csv- Requires
- An uploads database (Admin → Settings → Uploads)
{
"mcpServers": {
"vercel": {
"url": "https://mcp.vercel.com"
}
}
}Only Vercel-approved clients (Claude, Cursor, ChatGPT, VS Code, and others) can connect; the OAuth grant carries your user's access, so scope it deliberately.
# 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 deployments export — creates a table AND a model
mb upload csv --file vercel-deployments.csv --collection root
# Refresh that same table later from a new export
mb upload replace <table-id> --file vercel-deployments.csvCan you generate a Vercel dashboard with AI?
Yes. Use the prompt below with any assistant that can run the Vercel MCP and the Metabase CLI. It works end to end: if Vercel tables already exist in Metabase it analyzes those; otherwise it pulls scoped, summarized data over MCP, loads it with mb upload csv, then builds the dashboard and caveats any metric that needs missing history.
Create a polished Metabase dashboard for Vercel deployment analytics analytics.
Work end to end: get the data into Metabase if it isn't there yet, then build.
Goal: Help engineering and operations leaders understand deployment frequency, build performance, preview flow, and release quality from Vercel data.
Step 1 — Find or load the data:
- First, check what already exists in Metabase (search for vercel tables and
models). If durable Vercel data is already present — synced from a warehouse
or uploaded earlier — use it and skip to Step 2.
- If nothing is there, pull a scoped, summarized export with the Vercel MCP:
deployments, plus builds, checks, projects.
Prefer aggregated or rollup views over raw events. 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 or column names. Inspect available fields, services,
environments, timestamps, and whether rollups or history exist before creating
duration or trend cards.
Important:
- Build on whatever data is present; don't claim Metabase connects natively to
Vercel — it reads a database or CLI-uploaded tables.
- Never try to load the raw event firehose into Metabase; use rollups, entity
tables, and incident- or group-grain data.
- Only compute durations (MTTA, MTTR, time-to-resolve) when the required
timestamps exist.
- Exclude test, staging, or muted objects from headline reliability cards, and
segment by environment where the field exists.
- 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: Vercel Deployment Analytics Overview
Sections:
1. Executive summary: Production deploys last 30 days; Failed deploys; Median
build duration; Active projects; Change failure rate.
2. Deployment health: Deploys by week and project; failed/canceled deploys.
3. Build performance: Median and p95 build duration by week and project.
4. Preview flow: Preview vs production deploys; time from preview to production.
5. Release quality: Rollbacks/redeploys; failed checks per deployment.
Filters: Date range, Service, Environment, Severity, Team, Status.
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.How do you sync Vercel data into a database or warehouse?
For dashboards that need history and reliability, land Vercel rollups and metadata in a database first, then connect Metabase to that database.
Connector options
- Managed ETL — use a connector when one covers the objects you need.
- Custom pipeline — use the Vercel REST API for control over rollup grain, fields, and refresh cadence.
- MCP + CSV — use this for quick exploration and one-off slices.
Sync deployments, builds, and projects with the Airbyte Vercel source or scripts against the Vercel REST API; Fivetran covers it via a Connector SDK example rather than a managed connector.
Notes
- Decide the rollup grain first (hourly or daily per service/environment) — it drives warehouse cost and every trend card.
- Land raw entity tables first, then build clean Metabase models on top.
- Normalize project, environment, deploy status, build-duration, and deployed-at fields.
How should you model Vercel data in Metabase?
Core tables
| Table | Grain | Key columns |
|---|---|---|
deployments | one row per deployment | id, project_id, environment, deployed_at, status, build_duration_seconds, creator_id |
vercel_projects | one row per project | id, name, framework, team_id, created_at |
vercel_checks | one row per deployment check | id, deployment_id, name, conclusion, started_at, completed_at |
Modeling advice
- Build a clean
deploymentsmodel with common columns across tools, so multi-source dashboards don't fork definitions. - Separate entity tables (services, monitors, policies) from time-series rollups and event-grain tables.
- Exclude test, staging, and muted objects from headline reliability metrics; keep environment as an explicit column.
- Use stable IDs for service, team, and incident joins; display names change.
Which Vercel metrics should you track in Metabase?
| Metric | Definition | Notes |
|---|---|---|
| Deployment frequency | Production deployments per period — a DORA throughput metric. | Count production deploys, not previews or merges. |
| Change failure rate | Deployments causing failures divided by all deployments. | Rollbacks and instant redeploys are the failure signal. |
| Lead time for changes | Commit to running in production — a DORA throughput metric. | Build duration is the pipeline slice of it. |
| Error rate | Error events divided by total requests or sessions. | Join an error tracker's release tags to deploys. |
What SQL powers Vercel dashboards in Metabase?
These assume a cleaned analytical model in a warehouse (PostgreSQL dialect). Adjust table and column names to match your pipeline.
Change volume and stability together.
SELECT
date_trunc('week', deployed_at) AS week,
COUNT(*) AS deployments,
COUNT(*) FILTER (WHERE status IN ('failed', 'rolled_back')) AS failed,
ROUND(
100.0 * COUNT(*) FILTER (WHERE status IN ('failed', 'rolled_back'))
/ NULLIF(COUNT(*), 0), 1
) AS change_failure_rate
FROM deployments
WHERE environment = 'production'
GROUP BY 1
ORDER BY 1;Whether the path to production is getting slower.
SELECT
date_trunc('week', deployed_at) AS week,
percentile_cont(0.5) WITHIN GROUP (
ORDER BY build_duration_seconds
) AS median_build_seconds,
percentile_cont(0.95) WITHIN GROUP (
ORDER BY build_duration_seconds
) AS p95_build_seconds
FROM deployments
WHERE status = 'success'
GROUP BY 1
ORDER BY 1;Flow from pull-request previews to shipped releases.
SELECT
date_trunc('week', deployed_at) AS week,
COUNT(*) FILTER (WHERE environment = 'production') AS production_deploys,
COUNT(*) FILTER (WHERE environment <> 'production') AS preview_deploys
FROM deployments
WHERE status = 'success'
GROUP BY 1
ORDER BY 1;