Datawrapper MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Datawrapper MCPCreate a bar chart of revenue by market"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Datawrapper MCP
A remote Model Context Protocol server for creating and managing Datawrapper visualizations.
What it does
The server exposes seven tools:
Tool | Purpose |
| List charts with pagination |
| Retrieve chart configuration and links |
| Create a chart and optionally upload data |
| Replace data using CSV or structured rows |
| Update title, description, byline, source, and notes |
| Publish or republish a chart |
| Create an unpublished copy of a chart |
No delete tool is included.
Related MCP server: datawrapper-mcp
Architecture
Next.js App Router
Vercel
mcp-handlerStreamable HTTP transport
Datawrapper API v3
MCP endpoint:
/api/mcpHealth endpoint:
/api/health
Environment variables
Copy .env.example to .env.local.
cp .env.example .env.localVariable | Required | Purpose |
| Yes | Personal Datawrapper API token |
| No | Requires the same bearer token on MCP requests |
| No | Defaults to |
Create the Datawrapper token in the Datawrapper account settings. For the complete toolset, grant chart:read and chart:write. Grant folder permissions only when creating charts inside folders.
Never commit real tokens.
Local development
npm install
npm test
npm run typecheck
npm run devThe MCP endpoint will be:
http://localhost:3000/api/mcpThe health check will be:
http://localhost:3000/api/healthTest the server using the MCP Inspector:
npx @modelcontextprotocol/inspector@latestSelect Streamable HTTP and connect to http://localhost:3000/api/mcp.
Deploy to Vercel
Import this GitHub repository into Vercel.
Add
DATAWRAPPER_API_TOKENto Production, Preview, and Development as needed.Optionally add
MCP_ACCESS_TOKEN.Deploy.
Open
/api/health.Connect an MCP client to
https://<deployment-domain>/api/mcp.
MCP client configuration
For clients that accept a Streamable HTTP URL:
{
"mcpServers": {
"datawrapper": {
"url": "https://<deployment-domain>/api/mcp"
}
}
}When MCP_ACCESS_TOKEN is configured, the client must support sending:
Authorization: Bearer <MCP_ACCESS_TOKEN>Some hosted chat clients require OAuth rather than a static header. In that case, add an OAuth authorization layer before using this server with sensitive production data.
Example requests
Create a chart from structured rows:
{
"title": "Revenue by market",
"type": "d3-bars",
"rows": [
{ "Market": "UAE", "Revenue": 120 },
{ "Market": "UK", "Revenue": 85 }
]
}Update attribution:
{
"chartId": "abc12",
"sourceName": "Company filings",
"sourceUrl": "https://example.com/source",
"byline": "Strategy team"
}Security notes
Datawrapper credentials remain server-side.
Health checks disclose only whether variables are configured.
Upstream errors are sanitized and never include the API token.
Publishing is an explicit separate tool.
New and duplicated charts remain unpublished until
publish_chartis called.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, inspect, manage, and render charts and data visualizations as SVG/PNG or interactive embeds.
Charts and tables for AI agents with live-updating embed links. No account: signup returns a key.
251Create projects and read their web analytics: views, referrers, countries, custom events.
Create form drafts, publish on request, read responses and create authorized response webhooks.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to create, update, and publish Datawrapper charts through natural language. It provides tools for data synchronization, visual configuration, and retrieving chart images or editor links.8MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to create, update, publish, and manage Datawrapper charts via the Model Context Protocol.9854 PyPI51MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with the Datawrapper API to create, manage, and publish data visualizations through natural language.3-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage Chartbrew resources like teams, connections, datasets, dashboards, and charts via natural language.1MIT