X402 Dataviz Mcp

io.github.liminalpepe由 GitHub 账号 liminalpepe 发布v0.1.0更新于 Oct 24, 2026

Free MCP server: render bar/line/area charts to SVG from structured data.

已验证STDIO仅桌面数据与分析媒体与设计

概览

AI 生成的概览

通过单个 MCP 工具,把结构化数据渲染为条形图、折线图和面积图的简洁 SVG。

可以做什么
提供一个工具 render_chart,接收图表类型(bar、line 或 area)、可选标题、light 或 dark 主题,以及包含一个或多个命名系列的数据点,并以工具文本内容返回渲染好的 SVG 字符串。渲染为手工构建的 SVG,不依赖无头浏览器或图表框架,使用固定的色盲友好配色,并在两个及以上系列时自动生成图例。
适用场景
当助手需要在 MCP 客户端内把结构化数字变成图表图像时使用,例如可视化查询结果或报告数据。它是免费的本地选项;同一渲染器也以按次付费的 HTTP 端点形式提供,供非 MCP 或高并发场景使用。
运行要求
通过 stdio 在本地运行,通常用 npx x402-dataviz-mcp 启动,或加入 MCP 客户端配置。未声明需要 API 密钥、账户或环境变量。仅支持桌面 MCP 客户端,不能在网页中执行。
安装前请注意
该服务器本身被描述为免费,无需密钥或付费。README 提到另一个按次付费的 HTTP 端点,在 Base 上以 USDC 计费;该端点不属于这个本地服务器,是否付款或配置钱包是另一项独立决定。未描述写入、发送或删除数据的操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 X402 Dataviz Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

x402-dataviz-mcp

A free MCP (Model Context Protocol) server that renders bar, line, and area charts from structured data and returns clean, hand-designed SVG. No API key, no payment, no rate limit games — just an MCP tool any MCP client can call.

This is the open funnel twin of a paid, x402-gated HTTP API:

x402-dataviz-poc.theliminalguy.workers.dev — POST /chart, $0.01 USDC on Base per call via the x402 payment protocol, for production/high-volume or non-MCP (plain HTTP) use. Same renderer, same output, just billed per call instead of free-via-MCP.

Why this exists

The x402 Bazaar (~14,800 agent-payable APIs at time of writing) has zero coverage in "structured data → clean chart image." This MCP server is the free/local half of filling that gap — try it for nothing via MCP; reach for the paid HTTP endpoint when you need it at volume or outside an MCP client.

What it does

One tool, render_chart, takes a chart type + structured data points and returns a rendered SVG string. Rendering is hand-rolled (no headless browser, no native binaries, no heavy charting framework) — just string-built SVG, so it's fast with zero runtime dependency risk.

The design bar is the actual differentiator: a real categorical color palette (validated for colorblind-safety, not eyeballed), considered spacing, thin marks with rounded bar ends, 2px surface gaps between bars, ringed line markers, direct end-labels, and full light/dark theme support — not the default-blue/red/green look of a generic charting library.

Install & run

bash
npx x402-dataviz-mcp

Or add it to an MCP client config (e.g. Claude Desktop's claude_desktop_config.json):

json
{  "mcpServers": {    "dataviz": {      "command": "npx",      "args": ["-y", "x402-dataviz-mcp"]    }  }}

Tool: render_chart

Input:

jsonc
{  "type": "bar" | "line" | "area",  "title": "optional string",  "theme": "light" | "dark",       // defaults to "light"  "data": [    { "x": "Q1", "values": { "Revenue": 128000, "Cost": 84000 } },    { "x": "Q2", "values": { "Revenue": 146500, "Cost": 91200 } }  ]}

values can hold one or more named series; series colors are assigned from a fixed, colorblind-validated order (never generated/cycled). A legend renders automatically for 2+ series; a single series needs no legend (the title already names it).

Output: an SVG string (as MCP tool text content) rendering the requested chart.

Local development

bash
npm installnpm run dev      # runs src/index.ts directly on stdio via tsxnpm run build    # compiles to dist/ for the published npm package

When to use the paid HTTP twin instead

Use POST /chart on the paid Worker instead of this MCP server when:

  • You're calling from outside an MCP client (plain HTTP, any language).
  • You need production/high-volume use and want to pay per call rather than rely on a free tool being available indefinitely.
  • Your agent already speaks x402 (e.g. via x402-fetch / x402-axios) and can pay $0.01 USDC on Base per request.

Both routes call the exact same renderChart() function — output is byte-for-byte identical.

License

MIT

来源:README.md,提交 1e13f8c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分