{
  "mcp": "1.0",
  "serverInfo": {
    "name": "Divctor MCP",
    "version": "1.0.0",
    "description": "MCP server that lets AI assistants draw Divctor SVG charts, flowcharts and QR codes. No API key; anonymous use is free with no points deducted, output carries the Divctor watermark, with a per-IP rate limit.",
    "url": "https://divctor-mcp.divct.workers.dev/mcp",
    "transport": "streamable-http",
    "authentication": "none",
    "docs": "https://docs.divct.workers.dev/docs/mcp"
  },
  "tools": [
    {
      "name": "generate_chart",
      "description": "Draw an SVG chart (bar, line, pie, area, stacked-bar, donut, scatter, radar). By default saves and returns a shareable URL (30 or 60 days); save=false returns the raw SVG.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "bar",
              "line",
              "pie",
              "area",
              "stacked-bar",
              "donut",
              "scatter",
              "radar"
            ],
            "description": "Chart type."
          },
          "data": {
            "description": "Values (max 100): an array of numbers, comma-separated text, or for scatter an array of {x, y} objects."
          },
          "labels": {
            "description": "Labels per value (array or comma-separated text)."
          },
          "names": {
            "description": "Group names for the legend, in the order data..data5."
          },
          "title": {
            "type": "string"
          },
          "save": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "data"
        ]
      }
    },
    {
      "name": "generate_graph",
      "description": "Draw an SVG flowchart from nodes and links. By default saves and returns a shareable URL; save=false returns the raw SVG.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "nodes": {
            "type": "array",
            "description": "Node objects: {id, label?} (max 50)."
          },
          "links": {
            "type": "array",
            "description": "Link objects: {source, target, color?} (max 100)."
          }
        },
        "required": [
          "nodes",
          "links"
        ]
      }
    },
    {
      "name": "generate_qr",
      "description": "Generate a QR code as SVG for any text or URL. Free and unlimited.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      }
    },
    {
      "name": "list_chart_types",
      "description": "List Divctor's chart types and their data rules. Free.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    }
  ]
}