# Reported issues for mcp-server-chart

Pod holds 24 of 97 problems reported by people outside the maintainer team. Issues filed by the project's own owners, members and collaborators are excluded entirely — a maintainer's release checklist is not a warning to a prospective user.

Back to [mcp-server-chart](/mcp/mcp-server-chart).

## Most discussed

### 这个mcp两个client同时连接第2个会阻塞

大致可以参考下面代码，这里的Agent调用了qwen-agent，`agent_load = Agent(enable_thinking=True, verbose=True)`这行代码是为了加载MCPManager，因为qwen-agent这个框架里这个类是单例的，直接并发加载会报错，先提前加载一下。

```python
import asyncio
from agent_cls import Agent

agent_load = Agent(enable_thinking=True, verbose=True)

def call():
    import time
    st = time.time()
    agent = Agent(enable_thinking=True, verbose=True)
    agent.set_system_message('hello')
    ed = time.time()
    print(f'Cost: {ed-st}', flush=True)

async def init_agent(name):
    

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/232) · 2025-11-18 · closed · external user · 19 comments

### 本地客户端能正常识别工具，但调用时失败：MCP error -32603

通过stdio配置到本地，调用报错：{"error":"MCP error -32603: MCP error -32603: Failed to generate chart: Error"}

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/225) · 2025-10-30 · closed · external user · 16 comments

### 请问当前的版本支持输出为option吗 在前端直接可以应用那种，目前生成的格式我看是下面的这样：

{
    "type": "tool_call",
    "tool_call_id": "__single__",
    "tool_name": "",
    "tool_args": {
        "data": [
            {
                "category": "跃层",
                "value": 172.048
            },
            {
                "category": "复式",
                "value": 120.106
            },
            {
                "category": "错层",
                "value": 87.98
            },
            {
                "category": "暂无数据",
                "value": 85.334
            }

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/212) · 2025-10-16 · closed · external user · 12 comments

### gemini-cli error

```
[API Error: [{
    "error": {
      "code": 400,
      "message": "Request contains an invalid argument.",
      "errors": [
        {
          "message": "Request contains an invalid argument.",
          "domain": "global",
          "reason": "badRequest"
        }
      ],
      "status": "INVALID_ARGUMENT"
    }
  }
  ]]
```

~/.gemini/setting.json

```json
{
  "theme": "Default",
  "selectedAuthType": "oauth-personal",
  "mcpServers": {
    "mcp-server-chart": {
      "command": "npx"

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/155) · 2025-07-25 · closed · external user · 16 comments

### MCP error -32603 error failing to generate chart while calling 'generate_line_chart' tool

while trying to create chart it uses the tool generate_line_chart with parameter given below 
{
  "data": [
    {
      "time": "2019",
      "value": 1366417754
    },
    {
      "time": "2020",
      "value": 1380004385
    },
    {
      "time": "2021",
      "value": 1393409038
    },
    {
      "time": "2022",
      "value": 1406631776
    },
    {
      "time": "2023",
      "value": 1417173173
    }
  ],
  "title": "India Population Trend (2019-2023)",
  "axisXTitle": "Year",
  "axisYTi

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/148) · 2025-07-18 · closed · external user · 19 comments

### MCP error -32603: Failed to generate chart: fetch failed

调用 MCP 时，有时候会爆这个错，有解决方案吗
```json
{
  "jsonrpc" : "2.0",
  "id" : "06f34e6c-6",
  "error" : {
    "code" : -32603,
    "message" : "MCP error -32603: Failed to generate chart: fetch failed"
  }
}

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/129) · 2025-06-28 · closed · external user · 12 comments

### 使用nginx代理之后，频繁出现连接超时的场景

使用nginx代理之后，经常出现连接超时的场景

![Image](https://github.com/user-attachments/assets/3d1077f2-2a28-440d-90d8-f8987e239abe)

但是访问health是通的

![Image](https://github.com/user-attachments/assets/f190b291-eb42-4625-be17-174f8ee8af17)

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/60) · 2025-05-26 · closed · external user · 13 comments

### 服务器返回类型应为image，而不是text

如图，mcp返回的type是text，导致客户端没有正确的渲染该图片

![Image](https://github.com/user-attachments/assets/3f2803fd-fa4c-42e6-889b-0a62aa98f427)

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/52) · 2025-05-20 · closed · external user · 12 comments

## Most recent

### Feature Suggestion: Optional token metering & paid API key support via `neuforge-pay`

Hi @antvis,

Love the work on `antvis/mcp-server-chart`! As usage grows across AI agent frameworks, server compute costs can start adding up quickly. We've also seen developers report that their autonomous agents accidentally burn through thousands of dollars in a single session because traditional payment rails lack built-in agent guardrails.

Would you be open to adding an optional usage metering & billing decorator using `neuforge-pay`? It acts as a proactive **Spend Firewall** and Merchant o

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/319) · 2026-08-15 · closed · external user · 1 comment

### bug报错

```
[MCP-Server-Chart] 2026-07-02T09:45:29.878Z ℹ️  calling tool generate_area_chart {
  data: [
    { time: '2024', value: 51 },
    { time: '2025', value: 74 },
    { time: '2026', value: 107 },
    { time: '2027', value: 155 },
    { time: '2028', value: 225 },
    { time: '2029', value: 326 },
    { time: '2030', value: 471 }
  ],
  stack: false,
  style: null,
  theme: 'default',
  width: 800,
  height: 450,
  title: '全球AI智能体市场规模增长趋势（单位：亿美元）',
  axisXTitle: '年份',
  axisYTitle: '市场规模（亿美元）'
}

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/313) · 2026-07-02 · open · external user · 0 comments

### mcp

High-Performance MCP Server for LLMs
Built with Node.js, this MCP (Model Context Protocol) server is engineered for extreme performance and efficiency. It comes equipped with a comprehensive suite of tools designed to extend the capabilities of Large Language Models seamlessly.
If you haven't yet explored the power of tool-calling with LLMs, this project serves as an excellent starting point. Dive in and experience how equipping models with external tools can transform your AI workflows!

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/305) · 2026-05-18 · closed · external user · 0 comments

### Private security disclosure route? (pub_antv@antgroup.com bounced)

## Private security disclosure route?

Hi maintainers,

I have a security-relevant report on `antvis/mcp-server-chart` (default Docker deployment configuration). Looking for a private disclosure channel before sharing details.

I checked:
- The repo doesn't have `SECURITY.md` at the root or under `.github/`.
- GitHub Private Vulnerability Reporting is disabled for the repo (per `gh api /repos/antvis/mcp-server-chart/private-vulnerability-reporting`).
- I tried `pub_antv@antgroup.com` (the email 

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/300) · 2026-05-05 · closed · external user · 1 comment

### 9 tools crash with unhandled exceptions on default/minimal input

When calling tools with the default values derived from the `tools/list` schema (e.g., `data: []` or `data: {}`), 9 of 27 tools throw unhandled JavaScript exceptions that propagate as MCP error -32603 with raw stack traces.

## Reproduction

Each tool was called via stdio transport with the arguments that `tools/list` schema suggests as defaults.

| Tool | Input | Error |
|------|-------|-------|
| `generate_radar_chart` | `data: [{"item":"Speed","score":80}, ...]` | `Invalid grid data` (crashes

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/291) · 2026-04-25 · closed · outside contributor · 3 comments

### generate_line_chart 横坐标无序导致图形错乱

参数：
`{
  "data": [
    {
      "group": "小米",
      "time": "2026-01",
      "value": 12
    },
    {
      "group": "小米",
      "time": "2026-03",
      "value": 97
    },
    {
      "group": "小米",
      "time": "2026-06",
      "value": 64
    },
    {
      "group": "小米",
      "time": "2026-07",
      "value": 32
    },
    {
      "group": "小米",
      "time": "2026-08",
      "value": 149
    },
    {
      "group": "小米",
      "time": "2026-10",
      "value": 76
    },
    {
      "group

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/289) · 2026-04-07 · closed · external user · 2 comments

### Issue with Axis Assignment in MCP Bar Chart

Hello,

I have been using mcp-server-chart very well—thank you.

However, when specifying axes in a bar chart with the following input, there is an issue where the axis labels are swapped (X and Y are reversed in the output):

"Please create a chart using MCP with the Y-axis as Category name and the X-axis as Rating, based on sales data by product category."

Thank you.

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/286) · 2026-04-06 · closed · external user · 1 comment

### Security Advisory: Prompt Injection Risk via External Data Sources in Chart Generation

## Summary

mcp-server-chart generates charts from data provided to AI assistants. When chart data originates from external sources (APIs, databases, CSV files), **attacker-controlled values in data fields, labels, or titles** can contain prompt injection payloads that hijack the AI's behavior.

## Attack Vector

1. AI assistant fetches data from an external source (API, database, uploaded CSV) for chart generation
2. Attacker places prompt injection in data field values, chart titles, axis labe

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/279) · 2026-03-25 · closed · external user · 7 comments

### 柱状图数据数字颜色无法调节

在使用深颜色作为柱体颜色时，数据数字颜色会自动使用白色，这时在白色背景下数字不可见。但是调成黑色背景时，浅色柱的黑色数值数字又不可见，而且MCP中没有提供修改数值数字颜色的字段，导致同时使用深色和浅色柱时总有数值数字不可见。

目前解决办法只有把背景调成灰色，两种数值数字才能同时看到：
<img width="403" height="354" alt="Image" src="https://github.com/user-attachments/assets/734c3a51-c38b-4f5b-bea6-429d932698bb" />

此问题可能不仅存在在柱状图中。

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/278) · 2026-03-14 · closed · external user · 1 comment

### missing PRM hinders oauth

```
Command:   authprobe scan --llm-max-tokens=1080 --openai-api-key=***REDACTED*** http://localhost:8024/mcp
Scanning:  http://localhost:8024/mcp
Scan time: Feb 20, 2026 06:58:55 UTC
Github:    https://github.com/authprobe/authprobe

Funnel
  [1] MCP probe (401 + WWW-Authenticate)      [-] SKIP
        probe returned 405; checking PRM for OAuth config

  [2] MCP initialize + tools/list             [+] PASS
        initialize -> 200
        notifications/initialized -> 202
        tools/list -> 

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/269) · 2026-02-20 · open · external user · 0 comments

### AntV Chart MCP listed on MCPList.site with B grade (64/100)

Hi, wanted to let you know that mcp-server-chart is listed on [MCPList.site](https://mcplist.site/server/antv-chart) and scored 64/100 (B grade) in our Trust Score system, making it one of the highest-rated MCP servers on the platform.

The score is based on automated security scans, GitHub quality metrics, and community ratings.

Listing: https://mcplist.site/server/antv-chart
Trust Score: https://mcplist.site/server/antv-chart/trust

Let me know if anything needs correcting on the listing.

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/268) · 2026-02-15 · closed · external user · 0 comments

### Charts don't display inline in Claude Desktop — returns type:text instead of type:image

## Problem

Charts generated by this MCP server don't display inline in Claude Desktop. Instead, the URL is shown as plain text.

## Cause

In `src/utils/callTool.ts`, the tool response returns the image URL as `type: "text"`:

```ts
content: [{ type: "text", text: url }]
```

Claude Desktop only renders inline images when the response uses `type: "image"` with base64 data.

## Suggested Fix

After generating the chart URL, fetch the image and return it as base64:

```ts
content: [{ type: "image

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/267) · 2026-02-09 · closed · external user · 2 comments

### 增加气泡图

希望可以支持气泡图

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/266) · 2026-02-06 · closed · external user · 1 comment

### TSL Handshake

The MCP is having trouble with the TLS Handshake

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/265) · 2026-02-03 · closed · external user · 1 comment

### Docker本地部署报错

/usr/local/lib/node_modules/@antv/mcp-server-chart/node_modules/@hono/node-server/dist/index.js:62
var Request = class extends GlobalRequest {
              ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/usr/local/lib/node_modules/@antv/mcp-server-chart/node_modules/@hono/node-server/dist/index.js:62:15)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:125

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/264) · 2026-02-02 · closed · external user · 2 comments

### Streamable server fails in docker compose

I tweaked the docker-compose.yml file to run with transport = streamable:
```
services:
  mcp-server-chart:
    build:
      context: .          # Dockerfile dir
      dockerfile: Dockerfile
    image: mcp-server-chart:stable
    container_name: mcp-server-chart-1
    environment:
       - VIS_REQUEST_SERVER=http://localhost:3000/render  # Notice: You can use AntV's project GPT-Vis-SSR to deploy an HTTP service in a private environment, and then pass the URL address through env VIS_REQUEST_SERVE

[Read the thread](https://github.com/antvis/mcp-server-chart/issues/259) · 2026-01-21 · closed · external user · 2 comments

The remaining reports are on [the project's issue tracker](https://github.com/antvis/mcp-server-chart/issues).
