search2chart-mcp
Click on "Install 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., "@search2chart-mcpTurn this data into a bar chart: Jan 120, Feb 200, Mar 150"
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.
search2chart-mcp
Turn any tabular data into inline charts directly inside agent conversations. Zero runtime dependencies, multi-client adaptive.
Turn any tabular data into charts directly inline in agent conversations. Zero runtime dependencies, multi-client adaptive.
Installation
# 方式一: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.gitRelated MCP server: Chart-Output MCP Server
Two Paths
Path | Directory | Applies to |
Universal MCP server | ZCode / Claude Desktop / Cursor / WorkBuddy / Trae / Codex / DSH (universal) | |
Native DSH plugin | DeepSeek Harness (true inline; images go straight into the conversation) |
Use an MCP client → use
mcp/, and charts render directly in the conversation.Use DSH and want a native experience → use
dsh/; DSH can also usemcp/(via file links).Both can coexist.
Quick Start
1. Add it to your MCP configuration
{
"mcpServers": {
"search2chart-mcp": {
"command": "npx",
"args": ["search2chart-mcp"],
"env": {}
}
}
}If
npxcannot pull the package, use the absolute path after cloning:"command": "node", "args": ["<仓库>/mcp/server.js"]
2. First-time setup: test which image format your Agent can render
Different Agent renderers support different image formats. First use all mode to test all formats at once:
Temporary configuration (add an environment variable to the MCP configuration):
{
"env": {
"ECHARTS_INLINE_MODE": "all"
}
}Test prompt to send to the Agent:
用 chart_from_data 生成一个简单柱状图。
数据:[["城市","销量"],["北京",120],["上海",200],["广州",150]]
标题:城市销量对比
chartType:barThe Agent returns 3-4 image lines, identified as:
【1·data URI】 — self-contained base64, no network required.
【2·localhost http】 — local HTTP service.
【3·file://】 — local file path.
【4·CDN public https】 — public GitHub + jsDelivr CDN address.
Whichever one actually renders as an image in the conversation is the format your Agent supports.
3. Fix a mode
Renderable format | Setting |
data URI ✅ |
|
file:// ✅ |
|
localhost http ✅ |
|
CDN public https ✅ |
|
MCP image block ✅ |
|
None of them render |
|
Agent auto-detection
Agent instructions are already built into tool results, telling the model how to automatically set the mode in response to user feedback:
[Agent]: 返回 4 行图片,哪张正常显示?
[User]: 3正常
[Agent]: 确认了。file:// 可渲染 → 请设置 ECHARTS_INLINE_MODE=fileKnown client results: ZCode →
file, OpenCode →inline(data URI), WorkBuddy →cdn, DSH →inline(localhost http), Claude/Cursor →inline+returnImage:true.
Core Capabilities
Multi-client inline adaptation
The ECHARTS_INLINE_MODE environment variable controls inline behavior:
Mode | Behavior | Applicable clients |
| data URI → localhost http → file:// automatic fallback | OpenCode / DSH / generic |
| only outputs | ZCode |
| uploads to GitHub+jsDelivr and outputs public https | WorkBuddy |
| test mode: returns all formats at once | first-time setup |
| plain text ( | text-only models / terminals |
CDN public image hosting
SVG → PNG rasterization (
@resvg/resvg-js, optional dependency)GitHub Contents API upload + jsDelivr CDN acceleration
GitHub Actions scheduled cleanup (retained for 3 days by default)
Cleaned data retention
The result includes the full data (JSON, wrapped in a code block), letting text-only models continue proportion/trend/comparison analysis in context without looking at the image. This can be disabled with returnData: false.
Self-contained interactive HTML
The chart is also written to an .html file, which supports hover / zoom / chart-type switching / color adjustments right in the browser.
Tools
Tool | Purpose |
| structured data → chart HTML + inline image |
| CSV/XLSX path → chart HTML + inline image |
| List supported types / palettes / field conventions |
Field conventions: the first column is the category axis; the remaining columns are value series (multiple columns = multiple series). chartType: auto automatically chooses pie/bar based on the data.
Connecting to Various Clients
See mcp/README.md for details.
Directory
search2chart-mcp/
├── mcp/ # 跨端 MCP server(内联 SVG + 可交互 HTML)
│ ├── server.js # MCP stdio 协议 + 工具入口
│ ├── lib/
│ │ ├── chart.js # 数据归一化 + ECharts option
│ │ ├── html.js # 自包含可交互 HTML
│ │ ├── svg.js # 零依赖 SVG 渲染器
│ │ ├── httpserver.js # 本地 HTTP 服务
│ │ ├── rasterize.js # SVG→PNG
│ │ ├── upload.js # GitHub + jsDelivr CDN
│ │ └── parse.js # CSV/XLSX 解析
│ └── scripts/
│ ├── selftest.js # 端到端自检
│ └── verify_cdn.cjs # CDN 端到端验证
├── dsh/ # 原生 DSH 内联插件
├── LICENSE
└── README.mdLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceRenders 45+ interactive chart types, dashboards, and KPI widgets directly inside AI conversations. Supports drill-down, live API polling, 20 themes, and one-click export to PNG, PowerPoint, and A4 documents.4025044Functional Source , Version 1.1, MIT Future
- AlicenseAqualityDmaintenanceEnables AI agents to generate and render charts as PNG, SVG, or WebP images directly in chat interfaces. Supports Chart.js specifications and natural language descriptions for creating visualizations from data.381MIT
- AlicenseNot gradedqualityBmaintenanceLet AI agents create interactive visualizations that render live inside your chat — no code required.1BSD 3-Clause
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to generate beautiful, presentation-ready charts (SVG + PNG) with zero setup, supporting various chart types and styling options.25MIT
Related MCP Connectors
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Provide real-time data querying and visualization by integrating Tako with your agents. Generate o…
Turn grounded AI answers into trusted comparisons, plans, timelines, and decision views.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iqingyoung/search2chart-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server