@chartroom/mcp
v0.3.2
Published
MCP server for AI-powered chart generation from CSV and Excel data using Vega-Lite
Readme
@chartroom/mcp
MCP server providing chart generation tools for AI assistants. Publishable to npm as @chartroom/mcp.
Tools
| Tool | Description |
|------|-------------|
| load_csv | Parse a CSV or Excel file, return column metadata |
| render_chart | Validate and render a Vega-Lite spec to PNG via vega + resvg-js |
| open_interactive | Open chart in browser with tooltips |
Running
From the monorepo (development):
cd packages/mcp && bun startVia npx (published package):
npx @chartroom/mcpMCP client configuration
For Claude Desktop or other MCP clients:
{
"mcpServers": {
"chartroom": {
"command": "npx",
"args": ["@chartroom/mcp@latest"]
}
}
}Building
bun run build:mcpKey files
| File | Purpose |
|------|---------|
| src/server.ts | MCP server entry point |
| src/tools/load-csv.ts | CSV/Excel parsing tool |
| src/tools/render-chart.ts | Spec validation + PNG rendering tool |
| src/tools/open-interactive.ts | Browser-based interactive chart tool |
