Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server for creating interactive Vega-Lite data visualizations that render inline in chat via MCP Apps.

README.md

<!-- omit from toc --> Vega-Lite Viewer MCP Server ===========================

A Model Context Protocol (MCP) server that enables creating interactive data visualizations using the Vega-Lite grammar. Visualizations are rendered directly inside the chat using MCP Apps — no browser window required.

Usage -----

Prerequisites

This server requires uv. Install it via:

# Windows
winget install --id=astral-sh.uv -e

# macOS
brew install uv

# Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

macOS note: The curl installer places uv in ~/.local/bin/ and updates your shell profile, but macOS GUI apps like Claude Desktop do not load shell startup files. Install via Homebrew to make uv visible to GUI apps.

See the uv installation guide for more options.

Quick Start

Add the following entry to your Claude Desktop configuration file (accessible via Settings... > Developer > Edit Config):

{
  "mcpServers": {
    "vegalite-viewer": {
      "command": "uv",
      "args": [
        "run",
        "--with-editable",
        "/path/to/mcp-server-vegalite-viewer",
        "mcp-server-vegalite-viewer"
      ]
    }
  }
}

Restart Claude Desktop to apply changes. The server is ready when vegalite-viewer appears in the list of connected MCP servers.

ℹ️ Note: Rendering visualizations inline in the chat requires a client that supports MCP Apps, such as Claude Desktop or Claude.ai.

CLI Reference

| Flag | Description | |------------|--------------------------------------------------------------------------------| | --silent | Show only error messages | | --debug | Enable detailed debug logging (also settable via VEGALITE_VIEWER_DEBUG=1) |

MCP Tools and Prompt

Tools

| Tool | Description | |------------------|--------------------------------------------------------------------------------| | upload_data | Upload a JSON dataset and register it by name for later use in visualizations | | visualize_data | Render a registered dataset as a Vega-Lite chart, displayed inline in the chat |

Workflow: call upload_data first to register the dataset, then call visualize_data with a Vega-Lite specification to produce the chart. The same dataset can be visualized multiple times with different specs.

Prompt

| Prompt | Description | |-------------------------------------------|-----------------------------------------------------------------------------------------| | Create a simple chart for a JSON dataset| Instructs the LLM to create a chart of a chosen type (bar, line, pie, etc.) for a provided JSON dataset |

Example Prompts

Create a simple bar chart for the following JSON dataset:
[
  {"category": "Alpha",   "value": 4},
  {"category": "Bravo",   "value": 6},
  {"category": "Charlie", "value": 10},
  {"category": "Delta",   "value": 3},
  {"category": "Echo",    "value": 7},
  {"category": "Foxtrot", "value": 9}
]

Using with MCP Inspector

Create an mcp.json file:

{
  "mcpServers": {
    "vegalite-viewer": {
      "command": "uv",
      "args": [
        "run",
        "mcp-server-vegalite-viewer",
        "--debug"
      ]
    }
  }
}

Start the inspector from a terminal:

npx -y @modelcontextprotocol/inspector --config mcp.json --server vegalite-viewer

In your browser:

  • Click Connect to start the server
  • Go to Tools > List Tools to see the available tools
  • Find server logs under Server Notifications and in %TEMP%\mcp_server_vegalite_viewer.log (Windows) or ${TMPDIR:-/tmp}/mcp_server_vegalite_viewer.log (Linux/macOS)

Troubleshooting

Visualization not rendering inline

The client must support MCP Apps. In clients without MCP Apps support the tool still works — the Vega-Lite JSON spec is returned as text, which the LLM can describe or the user can paste into Vega Editor.

Server fails to start in Claude Desktop

Check the Claude Desktop logs:

  • Windows: %LOCALAPPDATA%\Claude\Logs\mcp-server-vegalite-viewer.log
  • macOS: ~/Library/Logs/Claude/mcp-server-vegalite-viewer.log

Or go to Settings > Developer, select vegalite-viewer and click Open Logs Folder.

Still having issues?

Run the server with --debug and open an issue on GitHub with the relevant log output.

Contributing ------------

See CONTRIBUTING.md for development setup, building the React app, code quality checks, and the release process.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.