SuperAPI AI Directory

mcp-vegalite-server

mcp-vegalite-server is a server implementation based on the Model Context Protocol (MCP) that provides LLMs with an interface for visualizing data using Vega-Lite syntax. It provides two core tools: save_data (saves a data table to the server for subsequent visualization) and visualize_data (visualizes a data table using Vega-Lite syntax, with output that can be a text specification or a base64-encoded PNG image).

Open website

About this tool

Purpose

mcp-vegalite-server is a server implementation based on the Model Context Protocol (MCP), designed to provide LLMs with an interface for data visualization using Vega-Lite syntax.

Main Capabilities

The server provides two core tools:

save_data

Saves a data aggregation table to the server for subsequent visualization.

  • Input:
    • name (string): the name of the data table to save
    • data (array): an array of objects representing the data table
  • Returns: a success message

visualize_data

Visualizes a data table using Vega-Lite syntax.

  • Input:
    • data_name (string): the name of the data table to visualize
    • vegalite_specification (string): a JSON string representing the Vega-Lite specification
  • Returns:
    • If --output_type is set to text, returns a success message along with an additional artifact key containing the complete Vega-Lite specification with data.
    • If --output_type is set to png, returns a base64 PNG visualization image encoded using the MCP ImageContent container.

Usage

This server can be used with Claude Desktop (the materials mention "Usage with Claude Desktop"). Specific installation commands, configuration steps, and code examples are not yet provided.

Applicable Scenarios

Suitable for scenarios that require an LLM to perform data visualization using Vega-Lite syntax.

Limitations

Detailed information regarding pricing, cost, platform, effects, etc. is not yet provided.