讓你的 AI agent 幫你做圖表

makechart.io 提供 MCP 伺服器:你在自己電腦上用的 Claude Code(或其他支援 MCP 的 agent)可以接上你在瀏覽器開著的圖表編輯器。你在編輯器的 AI 分頁打字跟它對話,它幫你改資料、綁定、樣式與圖表程式碼,並截圖檢查結果。

給 agent 看的說明

把這個網址或內容貼給你的 agent,它就知道怎麼連線與操作:

複製網址
看 agent.md
複製全文

設定 Claude Code

  1. 在終端機執行(-s user 讓所有專案都能用):
  2. 在 Claude Code 輸入 /mcp,選 makechart → Authenticate。瀏覽器會開 makechart 的授權頁,登入後按允許。只需一次。
  3. 在 Claude Code 輸入 /mcp__makechart__chart,它就會開始等你在編輯器傳來的訊息。

不支援 OAuth 的 MCP client 可以改用個人 API token:開任一張圖表(例如 從零開始),在左側 AI 分頁 → Setup → 改用 API token, 指令會多帶 --header "Authorization: Bearer <token>"。

使用

端點與權限

端點
驗證OAuth(client 自己開瀏覽器授權;claude.ai、ChatGPT 的網頁版連接器也適用),或個人 API token(Authorization: Bearer <token>)。
能做的事只能操作你開著的編輯器分頁:讀寫資料、綁定、設定、程式碼,以及截圖。不能存檔、不能讀你其他的圖表。

工具一覽

chart_wait等你在 AI 分頁傳來的訊息
chart_reply在 AI 分頁回話
chart_tool操作編輯器:get_state、set_data、set_bind、get_config_spec、set_config、read_code、edit_code、write_code、run、snapshot
chart_code_guide圖表程式碼的寫法規格

Let your AI agent make charts

makechart.io provides an MCP server: the Claude Code (or any MCP-capable agent) you run on your own computer can connect to the chart editor open in your browser. Type to it in the editor's AI tab, and it edits the data, bindings, styles and chart code for you, checking its work with screenshots.

Instructions for your agent

Paste this URL or its content to your agent, and it will know how to connect and what to do:

Copy URL
View agent.md
Copy Content

Set up Claude Code

  1. Run this in your terminal (-s user makes it available in every project):
  2. In Claude Code, type /mcp, pick makechart → Authenticate. Your browser opens makechart's authorization page: sign in and click Allow. You only do this once.
  3. In Claude Code, type /mcp__makechart__chart. It then waits for the messages you send from the editor.

MCP clients without OAuth can use a personal API token instead: open any chart (for example from scratch), then the AI tab on the left → Setup → Use an API token instead. The command then adds --header "Authorization: Bearer <token>".

Usage

Endpoint and permissions

Endpoint
AuthenticationOAuth (the client opens your browser to authorize; works for the web connectors of claude.ai and ChatGPT too), or a personal API token (Authorization: Bearer <token>).
What it can doOnly the editor tab you have open: read and write data, bindings, settings and code, and take screenshots. It can't save, and it can't read your other charts.

Tools

chart_waitWait for messages you send from the AI tab
chart_replyReply in the AI tab
chart_toolOperate the editor: get_state, set_data, set_bind, get_config_spec, set_config, read_code, edit_code, write_code, run, snapshot
chart_code_guideHow to write chart code