mcp-vegalite-server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Enables data visualization through Vega-Lite syntax, allowing users to create visualizations from saved data tables by providing Vega-Lite specifications.

数据可视化 MCP 服务器

概述

模型上下文协议 (MCP) 服务器实现为 LLM 提供了使用 Vega-Lite 语法可视化数据的界面。

成分

工具

该服务器提供两个核心工具:

  • save_data
    • 将数据聚合表保存到服务器以供以后可视化
    • 输入:
      • name (字符串):要保存的数据表的名称
      • data (数组):表示数据表的对象数组
    • 返回:成功信息
  • visualize_data
    • 使用 Vega-Lite 语法可视化数据表
    • 输入:
      • data_name (字符串):要可视化的数据表的名称
      • vegalite_specification (字符串):表示 Vega-Lite 规范的 JSON 字符串
    • 返回:如果将--output_type设置为text ,则返回一条成功消息,其中包含一个额外的artifact key,其中包含完整的 Vega-Lite 规范和数据。如果将--output_type设置为png ,则返回使用 MPC ImageContent容器的 base64 编码的可视化 PNG 图像。

与 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" ] } } }
-
security - not tested
F
license - not found
-
quality - not tested

模型上下文协议 (MCP) 服务器实现为 LLM 提供了使用 Vega-Lite 语法可视化数据的界面。

  1. Overview
    1. Components
      1. Tools
    2. Usage with Claude Desktop
      ID: x29xw10b00