PlantUML Diagrams

generate_plantuml_diagram

Generate a PlantUML diagram with automatic syntax validation and error reporting for auto-fix workflows. Returns embeddable image URLs for valid diagrams or structured error details for invalid syntax that can be automatically corrected. Optionally saves the diagram to a local file.

Remote infobip/plantuml-mcp-server

Other tools also called generate_plantuml_diagram? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "format": {
      "enum": [
        "svg",
        "png"
      ],
      "type": "string",
      "default": "svg",
      "description": "Output image format (SVG or PNG)"
    },
    "output_path": {
      "type": "string",
      "description": "Optional. Path to save diagram locally. Automatically creates all necessary parent directories. Restricted to current working directory by default. Set PLANTUML_ALLOWED_DIRS env var (colon-separated paths, or \"*\" for unrestricted) to allow additional directories. Only .svg and .png extensions permitted."
    },
    "plantuml_code": {
      "type": "string",
      "description": "PlantUML diagram code. Will be automatically validated for syntax errors before generating the diagram URL."
    }
  }
}