← All tools

@antv/mcp-server-chart

MCP

A Model Context Protocol server for generating charts using AntV. This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.

v0.9.9 MIT Tested 7 Feb 2026
7.5

Dimension scores

Security 7.0
Reliability 7.0
Agent usability 7.0
Compatibility 9.0
Code health 8.0

Compatibility

Framework Status Notes
Claude Code
OpenAI Agents SDK SSE transport preferred by OpenAI SDK is supported but requires manual server startup with -t sse flag
LangChain Tools make external HTTP calls to antv-studio.alipay.com which may add latency in LangChain chains

Security findings

MEDIUM

External API calls without input sanitization

MEDIUM

Error messages expose internal implementation details

MEDIUM

No rate limiting on HTTP endpoints

MEDIUM

Environment variable handling lacks validation

Reliability

Success rate

82%

Calls made

100

Avg latency

850ms

P95 latency

2000ms

Failure modes

  • Network failures to external API (antv-studio.alipay.com) cause unhandled errors - no retry logic or timeout handling
  • Malformed JSON in HTTP responses from external service not validated before parsing
  • Empty or missing required fields in chart data may pass validation but fail at runtime
  • Concurrent requests in SSE/HTTP modes share no connection pooling - potential resource exhaustion
  • Zod validation errors return structured McpError, but axios network errors bubble up as generic Error objects
  • Map chart generation uses different code path with less error handling than standard charts
  • Missing input validation for environment variables (port parsing, URL formatting)
  • No circuit breaker pattern for external API failures - cascading failures possible
  • Unicode and special characters in chart data not explicitly validated
  • Very large datasets could cause memory issues - no size limits enforced

Code health

License

MIT

Has tests

Yes

Has CI

No

Dependencies

15

Well-structured TypeScript MCP server with comprehensive test coverage (14 test files covering API, charts, server transports, and utilities). Strong type safety with Zod schemas for validation. Multiple transport modes (stdio, SSE, HTTP streamable) are well-tested. Good documentation in README. Uses modern tooling (Biome, Prettier, Husky). Missing: CI configuration, changelog, and some test files appear truncated in the provided snapshot. Code quality signals are strong (linting, type checking, testing), but without repo metadata cannot assess maintenance activity or dependency freshness. The .codecov.yml suggests coverage tracking is configured. Published to npm as @antv/mcp-server-chart.