PD

palewire/datawrapper-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

64 stars 13 forks 质量 81 趋势 14MIT

palewire/datawrapper-mcp 是从 https://github.com/palewire/datawrapper-mcp. 导入的 MCP 服务器候选

概览

palewire/datawrapper-mcp 是从 https://github.com/palewire/datawrapper-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一款模型上下文协议(MCP)服务器和应用,用于利用AI助手创建数据包装图表。基于datawrapper的Python库构建。

状态:早期且实验性。 本项目——包括其Claude Code/桌面插件和市场列表——正在积极开发中, 和行为在不同版本之间可能会发生变化。特别是, 插件/市场安装路径存在已知漏洞(参见 期#78)——别说 还把它当作一个完成的、零维护的安装路径,覆盖更广泛的设备 推广。

示例用法

你可以提供数据文件,只需索要你想要的图表。草稿很快就会出现在面板中。

这里有一个更完整的示例,展示了如何通过与助手聊天创建、发布、更新和显示图表:

工具

工具 描述
list_chart_types 列出可使用的图表类型及描述
get_chart_schema 获取图表类型的完整配置模式
create_chart 创建包含数据和配置的新图表
update_chart 更新现有图表的数据或样式

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

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.5
2021, 16.0
2022, 16.5
2023, 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

Tool Description
list_chart_types List available chart types with descriptions
get_chart_schema Get the full configuration schema for a chart type
create_chart Create a new chart with data and configuration
update_chart Update an existing chart’s data or styling
publish_chart Publish a chart to make it publicly accessible
get_chart Retrieve a chart’s configuration and metadata
delete_chart Permanently delete a chart
export_chart_png Export a chart as a PNG image

Chart Types

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

在 GitHub 查看完整 README

安装

uvx datawrapper-mcp
新手?先看 mcpskill.org 教程 →

配置

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