rendering
Vega-Lite MCP, CLI, and Lua Integration for AI Agents
Vega-Lite integration docs for AI agents: MCP gateway setup, Vega-Lite CLI commands, Lua API reference, credentials, and function schemas.
1 functions 0 read 1 write No credentials auth
Vega-Lite for agents
No credentials required; available in web and CLI hosts when runtime dependencies are installed.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
vegalite- route_slug
vegalite- package
vegalite- auth_strategy
noneNo credentials- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
false
Quick Links
Lua APIAgent-facing namespace and function reference. Vega-Lite CLIHeadless setup and direct function calls. Vega-Lite MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Vega-Lite MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Vega-Lite.
Claude Code Vega-Lite MCP setup for Claude Code. Cursor Vega-Lite MCP setup for Cursor. Codex Vega-Lite MCP setup for Codex. OpenAI Agents Vega-Lite MCP setup for OpenAI Agents SDK. Claude Agent SDK Vega-Lite MCP setup for Claude Agent SDK. Vercel AI SDK Vega-Lite MCP setup for Vercel AI SDK. LangChain Vega-Lite MCP setup for LangChain. LangGraph Vega-Lite MCP setup for LangGraph. CrewAI Vega-Lite MCP setup for CrewAI. MCP clients Vega-Lite MCP setup for Generic MCP Clients.
Vega-Lite CLI Matrix
Use these pages for direct Vega-Lite CLI workflows in scripts, CI, cron, and agent wrappers.
CI Vega-Lite CLI for CI. Cron Jobs Vega-Lite CLI for cron jobs. Shell Scripts Vega-Lite CLI for shell scripts. Headless Automation Vega-Lite CLI for headless automation. Coding Agents Vega-Lite CLI for coding agents.
Runtime Requirements
| Name | Type | Description |
|---|---|---|
node | binary | Node.js is required to render Vega-Lite charts. |
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
vegalite.render_vegalite | Write write | 3 | Render a Vega-Lite visualization to a PNG image. Pass a complete Vega-Lite JSON specification and get back a markdown image embed. IMPORTANT: Always use inline data with "data": {"values": [...]}. Never use "data": {"url": "..."}. Example spec: { "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "data": {"values": [ {"category": "A", "value": 28}, {"category": "B", "value": 55}, {"category": "C", "value": 43} ]}, "mark": "bar", "encoding": { "x": {"field": "category", "type": "nominal"}, "y": {"field": "value", "type": "quantitative"} } } Supported mark types: bar, line, point, area, rect, circle, square, arc, text, tick, rule, trail, boxplot. Always include "type" in encoding channels: "quantitative", "nominal", "ordinal", or "temporal". |