Skip to main content
Glama
iqingyoung

search2chart-mcp

by iqingyoung

DSH Market MCP Downloads

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

Related MCP server: Chart-Output MCP Server

두 가지 경로

경로

디렉터리

적용 대상

범용 MCP server

mcp/

ZCode / Claude Desktop / Cursor / WorkBuddy / Trae / Codex / DSH 공용

네이티브 DSH 플러그인

dsh/

DeepSeek Harness(진짜 인라인, 이미지가 대화에 직접 표시)

  • 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. 모드 고정하기

렌더링 가능한 형식

설정

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 자동 감지

도구 결과에는 이미 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.

핵심 기능

다중 클라이언트 인라인 적응

ECHARTS_INLINE_MODE 환경 변수로 인라인 동작을 제어합니다.

모드

동작

적용 클라이언트

inline(기본값)

data URI → localhost http → file:// 순으로 자동 fallback

OpenCode / DSH / 공통

file

file:// 로컬 경로만 출력

ZCode

cdn

GitHub+jsDelivr 업로드 후 공개 https 출력

WorkBuddy

all

테스트 모드: 모든 형식을 한 번에 반환

최초 연동 시 테스트

none

순수 텍스트(.html 경로 + 데이터), 인라인 없음

순수 텍스트 모델 / 터미널

CDN 공개 이미지 호스팅

  • SVG → PNG 래스터화(@resvg/resvg-js, 선택 의존성)

  • GitHub Contents API 업로드 + jsDelivr CDN 가속

  • GitHub Actions 정기 정리(기본 3일 보관)

데이터 보존

결과에 본래 데이터 전체(JSON, 코드 블록으로 감쌈)가 포함되어,순수 텍스트 모델도 이미지를 보지 않고 맥락 안에서 점유율 / 추세 / 비교 분석을 계속할 수 있습니다. returnData: false로 끌 수 있습니다.

자체 포함 인터랙티브 HTML

차트는 동시에 .html 파일로 기록됩니다. 브라우저에서 열면 hover / 확대 / 차트 유형 전환 / 색상 조정을 지원합니다.

도구

도구

역할

chart_from_data

구조적 데이터 → 차트 HTML + 인라인 이미지

chart_from_file

CSV/XLSX 경로 → 차트 HTML + 인라인 이미지

list_chart_types

지원하는 유형/색상 구성을 나열

필드 규칙: 첫 번째 열 = 범주 축; 나머지 열 = 수치 계열(다중 열 = 다중 계열);chartType: auto는 데이터에 따라 자동으로 파이/바 차트를 선택합니다.

각 클라이언트 연동

자세한 내용은 됐어. Wait "详见" should be "자세한 내용은 mcp/README.md를 참조하세요."

Continue:

자세한 내용은 mcp/README.md를 참조하세요.

디렉터리 구조

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.md

License

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    B
    maintenance
    Renders 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.
    40
    250
    44
    Functional Source , Version 1.1, MIT Future
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents to generate beautiful, presentation-ready charts (SVG + PNG) with zero setup, supporting various chart types and styling options.
    25
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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