
Chart Canvas
io.github.gluip由 GitHub 帳號 gluip 發布v0.3.2更新於 Oct 25, 2026
Create interactive visualizations and query data sources (SQLite, CSV, Parquet, JSON)
概覽
一個本機 MCP 伺服器,讓助理在瀏覽器儀表板上建立互動式圖表、表格和 Mermaid 圖,並查詢本機資料檔案。
- 可以做什麼
- 在即時儀表板上建立、移除和清空視覺化內容:折線圖、長條圖、散佈圖、圓餅圖、表格,以及 Mermaid 流程圖和示意圖,並可開啟瀏覽器中的儀表板。查詢 SQLite 資料庫結構,了解資料表和欄位後再寫查詢。對 SQLite 執行唯讀 SQL SELECT 查詢,並把結果轉成圖表或表格。透過 DuckDB 查詢本機 CSV、Parquet、JSON 和 NDJSON 檔案。
- 適用情境
- 適合在與助理協作時希望把圖表、示意圖或表格以視覺化方式呈現,或想探索本機 SQLite 資料庫和資料檔案、直接以圖表查看結果而不必把資料匯出到其他地方。
- 執行需求
- 透過 npm 套件 @gluip/chart-canvas-mcp 在桌面本機執行(可用 npx 或全域安裝),需要 Node.js。伺服器會在 3000 埠啟動本機 Web 服務並開啟瀏覽器儀表板。未宣告需要帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Chart Canvas,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Chart Canvas MCP Server
Interactive visualization dashboard for AI assistants via Model Context Protocol
Create beautiful charts, diagrams, and tables directly from your AI conversations. Chart Canvas provides a real-time dashboard that displays visualizations as you work with LLMs like Claude.
Demo
Watch the full demo on YouTube to see Chart Canvas in action!
Features
✨ Multiple Chart Types: Line, bar, scatter, pie charts, tables, and Mermaid diagrams
🎨 Interactive Dashboard: Drag-and-drop grid layout with real-time updates
🔄 Live Synchronization: Changes appear instantly in your browser
📊 Rich Visualizations: Powered by ECharts and Mermaid
💾 Universal Data Sources: Query SQLite, CSV, Parquet, JSON, and NDJSON files directly
⚡ Smart Data Flow: Execute queries server-side - data stays local, never sent to LLM
🔒 Privacy First: Your data never leaves your machine
🚀 Easy Setup: One command to get started
🌐 Production Ready: Built-in production mode with optimized builds
Supported Data Sources
Chart Canvas can query and visualize data from multiple file formats:
- SQLite (
.db,.sqlite,.sqlite3) - Relational databases - CSV (
.csv) - Comma-separated values - Parquet (
.parquet) - Columnar storage format - JSON (
.json) - JSON arrays of objects - NDJSON (
.jsonl,.ndjson) - Newline-delimited JSON
Privacy & Performance: All queries execute locally on your machine using DuckDB. Query results are transformed into visualizations server-side - only metadata (chart configuration) is sent to the LLM, never your actual data. This makes it fast, scalable, and private.
Quick Start
Installation
Or use directly with npx (no installation needed):
Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Usage
- Start your MCP client (e.g., Claude Desktop)
- The server will automatically start on port 3000
- Use the
showCanvastool to open the dashboard in your browser - Ask the AI to create visualizations!
Example Prompts
MCP Tools
addVisualization
Create charts, diagrams, and tables on the canvas.
Supported Types:
line- Line charts with multiple seriesbar- Bar charts for comparisonsscatter- Scatter plots for data distributionpie- Pie charts with labelstable- Data tables with headersflowchart- Mermaid diagrams (flowcharts, sequence diagrams, Gantt charts, etc.)
Example:
removeVisualization
Remove a specific visualization by ID.
clearCanvas
Remove all visualizations from the canvas.
showCanvas
Open the dashboard in your default browser.
getDatabaseSchema
Inspect the structure of a SQLite database to understand available tables and columns before writing queries.
Parameters:
databasePath- Path to SQLite database file (e.g.,./data/mydb.sqliteor absolute path)
Example:
Returns: Formatted schema showing all tables, columns, data types, and constraints.
queryAndVisualize
Execute a SQL query on a SQLite database and create a visualization from the results. Queries are executed server-side and must be read-only (SELECT only). Maximum 10,000 rows.
Parameters:
databasePath- Path to SQLite database filequery- SQL SELECT query (read-only)visualizationType- Type of chart:line,bar,scatter,pie, ortablecolumnMapping(optional for table) - Mapping of columns to chart axes:xColumn- Column for X-axis (required for charts)yColumns- Array of columns for Y-axis (required for charts)seriesColumn- Column to group data into separate series (optional)groupByColumn- Alternative grouping column (optional)
title- Optional title for visualizationdescription- Optional descriptionuseColumnAsXLabel- If true, use X column values as labels instead of numbers
Example:
Security: Only SELECT and WITH (CTE) queries are allowed. INSERT, UPDATE, DELETE, DROP, and other modifying operations are blocked.
Architecture
- Backend: Node.js + TypeScript + Express + MCP SDK
- Frontend: Vue 3 + ECharts + Mermaid + Grid Layout
- Communication: Real-time polling for instant updates
Development
Local Development
MCP Configuration for Local Development
License
MIT © 2026 Martijn
Links
來源:backend/README.md,提交 a403c18
工具
0版本歷史
1- v0.3.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分