Meridian Studio

Marketing mix modeling, right in your editor.
Meridian Studio brings Google Meridian to VS Code and Cursor. You describe
your data, your models and your budget scenarios in small YAML files, then fit and optimize them with one click.
Every run is tracked in MLflow.
Read the documentation →

Unofficial community project. Not affiliated with, endorsed by or sponsored by Google. Meridian and the
Meridian logo are trademarks of Google LLC. Google has its own, unrelated product called
Meridian Studio.
Why use it
- Your model is code. Datasets, models and scenarios are plain YAML files: review them in pull requests and
keep their history in git.
- No Python setup. The first run installs everything Meridian needs, without touching your system Python.
- Help as you type. Autocomplete, inline errors and one-click fixes, based on the columns of your own CSV.
- Data checked before you fit. Missing weeks, negative spend or a channel that never spends are flagged like
linter warnings, before a fit wastes your time.
- Results next to your YAML. R², MAPE, convergence, ROI per channel, and Meridian's health score for each fit.
- Every run tracked. Each fit and optimization is logged to MLflow, on your machine or on your tracking server.
Install
- VS Code: install Meridian Studio
from the Marketplace.
- Cursor: download the
.vsix from the Marketplace page, then run
cursor --install-extension meridian-studio-<version>.vsix.
Quick start
- Add your data. Open the folder that holds your weekly CSV, click the Meridian icon in the activity bar, then
New dataset and pick the CSV. Meridian Studio guesses what each column is (dates, KPI, spend per channel…)
and writes the dataset's YAML. Complete anything it could not guess: autocomplete suggests your columns.
- Fit a model. Click New model on that dataset, then ▶ Fit above the file. The results open beside
the editor after a few minutes.
- Plan a budget. Click New scenario on that model, set a budget, then ▶ Optimize to see how Meridian
would split it across your channels.
The first fit downloads Python and Meridian (about 1 GB, a few minutes, only once). Fits run on your machine, on CPU.
No CSV at hand? Open the examples/ folder: a ready-made project on Meridian's sample data.
How a project looks
Three folders, one kind of file in each:
| Folder |
Each file describes |
Button |
datasets/ |
a CSV, and what each of its columns means |
|
models/ |
a dataset, Meridian's model settings and priors |
▶ Fit |
scenarios/ |
a fitted model, a budget and limits for each channel |
▶ Optimize |
A model, for example:
name: sales-v1
dataset: weekly-sales
model_spec:
max_lag: 8
priors:
roi_m: # what you expect each channel's ROI to be
dist: LogNormal
default: { mean: 1.0, sd: 1.0 }
tv: { mean: 1.5, sd: 0.8 }
And a scenario that asks: with 10% more budget, and each channel within ±30% of its current spend, what is the
best split?
name: plus-10
model: sales-v1
budget: +10%
bounds: { lower: 0.3, upper: 0.3 }

Learn more
The documentation covers everything in detail:
Contributing
Run bun install, then press F5: VS Code opens examples/ with the extension loaded. bun run test runs the
tests. How the code is organized, the other test suites, releases and the documentation site are described in
Development.
License
Apache License 2.0, see LICENSE and NOTICE. Google Meridian is also Apache 2.0; it is installed when you first
run a fit, not bundled with the extension. The icons in media/ reproduce the Meridian logo, a Google trademark,
and are not covered by this license.