by isaacwasserman
Provides tools for saving data tables and generating Vega‑Lite visualizations via an MCP interface, supporting both textual specifications and PNG image output.
Mcp Vegalite Server implements an MCP endpoint that lets large language models store tabular data and create visualizations using Vega‑Lite syntax. It exposes two primary tools – save_data
for persisting a data table and visualize_data
for rendering that table as a chart.
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"
]
}
}
}
save_data
tool with a name
and an array of objects representing rows.visualize_data
tool with the previously saved data_name
and a JSON string containing a Vega‑Lite specification.--output_type
flag, the response will contain either a success message with the full spec (text
) or a base64‑encoded PNG image (png
).save_data
and visualize_data
.Q: What formats are accepted for the data
field in save_data
?
A: An array of JSON objects, where each object represents a row and keys correspond to column names.
Q: Can I customize chart dimensions?
A: Yes. Include width, height, and other Vega‑Lite properties in the vegalite_specification
string.
Q: How do I retrieve the saved data later?
A: You can call visualize_data
with the same data_name
; the server automatically fetches the stored table.
Q: Is there a way to get the raw data back?
A: Not directly via the current tools; however, you can embed the data in the Vega‑Lite spec returned when using output_type: text
.
Q: What dependencies are needed to run the server?
A: The repository includes a pyproject.toml
managed by uv
. Running the command shown in the configuration snippet will install required packages.
A Model Context Protocol (MCP) server implementation that provides the LLM an interface for visualizing data using Vega-Lite syntax.
The server offers two core tools:
save_data
name
(string): Name of the data table to be saveddata
(array): Array of objects representing the data tablevisualize_data
data_name
(string): Name of the data table to be visualizedvegalite_specification
(string): JSON string representing the Vega-Lite specification--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.# Add the server to your 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"
]
}
}
}
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "datavis": { "command": "uv", "args": [ "--directory", "/absolute/path/to/mcp-datavis-server", "run", "mcp_server_datavis", "--output_type", "png" ], "env": {} } } }
Discover more MCP servers with similar functionality and use cases
by mckinsey
Build high-quality data visualization apps quickly with low‑code configuration, leveraging Plotly, Dash, and Pydantic while allowing deep customisation through Python, JavaScript, HTML, and CSS.
by antvis
mcp-server-chart is a Model Context Protocol (MCP) server developed by AntV that generates over 25 types of visual charts. It provides robust chart generation and data analysis capabilities, integrating with various AI clients and platforms.
by reading-plus-ai
mcp-server-data-exploration is an MCP server designed for autonomous data exploration on CSV-based datasets. It acts as a personal Data Scientist assistant, providing intelligent insights with minimal effort.
by Canner
Wren Engine is a semantic engine designed for Model Context Protocol (MCP) clients and AI agents, enabling accurate and context-aware access to enterprise data.
by GongRzhe
A Model Context Protocol (MCP) server for generating various types of charts using QuickChart.io, enabling chart creation through MCP tools.
by ergut
mcp-bigquery-server is a Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to securely and efficiently interact with Google BigQuery datasets. It acts as a translator, allowing LLMs to query and analyze data in BigQuery using natural language instead of SQL.
by surendranb
Google Analytics MCP Server is a Python-based tool that enables Large Language Models (LLMs) to access and analyze Google Analytics 4 (GA4) data using natural language, providing conversational querying of over 200 GA4 dimensions and metrics.
by tinybirdco
Provides a Model Context Protocol server implementation for Tinybird, allowing analytics agents to forward data to Tinybird's platform.
by GongRzhe
JSON-MCP-Server is a JSON Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to query and manipulate JSON data. It provides advanced data interaction capabilities through standardized tools and JSONPath syntax.