
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.
概覽
透過單一 MCP 工具,把結構化資料渲染成條形圖、折線圖與面積圖的簡潔 SVG。
- 可以做什麼
- 提供一個工具 render_chart,接收圖表類型(bar、line 或 area)、選用標題、light 或 dark 主題,以及含一個或多個具名系列的資料點,並以工具文字內容回傳渲染完成的 SVG 字串。渲染是手工建構的 SVG,不依賴無頭瀏覽器或圖表框架,使用固定的色盲友善配色,並在兩個以上系列時自動產生圖例。
- 適用情境
- 當助理需要在 MCP 用戶端內把結構化數字變成圖表影像時使用,例如將查詢結果或報表數據視覺化。它是免費的本機選項;同一個渲染器也以按次計費的 HTTP 端點形式提供,供非 MCP 或高流量情境使用。
- 執行需求
- 透過 stdio 在本機執行,通常以 npx x402-dataviz-mcp 啟動,或加入 MCP 用戶端設定。未宣告需要 API 金鑰、帳號或環境變數。僅支援桌面 MCP 用戶端,無法在網頁中執行。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 X402 Dataviz Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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
Or add it to an MCP client config (e.g. Claude Desktop's
claude_desktop_config.json):
Tool: render_chart
Input:
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
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版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分