highchart-mcp-server

highchart-mcp-server

Enables AI assistants and clients to generate Highcharts-based charts with schema validation, export to PNG/SVG/PDF, and natural language to chart conversion.

Category
访问服务器

README

Highcharts MCP Server

A Model Context Protocol (MCP) server designed to generate Highcharts‑based charts and visualizations in a production‑ready, AI‑enhanced, and validated manner. This server can be integrated with any MCP‑capable AI client (such as Claude, ChatGPT, Cursor, Dify, VSCode, etc.) to automate chart generation, validation, and export workflows.

Overview

The Highcharts MCP Server provides:

  • Chart generation for all common Highcharts types
  • Schema validation of chart configurations
  • Production grade features for scalability, security, and monitoring
  • AI‑assisted functionality, such as natural language chart generation
  • CLI and SDK tooling for developers

It acts as an MCP tool suite exposing Highcharts chart generation endpoints that can be invoked by AI assistants or custom clients.

Table of Contents

  1. Features
  2. Architecture
  3. Installation
  4. AI Client Integration
  5. Usage
  6. Validation System
  7. Production Readiness
  8. AI & LLM Integration
  9. Tooling & Developer Experience
  10. Analytics & Monitoring
  11. Contributing
  12. License

1. Features

Core Chart Capabilities

The MCP server supports generating charts using Highcharts configurations:

  • Line, Column, Bar
  • Area, Scatter, Pie
  • Gauge, Treemap, Heatmap
  • Financial charts (OHLC, Candlestick)
  • Specialized chart types (Sankey, Network, Timeline)
  • Export to PNG, SVG, PDF, and interactive HTML bundles (Concepts based on MCP chart servers and Highcharts Node export support)([highcharts.com][2])

Schema Validation

All incoming chart configuration requests are validated against JSON schema or Zod schemas:

  • Type enforcement for chart options
  • Validation of data arrays, axis definitions, series structure
  • Detailed and structured error responses on invalid configs (Validation approach inspired by existing MCP chart servers)([GitHub][3])

Production‑Grade Reliability

  • Scalable deployment via Docker, Kubernetes
  • Multi‑transport support: HTTP(S), SSE, Streamable HTTP, STDIO
  • Health check endpoints
  • High availability and load balancing
  • Configurable caching and rate limits

Security & Access Control

  • API key, OAuth2, and JWT authentication
  • RBAC (Role‑based access control)
  • Rate limiting and quotas
  • Audit logging for compliance

AI & LLM Enhancements

  • Natural language to chart config translation
  • Chart type suggestions based on dataset or analytics question
  • Auto‑correction of invalid configs using AI
  • Integration hooks for LLM workflows

Export & Output

  • Static and interactive chart outputs
  • Batch and scheduled export capabilities
  • Link generation for shareable chart assets

Monitoring & Observability

  • Prometheus / Grafana integration
  • Structured logging
  • Performance metrics
  • Error reporting dashboards

Tooling & SDKs

  • CLI tooling for quick local operations
  • JavaScript and Python SDKs
  • Interactive schema documentation
  • Playground UI for testing configurations

2. Architecture

The server consists of:

  • Transport layer — Handles different MCP transports (HTTP/SSE, streamable, STDIO)
  • Schema validation layer — Ensures chart configs are correct
  • Chart renderer — Uses Highcharts engine (Node export or server rendering)
  • AI processing layer — Optional natural language preprocessing
  • Output services — Export and sharing

The server uses a modular structure to isolate responsibilities and enable plug‑ins/extensions.


3. Installation

Prerequisites

  • Node.js 18+
  • Docker (optional)
  • Kubernetes (optional)

Local Setup

Clone the repository:

git clone https://your-repo-url
cd highcharts-mcp-server
npm install
npm run build
npm start

Docker

Build the Docker image:

docker build -t highcharts-mcp-server .
docker run -p 8080:8080 highcharts-mcp-server

4. AI Client Integration

This MCP server works with any MCP-capable AI client. Below are configuration examples for common clients.

Claude Desktop

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "highchart-mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/highchart-mcp-server/dist/index.js"],
      "env": {
        "TRANSPORT": "stdio",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json in your project root:

{
  "mcpServers": {
    "highchart-mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/highchart-mcp-server/dist/index.js"],
      "env": {
        "TRANSPORT": "stdio",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Streamable HTTP (Network Clients)

For clients that connect over the network, start the server with the HTTP transport:

TRANSPORT=streamable-http PORT=3000 node dist/index.js

Then connect your MCP client to http://localhost:3000/mcp.

Available Tools

Tool Description
create_chart Generate a Highcharts config from structured input (type, title, series, categories). Best for simple charts with guided parameters.
render_chart Render a chart from a full Highcharts configuration object. Accepts any valid Highcharts options — best for advanced/custom charts.

Basic Chart Call

Chart generation is done by invoking MCP tools with chart config objects. For example:

{
  "tool": "create_chart",
  "input": {
    "type": "line",
    "data": {
      "categories": ["Jan", "Feb", "Mar"],
      "series": [
        {"name": "Sales", "data": [10, 15, 20]}
      ]
    },
    "options": {}
  }
}

The MCP server validates the input and returns chart data or export artifacts.


6. Validation System

The server uses a schema validation system:

  • Zod or JSON Schema definitions for each chart type
  • Shared utility schemas for common entities (axis, series, color)
  • Error objects with detailed messages

Invalid requests return structured responses indicating the validation failures.


7. Production Readiness

Deployment

Supports deployment in production environments:

  • Containerized deployment with Docker
  • Kubernetes configuration with health probes
  • Environment variable configuration

Security

  • Configurable auth providers
  • TLS/HTTPS enforcement
  • Audit logs

Scalability

  • Stateless MCP server instances
  • Horizontal autoscaling
  • Caching for repeated chart requests

8. AI & LLM Integration

The server provides AI‑centric features:

  • Natural language parser — Converts descriptions to chart configs
  • Suggestions API — Suggests chart types and options
  • Error correction API — Uses AI to fix configs

These integrations make the server suitable for interactive AI applications and assistants.


9. Tooling & Developer Experience

CLI

Provides commands for:

  • Validating chart configs
  • Exporting charts locally
  • Testing chart output

SDKs

  • JavaScript SDK for client integrations
  • Python SDK for backend integrations

Playground

An interactive UI to test chart configs and see live output.


10. Analytics & Monitoring

  • Prometheus metrics exposed
  • Logs with structured levels
  • Dashboard templates for Grafana

These help monitor server performance and usage patterns.


11. Contributing

To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests and documentation
  4. Submit a pull request

Please follow code style guidelines and include tests for new features.


12. License

Released under the MIT License.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选