跨客户端 ECharts 图表 MCP server:数据 -> 可交互 HTML 与内联图片
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Turn any tabular data into inline charts directly inside agent conversations. Zero runtime dependencies, multi-client adaptive.
把「任意表格数据」变成直接内联在 agent 对话流里的图表。零运行时依赖,多端自适应。
| 路径 | 目录 | 适用 |
|---|---|---|
| 通用 MCP server | mcp/ | ZCode / Claude Desktop / Cursor / WorkBuddy / Trae / Codex / DSH 通用 |
| 原生 DSH 插件 | dsh/ | DeepSeek Harness(真·内联,图片直接进对话) |
mcp/,对话框直接出图dsh/;DSH 里也能用 mcp/(走文件链接)如果 npx 拉不到,用 clone 后的绝对路径:
"command": "node", "args": ["<仓库>/mcp/server.js"]
不同 Agent 渲染器对图片格式支持各异。先用 all 模式一次性测试:
临时配置(在 MCP 配置里加环境变量):
发给 Agent 的测试 prompt:
Agent 返回 3-4 行图,分别标记为:
哪个在对话框里真正渲染成了图片,你的 Agent 就支持哪种。
| 能渲染的格式 | 设置 |
|---|---|
| data URI ✅ | ECHARTS_INLINE_MODE=inline(默认) |
| file:// ✅ | ECHARTS_INLINE_MODE=file |
| localhost http ✅ | ECHARTS_INLINE_MODE=inline |
| CDN 公网 https ✅ | ECHARTS_INLINE_MODE=cdn |
| MCP image block ✅ | inline + 调用时 returnImage:true |
| 都显示不了 | ECHARTS_INLINE_MODE=none,用 .html 交互图 |
工具结果里已内置 Agent 指令,告诉模型如何根据用户反馈自动设置模式:
已知客户端实测:ZCode →
file,OpenCode →inline(data URI),WorkBuddy →cdn,DSH →inline(localhost http),Claude/Cursor →inline+returnImage:true。
通过 ECHARTS_INLINE_MODE 环境变量控制内联行为:
| 模式 | 行为 | 适用客户端 |
|---|---|---|
inline(默认) | data URI → localhost http → file:// 自动 fallback | OpenCode / DSH / 通用 |
file | 只输出 file:// 本地路径 | ZCode |
cdn | 上传 GitHub+jsDelivr,输出公网 https | WorkBuddy |
all | 测试模式:一次返回所有格式 | 首次接入时测试 |
none | 纯文本(.html 路径 + 数据),无内联 | 纯文本模型 / 终端 |
结果附带完整数据(JSON,代码块包裹),让纯文本模型在上下文里继续做占比/趋势/对比分析,无需看图。returnData: false 可关。
图表同时写入 .html 文件,浏览器打开即支持 hover / 缩放 / 类型切换 / 配色调整。
| 工具 | 作用 |
|---|---|
chart_from_data | 结构化数据 → 图表 HTML + 内联图片 |
chart_from_file | CSV/XLSX 路径 → 图表 HTML + 内联图片 |
list_chart_types | 列出支持的类型 / 配色与字段约定 |
字段约定:第一列 = 类别轴;其余列 = 数值序列(多列即多序列);chartType: auto 按数据自动选 饼/柱。
详见 mcp/README.md。
MIT
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/search2chart-mcp)<a href="https://allmcps.com/mcp/search2chart-mcp"><img src="https://allmcps.com/api/badge/search2chart-mcp?style=directory" alt="Search2chart MCP on AllMCPs" /></a>