Vega-Lite 数据可视化
STDIO使用Vega-Lite语法的数据可视化服务器
使用Vega-Lite语法的数据可视化服务器
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_vegalite", "--output-type", "png" # or "text" ] } } }
uv --directory /Users/markomitranic/Sites/mcp/mcp-vegalite-server run mcp_server_vegalite --output-type png
docker build -t mcp-server-vegalite . docker run -i --rm mcp-server-vegalite --output-type png