# microcharts

Generates tiny SVG charts with automatic alt summaries directly from natural language. Useful when an agent needs to visualize trends inside markdown or chats.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 205
- Author: ganapativs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ganapativs/microcharts/tree/HEAD/packages/mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/microcharts

## What it does

The server exposes three primary tools. `find_microchart` matches chart candidates against user questions, `get_microchart` outputs component props along with verified payloads, and `render_microchart` outputs production-ready SVG code. Because it creates standalone graphics with accessibility labels, downstream chats display charts without needing a client-side React runtime.

Execution happens locally over stdio via `npx -y @microcharts/mcp`. It bundles the underlying `@microcharts/react` package directly. No API token, account, or cloud service is involved.

It rejects mismatched shapes with specific structural guidance rather than throwing silent crashes. Trying to feed dense multi-megabyte datasets will fail: the renderer explicitly rejects oversized arrays because microcharts are designed strictly as small inline marks.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add microcharts -- npx -y @microcharts/mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp -- npx -y @microcharts/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@microcharts/mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@microcharts/mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp npx -y @microcharts/mcp
```

## When to use it
- render self-contained inline SVG sparklines directly in conversational UIs
- discover the appropriate microchart layout from natural language queries
- generate descriptive accessibility summaries alongside rendered visual marks
- retrieve TypeScript props and syntax examples for microchart components

## Example prompts
- Create a sparkline chart for our recent server response latency numbers.
- Find an inline chart type suitable for displaying target progress versus actual quota.
- Render a compact bullet diagram with a target of 80 and a current value of 72.

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
