mcp/vizro

Verified Publisher

By mcp

Updated 8 months ago

provides tools and templates to create a functioning Vizro chart or dashboard step by step

Image
Machine learning & AI
1

10K+

mcp/vizro repository overview

Vizro MCP Server

provides tools and templates to create a functioning Vizro chart or dashboard step by step.

What is an MCP Server?

MCP Info

AttributeDetails
Docker Imagemcp/vizro
Authormckinsey
Repositoryhttps://github.com/mckinsey/vizro

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/mckinsey/vizro/blob/c88f5e62478de3762402a759cec33e4e1f8d0ee0/vizro-mcp/Dockerfile
Commitc88f5e62478de3762402a759cec33e4e1f8d0ee0
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/vizro --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (6)

Tools provided by this ServerShort Description
get_model_json_schemaGet the JSON schema for the specified Vizro model.
get_sample_data_infoIf user provides no data, use this tool to get sample data information.
get_vizro_chart_or_dashboard_planGet instructions for creating a Vizro chart or dashboard.
load_and_analyze_dataUse to understand local or remote data files.
validate_chart_codeValidate the chart code created by the user and optionally open the PyCafe link in a browser.
validate_dashboard_configValidate Vizro model configuration.

Tools Details

Tool: get_model_json_schema

Get the JSON schema for the specified Vizro model. Server Vizro version: 0.1.46

ParametersTypeDescription
model_namestringName of the Vizro model to get schema for (e.g., 'Card', 'Dashboard', 'Page')

Tool: get_sample_data_info

If user provides no data, use this tool to get sample data information.

Use the following data for the below purposes:
    - iris: mostly numerical with one categorical column, good for scatter, histogram, boxplot, etc.
    - tips: contains mix of numerical and categorical columns, good for bar, pie, etc.
    - stocks: stock prices, good for line, scatter, generally things that change over time
    - gapminder: demographic data, good for line, scatter, generally things with maps or many categories

Returns:
    Data info object containing information about the dataset.
ParametersTypeDescription
data_namestringName of the dataset to get sample data for

Tool: get_vizro_chart_or_dashboard_plan

Get instructions for creating a Vizro chart or dashboard. Call FIRST when asked to create Vizro things.

Must be ALWAYS called FIRST with advanced_mode=False, then call again with advanced_mode=True
if the JSON config does not suffice anymore.

Returns:
    Instructions for creating a Vizro chart or dashboard
ParametersTypeDescription
user_hoststringThe host the user is using, if 'ide' you can use the IDE/editor to run python code
user_planstringThe type of Vizro thing the user wants to create
advanced_modeboolean optionalOnly call if you need to use custom CSS, custom components or custom actions.
No need to call this with advanced_mode=True if you need advanced charts,
use custom_charts in the validate_dashboard_config tool instead.

Tool: load_and_analyze_data

Use to understand local or remote data files. Must be called with absolute paths or URLs.

Supported formats:
- CSV (.csv)
- JSON (.json)
- HTML (.html, .htm)
- Excel (.xls, .xlsx)
- OpenDocument Spreadsheet (.ods)
- Parquet (.parquet)

Returns:
    DataAnalysisResults object containing DataFrame information and metadata
ParametersTypeDescription
path_or_urlstringAbsolute (important!) local file path or URL to a data file

Tool: validate_chart_code

Validate the chart code created by the user and optionally open the PyCafe link in a browser.

Returns:
    ValidationResults object with status and dashboard details
ParametersTypeDescription
chart_configstringA ChartPlan object with the chart configuration
data_infostringMetadata for the dataset to be used in the chart
auto_openboolean optionalWhether to automatically open the PyCafe link in a browser

Tool: validate_dashboard_config

Validate Vizro model configuration. Run ALWAYS when you have a complete dashboard configuration.

If successful, the tool will return the python code and, if it is a remote file, the py.cafe link to the chart.
The PyCafe link will be automatically opened in your default browser if auto_open is True.

Returns:
    ValidationResults object with status and dashboard details
ParametersTypeDescription
custom_chartsarrayList of ChartPlan objects containing information about the custom charts in the dashboard
dashboard_configobjectEither a JSON string or a dictionary representing a Vizro dashboard model configuration
data_infosarrayList of DFMetaData objects containing information about the data files
auto_openboolean optionalWhether to automatically open the PyCafe link in a browser

Use this MCP Server

{
  "mcpServers": {
    "vizro": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/vizro"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Install from MCP:Hub

Tag summary

Content type

Image

Digest

sha256:ddec90039

Size

209.3 MB

Last updated

8 months ago

docker pull mcp/vizro

This week's pulls

Pulls:

953

Jul 6 to Jul 12