MCP Now
Vega-Lite

Vega-Lite

by isaacwasserman
GitHub

Generate visualizations from fetched data using the VegaLite format and renderer.

data
table
server
return
visualization

Data Visualization MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides the LLM an interface for visualizing data using Vega-Lite syntax.

Components

Tools

The server offers two core tools:

  • save_data
    • Save a table of data agregations to the server for later visualization
    • Input:
      • name (string): Name of the data table to be saved
      • data (array): Array of objects representing the data table
    • Returns: success message
  • visualize_data
    • Visualize a table of data using Vega-Lite syntax
    • Input:
      • data_name (string): Name of the data table to be visualized
      • vegalite_specification (string): JSON string representing the Vega-Lite specification
    • Returns: If the --output_type is set to text, returns a success message with an additional artifact key containing the complete Vega-Lite specification with data. If the --output_type is set to png, returns a base64 encoded PNG image of the visualization using the MPC ImageContent container.

Usage with Claude Desktop

1# Add the server to your claude_desktop_config.json 2{ 3 "mcpServers": { 4 "datavis": { 5 "command": "uv", 6 "args": [ 7 "--directory", 8 "/absolute/path/to/mcp-datavis-server", 9 "run", 10 "mcp_server_datavis", 11 "--output_type", 12 "png" # or "text" 13 ] 14 } 15 } 16}