Skip to main content
Glama

数据可视化 MCP 服务器

铁匠徽章

概述

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

Related MCP server: Mermaid MCP Server

成分

工具

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

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A MCP server for data visualization. It exposes tools to render charts (line, bar, pie, scatter, heatmap, etc.) from data and returns plots as either image/text/mermaid diagram.
    2
    4
    MIT