Quickchart-MCP-Server:基于 QuickChart 的图表生成工具
一个支持通过 MCP 工具生成多种类型图表的服务,使用 QuickChart.io 提供的接口。
快速入门
- 安装依赖:运行
npm install
。 - 构建项目:运行
npm run build
。 - 安装服务:
- 使用 npm 安装:
npm install @gongrzhe/quickchart-mcp-server
- 或通过 Smithery 自动安装:
npx -y @smithery/cli install @gongrzhe/quickchart-mcp-server --client claude
- 使用 npm 安装:
- 配置服务:在 Claude Desktop 配置文件中添加以下内容:
{ "mcpServers": { "quickchart-server": { "command": "node", "args": ["/path/to/quickchart-server/build/index.js"] } } }
- 使用示例配置生成图表:
{ "type": "bar", "data": { "labels": ["一月", "二月", "三月"], "datasets": [{ "label": "销售额", "data": [65, 59, 80] }] } }
- 参考文档:QuickChart 文档 和 图表类型参考