Data Visualization MCP Server

by markomitranic
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides containerized deployment of the data visualization server, making it easy to run in isolated environments.

  • Powers data visualization through Vega-Lite syntax, allowing users to create customized charts and graphs from saved data tables.

数据可视化 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_vegalite", "--output-type", "png" # or "text" ] } } }

与紫外线一起使用

uv --directory /Users/markomitranic/Sites/mcp/mcp-vegalite-server run mcp_server_vegalite --output-type png

与 Docker 一起使用

docker build -t mcp-server-vegalite . docker run -i --rm mcp-server-vegalite --output-type png
-
security - not tested
F
license - not found
-
quality - not tested

MCP 服务器提供工具来保存数据表并从中生成可视化效果,从而允许 AI 模型使用 Vega-Lite 语法创建数据可视化效果。

  1. Overview
    1. Components
      1. Tools
    2. Usage with Claude Desktop
      1. Usage with uv
        1. Usage with Docker
          ID: gzwvet9u68