返回市场
GPT可视化服务器

GPT可视化服务器

作者:luler25 星标更新:2025-06-17

项目介绍

gpt_vis_ssr

面向服务部署的GPT可视化SSR,可以作为MCP工具的MCP服务器图表私有映射服务后端

参考1: https://github.com/antvis/GPT-Vis/tree/main/bindings/gpt-vis-ssr

参考2: https://github.com/antvis/mcp-server-chart

安装

docker-compose.yml

version: '3.8'

services:
  gpt-vis-ssr:
    image: ghcr.io/luler/gpt_vis_ssr:latest
    ports:
      - 3000:3000
    volumes:
      - ./images:/app/public/images
    environment:
      - NODE_ENV=production
      - TZ=Asia/Shanghai
    restart: unless-stopped

运行

docker-compose up -d

使用

{
    "type": "column",
    "data": [
        {
            "category": "交通",
            "value": 2000
        },
        {
            "category": "住宿",
            "value": 1200
        },
        {
            "category": "吃喝",
            "value": 1000
        },
        {
            "category": "门票",
            "value": 800
        },
        {
            "category": "其他",
            "value": 300
        }
    ],
    "title": "旅行计划费用统计",
    "axisXTitle": "费用类别",
    "axisYTitle": "金额 (元)"
}
  • 返回数据
{
    "success": true,
    "resultObj": "http://127.0.0.1:3000/images/c1e17b0f-513d-46de-ae74-e0d20ae52bd7.png"
}
  • 结果图表示例 </中文翻译>