Mcp Viz Shap

mcp_viz_shap
preview Other cloud unknown
Visualize SHAP (SHapley Additive exPlanations) values for ML model interpretability. Supports bar charts of global feature importance, beeswarm plots showing per-sample SHAP distributions colored by feature value, waterfall plots decomposing single predictions, and force plots. Pure matplotlib rendering, no SHAP library dependency.

Preview. This tool is available but has not yet completed Paramus output verification. Treat results as provisional.

Parameters

NameTypeRequiredDescription
feature_names array yes List of feature names matching the columns of shap_values
shap_values string yes SHAP values. 1D array for a single prediction (bar/waterfall/force) or 2D array [n_samples x n_features] for multi-sample plots (bar/beeswarm).
base_value number no Expected model output (E[f(X)]). Required for waterfall and force plots.
feature_values string no Raw feature values for coloring. Same shape as shap_values. Required for beeswarm, optional for waterfall (shows feature value next to label).
plot_type string no Plot type: 'bar' = global importance, 'beeswarm' = per-sample distribution, 'waterfall' = single prediction decomposition, 'force' = horizontal arrow plot
title string no Chart title
max_display integer no Maximum number of features to display. Remaining are grouped into 'others'.
output_format string no Output format (PNG only)
width integer no Figure width in pixels
height integer no Figure height in pixels
output_path string no Workspace-relative file path for the figure. A bare file name is placed in the chat's files folder.
auto_open boolean no Open saved file in default application
overwrite boolean no Overwrite existing file

Examples