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 分