IM 

isaacwasserman/mcp-vegalite-server 是从 https://github.com/isaacwasserman/mcp-vegalite-server. 导入的 MCP 服务器候选
概览
isaacwasserman/mcp-vegalite-server 是从 https://github.com/isaacwasserman/mcp-vegalite-server. 导入的 MCP 服务器候选
概述(AI 翻译)
概述
模型上下文协议(MCP)服务器实现,为LLM提供了使用Vega-Lite语法可视化数据的接口。
组成部分
工具
服务器提供两个核心工具:
save_data- 将数据聚合表保存到服务器,以便后续可视化
- 输入:
name(字符串):要保存的数据表名称data(数组):表示数据表的对象数组- 返回:成功消息
visualize_data- 使用 Vega-Lite 语法可视化数据表
- 输入:
data_name(字符串):待可视化的数据表名称vegalite_specification(字符串):表示Vega-Lite规范的JSON字符串- 返回:如果
--output_type设置为text,返回带有额外artifact键的成功消息,包含完整的 Vega-Lite 规格及数据。如果--output_type设置为png],返回使用 MPCImageContent容器的可视化 base64 编码 PNG 图像。
使用 Claude Desktop
本页由 AI 翻译,技术细节请以原文为准。
README
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 saveddata(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 visualizedvegalite_specification(string): JSON string representing the Vega-Lite specification
- Returns: If the
--output_typeis set totext, returns a success message with an additionalartifactkey containing the complete Vega-Lite specification with data. If the--output_typeis set topng, returns a base64 encoded PNG image of the visualization using the MPCImageContentcontainer.
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"
]
}
}
}
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
# 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"
]
}
}
}