Skip to main content

A simple Data Visualization MCP server using Vega-Lite

Project description

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

# 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"
        ]
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_server_vegalite-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_server_vegalite-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_server_vegalite-0.0.1.tar.gz.

File metadata

File hashes

Hashes for mseep_mcp_server_vegalite-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a472e3cc813ef3e6221818fe0db418f4d5f4f4af5d93a8a1160cba7c71d3becb
MD5 323599d00d7b939628063c983430e04a
BLAKE2b-256 99a59d4310fec830471687b58405374cb4d0b0f76b92ac417fb602e511c3829b

See more details on using hashes here.

File details

Details for the file mseep_mcp_server_vegalite-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_server_vegalite-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a35304f1eb53f352ac95d8461f4126a7eecf8b6c4c26167c9328f67af7a64675
MD5 6da470e0ab3974d070e4d847e98a7ef0
BLAKE2b-256 45cc62dd837d5056eca2106eeec3fd0ca55339f2acfa606559bb96a626ec757f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page