# lab-chart-mcp **Repository Path**: lauset/lab-chart-mcp ## Basic Information - **Project Name**: lab-chart-mcp - **Description**: Lab Chart Mcp Server - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-22 - **Last Updated**: 2026-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Lab Chart MCP 可执行命令: `mcp-chart` 服务地址: `http://localhost:3001/sse` 服务端口: `3001` 支持模式: `sse` ## 工具列表 1. 打印环境信息 **printEnv** Prints all environment variables, helpful for debugging MCP server configuration 2. 图表配置生成 **generateChart** Generate ECharts configuration for various chart types. Supports line charts, bar charts, pie charts with customizable data, titles, colors, and styling options. 参数: **`seriesName`**: - **类型**: 字符串 - **描述**: 用于图例中的系列名称,帮助识别图表中的数据系列。 **`theme`**: - **类型**: 字符串 - **描述**: 设置图表的主题风格,可以是 `"light"`(浅色)或 `"dark"`(深色)。 - **默认值**: 通常默认是 `"light"`。 **`title`**: - **类型**: 字符串 - **描述**: 设置图表的标题,用来概括图表内容。 **`xAxisName`**: - **类型**: 字符串 - **描述**: 设置 X 轴的名称,用于说明 X 轴表示的内容。 **`yAxisName`**: - **类型**: 字符串 - **描述**: 设置 Y 轴的名称,用于说明 Y 轴表示的内容。 **`xAxisData`**: - **类型**: 数组 - **描述**: 提供 X 轴的数据,通常是分类名称或标签。 - **默认值**: 为空数组 `[]`。 **`yAxisData`**: - **类型**: 数组 - **描述**: 提供 Y 轴的数据,通常是数值数据。 - **默认值**: 为空数组 `[]`。 ## 开始 ```sh # 安装依赖 npm i # 打包 npm run build ``` ## 启动 ```sh # 启动SSE服务 npm run start # 或 npm run start:sse # 通过nodejs node dist/index.js ``` ## 修改端口 port 参数 ```sh mcp-chart --port=3002 ``` ## 测试服务 使用 MCP Inspector ```sh # 启动测试工具 npx @modelcontextprotocol/inspector ```