ChartPane

io.github.ahmadsl由 GitHub 账号 ahmadsl 发布v1.0.0更新于 Oct 24, 2026

Renders interactive Chart.js charts and dashboards inline in AI conversations.

已验证Streamable HTTP可网页运行数据与分析媒体与设计

概览

AI 生成的概览

ChartPane 是一个远程 MCP 服务器,可在 AI 对话中内嵌渲染交互式 Chart.js 图表和多图仪表板。

可以做什么
根据标签和数据集渲染单个图表,支持柱状、折线、面积、饼图、环形、极区、气泡、散点、雷达等类型,以及堆叠和水平柱状变体。构建最多四列的多图仪表板网格。使用自定义颜色或内置 12 色调色板。图表在浏览器端以交互式 Chart.js 画布渲染。
适用场景
适合在与 Claude、ChatGPT、VS Code、Cursor 或其他支持 MCP Apps 的客户端对话时,直接把数据变成可视化图表或仪表板,而无需导出到单独的图表工具。
运行要求
远程端点 mcp.chartpane.com,通过 streamable HTTP 访问,需要 OAuth 认证。客户端需支持 MCP Apps 才能内嵌渲染。README 中备选的 mcp-remote 方式需要 Node.js。
安装前请注意
连接需要 OAuth 登录。据称图表数据在客户端渲染且不存储在服务器端,但会记录图表类型、标题和时间戳等请求元数据。用于制图的数据会发送到该远程服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ChartPane,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ahmadsl%2Fchartpane/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "chartpane": {
      "type": "http",
      "url": "https://mcp.chartpane.com/mcp"
    }
  }
}

README

ChartPane

MCP App that renders interactive Chart.js charts inline in Claude's UI. Works with Claude Desktop, ChatGPT, VS Code, Cursor, and any client that supports MCP Apps.

Live instance: mcp.chartpane.com

Features

  • 9 chart types: bar, line, area, pie, doughnut, polarArea, bubble, scatter, radar
  • Stacked and horizontal bar chart variants
  • Multi-chart dashboard grids (up to 4 columns)
  • Custom colors or automatic 12-color palette
  • Client-side rendering — chart data never stored server-side
  • Works with any MCP-compatible client (Claude Desktop, ChatGPT, VS Code, Cursor)

Tools

  • render_chart — Render a single chart (bar, line, area, pie, doughnut, polarArea, bubble, scatter, radar, stacked)
  • render_dashboard — Render a multi-chart grid layout

Quick Start

Add ChartPane to Claude Desktop via Settings > Connectors > Add custom connector:

https://mcp.chartpane.com/mcp

Or use mcp-remote (requires Node.js):

json
{  "mcpServers": {    "chartpane": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://mcp.chartpane.com/mcp"]    }  }}

Usage Examples

1. Bar chart

Prompt: "Create a bar chart of quarterly revenue: Q1 $50k, Q2 $80k, Q3 $120k, Q4 $95k"

Claude calls render_chart with:

json
{  "type": "bar",  "title": "Quarterly Revenue",  "data": {    "labels": ["Q1", "Q2", "Q3", "Q4"],    "datasets": [{ "label": "Revenue ($k)", "data": [50, 80, 120, 95] }]  }}

An interactive bar chart renders inline in the conversation.

2. Pie chart

Prompt: "Show browser market share as a pie chart: Chrome 65%, Safari 19%, Firefox 8%, Edge 5%, Other 3%"

Claude calls render_chart with:

json
{  "type": "pie",  "title": "Browser Market Share",  "data": {    "labels": ["Chrome", "Safari", "Firefox", "Edge", "Other"],    "datasets": [{ "label": "Share", "data": [65, 19, 8, 5, 3] }]  }}

Each slice gets a distinct color from the built-in palette.

3. Multi-chart dashboard

Prompt: "Build a dashboard with monthly active users as a line chart and signups by channel as a bar chart"

Claude calls render_dashboard with:

json
{  "title": "Growth Dashboard",  "charts": [    {      "type": "line",      "title": "Monthly Active Users",      "data": {        "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],        "datasets": [{ "label": "MAU", "data": [12000, 15000, 18000, 22000, 28000, 35000] }]      }    },    {      "type": "bar",      "title": "Signups by Channel",      "data": {        "labels": ["Organic", "Referral", "Paid", "Social"],        "datasets": [{ "label": "Signups", "data": [4500, 3200, 2800, 1500] }]      }    }  ],  "columns": 2}

Both charts render side-by-side in a grid layout.

Self-Hosting

ChartPane runs on Cloudflare Workers.

bash
npm installcp .dev.vars.example .dev.vars    # Configure secrets (optional)npm run dev                        # Local dev server (port 8787 + sandbox on 3456)npm run deploy                     # Deploy to Cloudflare Workers

You'll need to create your own KV namespace and D1 database — see comments in wrangler.jsonc.

Development

bash
npm run dev        # wrangler dev + sandbox dev server (localhost:3456)npm run build      # Type-check (tsc --noEmit) + bundle UInpm test           # Run all tests (vitest)npm run test:watch # Watch mode

Architecture

Claude tool calls flow through a thin MCP server that validates input and returns structuredContent. The browser-side UI transforms input into Chart.js configs and renders to canvas. All shared logic (types, validation, colors, config) lives in shared/.

Claude tool call → server.ts (validate) → structuredContent    → mcp-app.ts (browser) → buildChartConfig() → Chart.js canvas

Privacy

ChartPane logs only request metadata (chart type, title, timestamp). Chart data values are never stored. Charts render entirely client-side in your browser. Full policy: chartpane.com/privacy

Support

License

MIT

来源:README.md,提交 097a2af

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分