Datawrapper

io.github.palewire由 GitHub 帳號 palewire 發布v0.4.0更新於 Oct 24, 2026

A Model Context Protocol (MCP) server and app for creating Datawrapper charts using AI assistants

已驗證STDIO僅桌面資料與分析媒體與設計

概覽

AI 產生的概覽

Datawrapper MCP 伺服器,讓 AI 助理透過對話建立、更新、發布與匯出 Datawrapper 圖表。

可以做什麼
查詢可用的圖表類型並取得各類型的完整設定結構描述。以資料與設定建立新圖表,或更新既有圖表的資料與樣式。將圖表發布為公開版本,並取得圖表設定與中繼資料。將圖表匯出為 PNG 圖片。永久刪除圖表。
適用情境
當你想用對話方式快速製作、修改與發布 Datawrapper 圖表,而不想手動操作編輯器時適用。適合實驗性試用,不建議在尚未驗證的正式流程中大規模部署。
執行需求
需在本機以 Python 3.10 以上執行(可透過 uvx 啟動),並具備 Datawrapper 帳號與 API 存取權杖,於環境變數 DATAWRAPPER_ACCESS_TOKEN 提供。需可連線至 Datawrapper 服務。
安裝前請注意
需要 Datawrapper API 權杖(DATAWRAPPER_ACCESS_TOKEN),請妥善保管。發布圖表會使其公開可存取,刪除圖表為永久性操作,更新則會改動既有圖表。專案標示為早期實驗階段,行為可能隨版本變動,外掛市集安裝流程仍有已知缺口。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Datawrapper,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[PyPI] [MCP Registry] [Docker Hub]

A Model Context Protocol (MCP) server and app for creating Datawrapper charts using AI assistants. Built on the datawrapper Python library.

Status: early and experimental. This project — including its Claude Code/Desktop plugin and marketplace listing — is under active development, and behavior can change between releases. In particular, the plugin/marketplace install path has known gaps (see issue #78) — don't treat it yet as a finished, zero-maintenance install path for a wider rollout.

Example Usage

You can provide a data file and simply ask for the chart you want. The draft will soon appear in the panel.

[Books chat chart]

Here's a more complete example showing how to create, publish, update, and display a chart by chatting with the assistant:

"Create a datawrapper line chart showing temperature trends with this data:2020, 15.52021, 16.02022, 16.52023, 17.0"# The assistant creates the chart and returns the chart ID, e.g., "abc123"
"Publish it."# The assistant publishes it and returns the public URL
"Update chart with new data for 2024: 17.2°C"# The assistant updates the chart with the new data point
"Make the line color dodger blue."# The assistant updates the chart configuration to set the line color
"Show me the editor URL."# The assistant returns the Datawrapper editor URL where you can view/edit the chart
"Show me the PNG."# The assistant embeds the PNG image of the chart in its contained response.
"Suggest five ways to improve the chart."# See what happens!

Tools

ToolDescription
list_chart_typesList available chart types with descriptions
get_chart_schemaGet the full configuration schema for a chart type
create_chartCreate a new chart with data and configuration
update_chartUpdate an existing chart's data or styling
publish_chartPublish a chart to make it publicly accessible
get_chartRetrieve a chart's configuration and metadata
delete_chartPermanently delete a chart
export_chart_pngExport a chart as a PNG image

Chart Types

bar, line, area, arrow, column, multiple column, scatter, stacked bar

Use list_chart_types to see descriptions, then get_chart_schema to explore configuration options for any type.

Getting Started

Requirements

Get Your API Token

  1. Go to https://app.datawrapper.de/account/api-tokens
  2. Create a new API token
  3. Add it to your MCP configuration as shown in the installation guide

Quick Start (Claude Code)

json
{  "mcpServers": {    "datawrapper": {      "command": "uvx",      "args": ["datawrapper-mcp"],      "env": {        "DATAWRAPPER_ACCESS_TOKEN": "your-token-here"      }    }  }}

For other clients (Claude Desktop, Claude.ai, Cursor, VS Code Copilot, ChatGPT, OpenAI Codex, OpenClaw) and Kubernetes deployment, see the installation guide.

Installing via a plugin marketplace/directory (Claude Desktop's plugin browser, ClawHub, etc.) is still experimental. These interactive install flows currently have no working way to collect required environment variables like DATAWRAPPER_ACCESS_TOKEN — see issue #78 for details. The manually-edited config shown above (and throughout the installation guide) is the reliable path today.

Using Your Own Token (Hosted Deployments)

When connecting to a hosted instance of the server over HTTP, you can authenticate with your own Datawrapper API token by sending it in the Authorization header:

Authorization: Bearer <your-datawrapper-api-token>

This ensures charts are created under your account instead of the server operator's. The token is read from the header automatically — no need to include it in every tool call.

You can also pass access_token directly as a tool argument, which takes precedence over the header. When neither is provided, the server falls back to its DATAWRAPPER_ACCESS_TOKEN environment variable.

Custom Instructions

Set DATAWRAPPER_MCP_INSTRUCTIONS to have the server hand your own free-text guidance to connecting MCP clients (many, including Claude, fold this into the model's context). Use it for house style rules — required fields, naming conventions, and the like — without forking the server:

json
"env": {  "DATAWRAPPER_ACCESS_TOKEN": "your-token-here",  "DATAWRAPPER_MCP_INSTRUCTIONS": "Every chart needs alt text and a CMS slug in its notes field."}

Supported Clients

ClientConfig fileTransport
Claude Desktopclaude_desktop_config.jsonstdio or streamable-http
Claude.aiPersonal or org connectorstreamable-http
Claude CodePlugin marketplace or .mcp.jsonstdio
VS Code Copilot.vscode/mcp.jsonstdio
Cursor.cursor/mcp.jsonstdio or streamable-http
ChatGPTDev Mode settingsstreamable-http only
OpenAI Codex~/.codex/config.tomlstdio
OpenClawClawHub plugin or openclaw.jsonstdio

來源:README.md,提交 fc2329b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分