This repository provides a Model Context Protocol (MCP) server that enables LLMs to visualize data using Vega-Lite. It offers tools to save data and generate visualizations, returning either Vega-Lite specifications
This is a Model Context Protocol (MCP) server designed to enable Large Language Models (LLMs) to visualize data using Vega-Lite specifications. It provides an interface for data storage and visualization, enhancing LLM capabilities in data analysis and presentation.
The server provides two main tools:
save_data:name (string) for the data table's name and data (array) representing the data table.visualize_data:data_name (string) for the data table's name and vegalite_specification (string) containing the Vega-Lite JSON.artifact key if --output_type is text. If --output_type is png, it returns a base64 encoded PNG image of the visualization using the MPC ImageContent container.// Example configuration for claude_desktop_config.json
{
"mcpServers": {
"datavis": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-datavis-server",
"run",
"mcp_server_datavis",
"--output_type",
"png" // or "text"
]
}
}
}isaacwasserman/mcp-vegalite-server
December 12, 2024
March 27, 2025
Python