vegalite-viewer
Allows creating interactive data visualizations using the Vega-Lite grammar, rendered inline in the chat.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vegalite-viewerCreate a bar chart for this JSON: [{"x":1,"y":2},{"x":2,"y":3}]"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 | shmacOS note: The
curlinstaller placesuvin~/.local/bin/and updates your shell profile, but macOS GUI apps like Claude Desktop do not load shell startup files. Install via Homebrew to makeuvvisible 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 |
| Show only error messages |
| Enable detailed debug logging (also settable via |
MCP Tools and Prompt
Tools
Tool | Description |
| Upload a JSON dataset and register it by name for later use in visualizations |
| 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 |
| Instructs the LLM to create a chart of a chosen type ( |
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-viewerIn your browser:
Click
Connectto start the serverGo to
Tools > List Toolsto see the available toolsFind server logs under
Server Notificationsand 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.logmacOS:
~/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.
Related MCP server: Data Visualization MCP Server
Contributing
See CONTRIBUTING.md for development setup, building the React app, code quality checks, and the release process.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Flicense-qualityFmaintenanceA Model Context Protocol (MCP) server implementation that provides the LLM an interface for visualizing data using Vega-Lite syntax.Last updated102
- FlicenseAqualityDmaintenanceAn MCP server that allows AI models to create data visualizations using Vega-Lite syntax by providing tools to save data tables and generate visualizations from them.Last updated423
- AlicenseAqualityDmaintenanceA 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.Last updated24MIT
- AlicenseAqualityBmaintenanceAn MCP server for rendering common ECharts visualizations from structured tool arguments, exposing per-chart opener tools that map to independent HTML app resources.Last updated18682MIT
Related MCP Connectors
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
MCP server for AI dialogue using various LLM models via AceDataCloud
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stephaneberle9/mcp-server-vegalite-viewer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server