MCP.Market

Search2chart MCP server

by iqingyoung·io.github.iqingyoung/search2chart-mcp·v0.4.1

跨客户端 ECharts 图表 MCP server:数据 -> 可交互 HTML 与内联图片

A88/100grade A
What users say
No reviews yet
Be the first
Safety scan
A88/100

full report

Adoption
New

0 stars48 downloads/wk

Reviews

Write one

Nobody has reviewed Search2chart yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Search2chart tools (3)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • chart_from_data

    根据结构化数据生成 ECharts 图表,写入 .html 文件,并返回可在对话框内联展示的图片地址。 【内置指令·必须执行】把结果中的 `![<标题>](<url>)` **原样复制到回复中**,图表即在对话框内联出图。

  • chart_from_file

    读取 CSV/TSV/XLSX 生成 ECharts 图表。第一列作类别轴,其余列作数值序列。WPS 请先另存为 .xlsx。 【内置指令·必须执行】把结果中的 `![<标题>](<url>)` **原样复制到回复中**,图表即在对话框内联出图。

  • list_chart_types

    列出支持的图表类型、配色方案与字段约定。

Public scan report

scanner v0.1.10 · 2026-10-31 · same rubric, same numbers if you re-run it

no findings
  • Code scan9 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 55 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 88/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Search2chart compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
88/100
higher than 75% of 48,255 servers
Tools
3
the typical server has 7
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
Downloads a week
48
more than 40% of 12,191 servers with a package

What its tools let an agent do: 3 read

Install Search2chart in Claude Code, Cursor or VS Code

Runs npx -y search2chart-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add search2chart-mcp -- npx -y search2chart-mcp
Add to Cursor

What the publisher says

From the Search2chart repository's README, as published. We do not edit it. Read it on GitHub

search2chart-mcp

Turn any tabular data into inline charts directly inside agent conversations. Zero runtime dependencies, multi-client adaptive.

把「任意表格数据」变成直接内联在 agent 对话流里的图表。零运行时依赖,多端自适应。

安装

# 方式一:DSH 原生插件(DeepSeek Harness 用户推荐,真·内联)
dsh plugin --profile web add dsh-chart

# 方式二:npx(通用 MCP server,无需 clone)
npx search2chart-mcp

# 方式三:git clone
git clone https://github.com/iqingyoung/search2chart-mcp.git

两条路径

  • 用 MCP 客户端 → 用 mcp/,对话框直接出图
  • 用 DSH 且想要原生体验 → 用 dsh/;DSH 里也能用 mcp/(走文件链接)
  • 两者可并存

快速开始

1. 在你的 MCP 配置里加入

{
  "mcpServers": {
    "search2chart-mcp": {
      "command": "npx",
      "args": ["search2chart-mcp"],
      "env": {}
    }
  }
}

如果 npx 拉不到,用 clone 后的绝对路径:"command": "node", "args": ["<仓库>/mcp/server.js"]

2. 首次接入:测试你的 Agent 能渲染哪种图片

不同 Agent 渲染器对图片格式支持各异。先用 all 模式一次性测试:

临时配置(在 MCP 配置里加环境变量):

{
  "env": {
    "ECHARTS_INLINE_MODE": "all"
  }
}

发给 Agent 的测试 prompt:

用 chart_from_data 生成一个简单柱状图。
数据:[["城市","销量"],["北京",120],["上海",200],["广州",150]]
标题:城市销量对比
chartType:bar

Agent 返回 3-4 行图,分别标记为:

  • 【1·data URI】 — 自包含 base64,无需联网
  • 【2·localhost http】 — 本地 HTTP 服务
  • 【3·file://】 — 本地文件路径
  • 【4·CDN 公网 https】 — GitHub + jsDelivr 公网地址

哪个在对话框里真正渲染成了图片,你的 Agent 就支持哪种。

3. 固定模式

Agent 自动检测

工具结果里已内置 Agent 指令,告诉模型如何根据用户反馈自动设置模式:

[Agent]: 返回 4 行图片,哪张正常显示?
[User]:  3正常
[Agent]: 确认了。file:// 可渲染 → 请设置 ECHARTS_INLINE_MODE=file

已知客户端实测:ZCode → file,OpenCode → inline(data URI),WorkBuddy → cdn,DSH → inline(localhost http),Claude/Cursor → inline + returnImage:true。

核心能力

多客户端内联适配

通过 ECHARTSINLINEMODE 环境变量控制内联行为:

CDN 公网图床

  • SVG → PNG 栅格化(@resvg/resvg-js,可选依赖)
  • GitHub Contents API 上传 + jsDelivr CDN 加速
  • GitHub Actions 定时清理(默认保留 3 天)

清洗数据留存

结果附带完整数据(JSON,代码块包裹),让纯文本模型在上下文里继续做占比/趋势/对比分析,无需看图。returnData: false 可关。

自包含可交互 HTML

图表同时写入 .html 文件,浏览器打开即支持 hover / 缩放 / 类型切换 / 配色调整。

工具

字段约定:第一列 = 类别轴;其余列 = 数值序列(多列即多序列);chartType: auto 按数据自动选 饼/柱。

接入各客户端

详见 mcp/README.md。

目录

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Search2chart: common questions

Is Search2chart MCP server safe?
Yes, by our scan: it is graded A (88/100). Read the Search2chart safety report
How do I install Search2chart?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Search2chart need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Search2chart maintained?
The last commit was 59 days ago (2026-09-06). The latest release is v0.4.1.
How does Search2chart compare with other MCP servers?
safety score 88/100 (higher than 75% of 48,255 servers); tools 3 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.