analytics-data

Vizro

by mckinsey

Vizro creates and validates data-visualization dashboards from natural language, auto-generating chart code and interact

Enables creation and validation of data visualization dashboards through natural language by generating chart code, validating configurations, and producing interactive Vizro visualizations with PyCafe preview links.

github stars

3.6K

Natural language to chart generationPyCafe preview integrationBuilt-in configuration validation

best for

  • / Data analysts building interactive dashboards
  • / Teams prototyping visualizations quickly
  • / Users wanting code-free chart creation
  • / Dashboard validation and testing workflows

capabilities

  • / Generate chart code from natural language descriptions
  • / Validate dashboard configurations and chart code
  • / Load and analyze CSV/JSON data files
  • / Create interactive Vizro visualizations
  • / Generate PyCafe preview links for dashboards
  • / Access sample datasets for testing

what it does

Creates interactive data visualization dashboards through natural language by generating chart code and validating Vizro configurations. Provides PyCafe preview links for immediate visualization testing.

about

Vizro is an official MCP server published by mckinsey that provides AI assistants with tools and capabilities via the Model Context Protocol. Vizro creates and validates data-visualization dashboards from natural language, auto-generating chart code and interact It is categorized under analytics data. This server exposes 6 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Vizro in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

Apache-2.0

Vizro is released under the Apache-2.0 license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme



Vizro logo #### Vizro is a low-code toolkit for building high-quality data visualization apps [![Python version](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://pypi.org/project/vizro/) [![PyPI version](https://badge.fury.io/py/vizro.svg)](https://badge.fury.io/py/vizro) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/mckinsey/vizro/blob/main/LICENSE.md) [![Documentation](https://readthedocs.org/projects/vizro/badge/?version=stable)](https://vizro.readthedocs.io/) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/7858/badge)](https://www.bestpractices.dev/projects/7858) [Documentation](https://vizro.readthedocs.io/en/stable/) | [Get Started](https://vizro.readthedocs.io/en/stable/pages/tutorials/first_dashboard/) Gif to demonstrate Vizro features

## What is Vizro? Vizro is an open-source Python-based toolkit. Use it to build beautiful and powerful data visualization apps quickly and easily, without needing advanced engineering or visual design expertise. Then customize and deploy your app to production at scale. In just a few lines of simple low-code configuration, with in-built visual design best practices, you can quickly assemble high-quality, multi-page prototypes, that are production-ready.
Every Vizro app is defined by a simple configuration, using these high-level categories: - **[Components](https://vizro.readthedocs.io/en/stable/pages/user-guides/components/):** charts, tables, cards, KPI indicators, forms and more. - **[Controls](https://vizro.readthedocs.io/en/stable/pages/user-guides/controls/):** filters and parameters, using a range of selectors such as drop-down menus and sliders. - **[Actions](https://vizro.readthedocs.io/en/stable/pages/user-guides/actions/):** interactions between components, drill-throughs, export functionality and more. - **[Layouts](https://vizro.readthedocs.io/en/stable/pages/user-guides/layouts/):** grid layouts or flexible containers, with a range of pre-set styles. - **[Navigation](https://vizro.readthedocs.io/en/stable/pages/user-guides/navigation/):** a range of app layout and navigation settings, including nested page hierarchies. Configuration can be written in multiple formats including **Pydantic models**, **JSON**, **YAML** or **Python dictionaries** for added flexibility of implementation. Optional high-code extensions enable almost infinite customization in a modular way, combining the best of low-code and high-code - including bespoke [**visual formatting**](https://vizro.readthedocs.io/en/stable/pages/user-guides/visual-formatting/) and [**custom components**](https://vizro.readthedocs.io/en/stable/pages/user-guides/extensions/). Visit our ["How-to guides"](https://vizro.readthedocs.io/en/stable/pages/user-guides/install/) for a more detailed explanation of Vizro features. ## Why use Vizro? The benefits of the Vizro toolkit include:

Vizro helps you to build data visualization apps that are: **Quick and easy** Build apps in minutes. Use a few lines of simple configuration (via Pydantic models, JSON, YAML, or Python dictionaries) in place of thousands of lines of code. **Beautiful and powerful** Build high-quality multi-page apps without needing advanced engineering or visual design expertise. Use powerful features of production-grade BI tools, with in-built visual design best practices. **Flexible** Benefit from the capabilities and flexibility of open-source packages. Use the trusted dependencies of Plotly, Dash, and Pydantic. **Customizable** Almost infinite control for advanced users. Use Python, JavaScript, HTML and CSS code extensions. **Scalable** Rapidly prototype and deploy to production. Use the in-built production-grade capabilities of Plotly, Dash and Pydantic. Visit ["Why should I use Vizro?"](https://vizro.readthedocs.io/en/stable/pages/explanation/faq/#why-should-i-use-vizro) for a more detailed explanation of Vizro use cases. ## When to use Vizro? Use Vizro when you need to combine the speed and ease of low-code Python tools, with production capabilities of JavaScript and BI tools, and the freedom of open source: - Have an app that looks beautiful and professional by default. - Enjoy the simplicity of low-code, plus the option to customize with code almost infinitely. - Rapidly create prototypes which are production-ready and easy to deploy at scale. ## How to use Vizro? ## [Vizro framework](https://vizro.readthedocs.io/en/stable/) **Low-code framework for building dashboards.** The Vizro framework underpins the entire Vizro toolkit. It is a Python package (called `vizro`). Visit the [documentation](https://vizro.readthedocs.io/en/stable/) for more details. ## [Vizro visual vocabulary](https://vizro-demo-visual-vocabulary.hf.space/) **Chart examples.** The visual vocabulary helps you to decide which chart type to use for your requirements, and offers sample code to create these charts with Plotly or embed them into a Vizro dashboard. Visit the [visual vocabulary](https://vizro-demo-visual-vocabulary.hf.space/) to search for charts or get inspiration. ## [Vizro-MCP](https://github.com/mckinsey/vizro/tree/main/vizro-mcp) **A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for Vizro.** Vizro-MCP works alongside an LLM to help you create Vizro dashboards and charts. It provides tools and templates to create a functioning Vizro chart or dashboard step-by-step. Compatible with MCP-enabled LLM clients such as Cursor or Claude Desktop. Vizro MCP Demo ## [Vizro-AI](https://vizro.readthedocs.io/projects/vizro-ai/) **Use LLMs to generate charts and dashboards.** > **Vizro-AI dashboard generation is no longer actively developed and is superseded by [Vizro-MCP](https://github.com/mckinsey/vizro/tree/main/vizro-mcp). Vizro-AI supports only chart generation from version 0.4.0.** Vizro-AI is a separate package (called `vizro_ai`) that extends Vizro to incorporate LLMs. Use it to build interactive Vizro charts and dashboards, by simply describing what you need in plain English or other languages. Visit the [Vizro-AI documentation](https://vizro.readthedocs.io/projects/vizro-ai/) for more details. Gif to demonstrate Vizro-AI ## Installation and first steps ```console pip install vizro ``` See the [installation guide](https://vizro.readthedocs.io/en/stable/pages/user-guides/install/) for more information. The [get started documentation](https://vizro.readthedocs.io/en/stable/pages/tutorials/first-dashboard/) explains how to create your first dashboard. ## Packages This repository is a monorepo containing the following packages: | Folder | Version | Documentation | | :------------------------: | :-------------------------------------------------------------------------------------------: | :----------------------------------------------------------------: | | [vizro-core](./vizro-core) | [![PyPI version](https://badge.fury.io/py/vizro.svg)](https://badge.fury.io/py/vizro) | [Vizro Docs](https://vizro.readthedocs.io/en/stable/) | | [vizro-ai](./vizro-ai) | [![PyPI version](https://badge.fury.io/py/vizro-ai.svg)](https://badge.fury.io/py/vizro-ai) | [Vizro-AI Docs](https://vizro.readthedocs.io/projects/vizro-ai/) | | [vizro-mcp](./vizro-mcp) | [![PyPI version](https://badge.fury.io/py/vizro-mcp.svg)](https://badge.fury.io/py/vizro-mcp) | [Vizro-MCP Docs](https://vizro.readthedocs.io/projects/vizro-mcp/) | ## Community and development We encourage you to ask and discuss any technical questions via the [GitHub Issues](https://github.com/mckinsey/vizro/issues). This is also the place where you can submit bug reports or request new features. ## Want to contribute to Vizro? The [contributing guide](https://vizro.readthedocs.io/en/stable/pages/explanation/contributing/) explains how you can contribute to Vizro. You can also view current and former contributors [here](https://vizro.readthedocs.io/en/stable/pages/explanation/authors/). ## Want to report a se ---